2014-09-16 01:57:34 +00:00
|
|
|
<div id="yield">
|
|
|
|
<div class='blackBox'>
|
|
|
|
<%= render :partial => 'admin/adminpanel' %>
|
|
|
|
<br />
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th class='metacodeSetsDescription'>Description</th>
|
|
|
|
<th>Metacodes</th>
|
|
|
|
</tr>
|
2014-05-17 18:57:03 +00:00
|
|
|
|
2014-09-16 01:57:34 +00:00
|
|
|
<% @metacode_sets.each do |metacode_set| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<%= metacode_set.name %><br />
|
|
|
|
<%= link_to 'Edit',
|
2016-08-16 14:25:07 +00:00
|
|
|
edit_metacode_set_path(metacode_set) %>
|
2014-09-16 01:57:34 +00:00
|
|
|
<br />
|
|
|
|
<%= link_to 'Delete',
|
|
|
|
metacode_set, method: :delete,
|
2016-08-16 14:25:07 +00:00
|
|
|
data: { confirm: 'Are you sure?' } %>
|
2014-09-16 01:57:34 +00:00
|
|
|
</td>
|
|
|
|
<td class='metacodeSetDesc'><%= metacode_set.desc %></td>
|
|
|
|
<td>
|
|
|
|
<% metacode_set.metacodes.each_with_index do |metacode, index| %>
|
2015-10-23 15:42:21 +00:00
|
|
|
<img class='metacodeSetImage' src='<%= asset_path metacode.icon %>' />
|
2014-09-16 01:57:34 +00:00
|
|
|
<% if (index+1)%4 == 0 %>
|
|
|
|
<div class='clearfloat'></div>
|
|
|
|
<% end %>
|
2014-05-17 18:57:03 +00:00
|
|
|
<% end %>
|
2014-09-16 01:57:34 +00:00
|
|
|
<div class='clearfloat'></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-09-22 14:27:34 +00:00
|
|
|
</div>
|