* Refactored PostSet, splitting it into PostSets::Post and PostSets::Favorite
* Additional functional tests
This commit is contained in:
@@ -1,28 +1,7 @@
|
||||
<% form_for @advertisement, :html => {:multipart => true} do |f| %>
|
||||
<table width="100%">
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><%= submit_tag "Submit" %></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th width="15%"><%= f.label :file %></th>
|
||||
<td width="85%"><%= f.file_field "file" %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%= f.label :referral_url %></th>
|
||||
<td><%= f.text_field :referral_url %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%= f.label :ad_type %></th>
|
||||
<td><%= f.select :ad_type, ["vertical", "horizontal"] %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%= f.label :status %></th>
|
||||
<td><%= f.select :status, ["active", "inactive"] %></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%= simple_form_for @advertisement, :html => {:multipart => true} do |f| %>
|
||||
<%= f.input :file, :as => :file %>
|
||||
<%= f.input :referral_url %>
|
||||
<%= f.input :ad_type, :collection => %w(vertical horizontal) %>
|
||||
<%= f.input :status, :collection => %w(active inactive) %>
|
||||
<%= f.button :submit %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user