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