* 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 %>
|
||||
@@ -1,28 +1,5 @@
|
||||
<h4>Advertisements</h4>
|
||||
|
||||
<div style="margin-bottom: 1em;">
|
||||
<% form_tag(advertisements_path, :method => :get) do %>
|
||||
<table width="100%">
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><%= submit_tag "Search" %></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th width="15%"><label>Start Date</label></th>
|
||||
<td width="85%"><%= text_field_tag "start_date", @start_date %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="15%"><label>End Date</label></th>
|
||||
<td width="85%"><%= text_field_tag "end_date", @end_date %></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<table width="100%" class="highlightable">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user