root/app/views/admin/artworks/index.rhtml @ master
4ca83ea1 | Marc Dequènes (Duck) | <% use_proto_menu -%>
|
|
252572a7 | Marc Dequènes (Duck) | <h2><%= link_to_resource_index _("List of Artworks"), false %> <sub>(<%= @artworks.size %>)</sub></h2>
|
|
b689e231 | Marc Dequènes (Duck) | ||
<p>
|
|||
252572a7 | Marc Dequènes (Duck) | <div class="right_inset">
|
|
<% form_tag(:action => 'search') do -%>
|
|||
<%= text_field_tag 'search_pattern', params['search_pattern'], :size => 16, :maxlength => 32 %>
|
|||
<%= submit_tag 'Search' %>
|
|||
<% end -%>
|
|||
</div>
|
|||
18785536 | Marc Dequènes (Duck) | <%= display_new_action %>
|
|
252572a7 | Marc Dequènes (Duck) | <% unless @artworks.empty? -%>
|
|
<div style="clear: both;"><%= will_paginate @artworks %></div>
|
|||
4ca83ea1 | Marc Dequènes (Duck) | <% form_tag({ :action => 'artworks_selection' }, { :id => 'artworks_selection_form' }) do %>
|
|
<table id="artworks_selection_zone">
|
|||
b689e231 | Marc Dequènes (Duck) | <tr>
|
|
4ca83ea1 | Marc Dequènes (Duck) | <th>#</th>
|
|
b689e231 | Marc Dequènes (Duck) | <th><%= sortable_header :title, :label => _("Title"), :default => true %></th>
|
|
<th><%= sortable_header "artwork_sets.name".to_sym, :label => _("Set") %></th>
|
|||
<th><%= sortable_header "artwork_groups.name".to_sym, :label => _("Group") %></th>
|
|||
<th><%= _("Preview") %></th>
|
|||
<th><%= _("Steps") %></th>
|
|||
<th><%= _("Actions") %></th>
|
|||
</tr>
|
|||
<% @artworks.each do |artwork| %>
|
|||
<tr>
|
|||
bf16d414 | Marc Dequènes (Duck) | <td><%= check_box_tag 'artworks_selection_ids[]', artwork.id, false, :id => "artworks_selection_id_#{artwork.id}" %></td>
|
|
b689e231 | Marc Dequènes (Duck) | <td><%= link_to_resource artwork, artwork.title %></td>
|
|
<td><%= artwork.artwork_set.name if artwork.artwork_set %></td>
|
|||
<td><%= artwork.artwork_group.name if artwork.artwork_group %></td>
|
|||
b247fd58 | Marc Dequènes (Duck) | <td class="admin_artwork_frame"><%= display_thumbnail(artwork.image, :thumb_small) %></td>
|
|
b689e231 | Marc Dequènes (Duck) | <td class="resource_children"><%= link_to_children_index artwork, ArtworkStepImage, _("View Steps") %></td>
|
|
<td class="actions"><%= display_standard_item_actions(artwork) %></td>
|
|||
</tr>
|
|||
<% end %>
|
|||
</table>
|
|||
4ca83ea1 | Marc Dequènes (Duck) | <%= hidden_field_tag 'artworks_selection_action' %>
|
|
<%
|
|||
bf16d414 | Marc Dequènes (Duck) | gen_action_proto_menu('artworks_selection', @selection_action_list)
|
|
4ca83ea1 | Marc Dequènes (Duck) | %>
|
|
<% end %>
|
|||
b689e231 | Marc Dequènes (Duck) | <%= will_paginate @artworks %>
|
|
<%= display_new_action %>
|
|||
252572a7 | Marc Dequènes (Duck) | <% end -%>
|
|
b689e231 | Marc Dequènes (Duck) | </p>
|