2011-07-12 08:02:41 +00:00
|
|
|
<% content_for :secondary do %>
|
2011-12-23 10:02:45 +00:00
|
|
|
<div class="designs_setup">
|
|
|
|
<h1><%= t('admin.setup_designs') %></h1>
|
|
|
|
<ul class="list">
|
|
|
|
<li><%= link_to content_tag(:span, t('admin.new_design')), new_admin_design_path, :class => 'seclink1' %></li>
|
|
|
|
<li><%= link_to content_tag(:span, t('admin.upload_design')), upload_package_admin_designs_path, :class => 'seclink2' %></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2011-07-12 08:02:41 +00:00
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
<%= flash_messages %>
|
2011-12-23 10:02:45 +00:00
|
|
|
<div class="main2">
|
2011-07-12 08:02:41 +00:00
|
|
|
<h1><%= t('admin.list_designs') %></h1>
|
|
|
|
|
|
|
|
<table>
|
2011-12-23 10:02:45 +00:00
|
|
|
<thead>
|
2011-07-12 08:02:41 +00:00
|
|
|
<tr>
|
2011-12-23 10:02:45 +00:00
|
|
|
<td><%= t('admin.title') %></td>
|
|
|
|
<td><%= t('admin.author') %></td>
|
|
|
|
<td><%= t('admin.intro') %></td>
|
|
|
|
<td><%= t('admin.action') %></td>
|
2011-07-12 08:02:41 +00:00
|
|
|
</tr>
|
2011-12-23 10:02:45 +00:00
|
|
|
</thead>
|
2011-07-12 08:02:41 +00:00
|
|
|
<% @designs.each do |design| %>
|
2011-12-23 10:02:45 +00:00
|
|
|
<tr class="have">
|
2011-07-12 08:02:41 +00:00
|
|
|
<td><%= design.title %></td>
|
|
|
|
<td><%= design.author %></td>
|
|
|
|
<td><%= design.intro %></td>
|
2011-12-23 10:02:45 +00:00
|
|
|
<td class="action">
|
|
|
|
<%= link_to t(:edit), edit_admin_design_path(design), :class => 'edit' %>
|
|
|
|
<%= link_to t(:delete), admin_design_path(design), :confirm => t('sure?'), :method => :delete, :class => 'delete' %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2011-12-23 10:02:45 +00:00
|
|
|
<tr></tr>
|
2011-07-12 08:02:41 +00:00
|
|
|
<% end %>
|
|
|
|
</table>
|
2011-12-23 10:02:45 +00:00
|
|
|
</div>
|