metamaps--metamaps/views/metacode_sets/index.html.erb

37 lines
1 KiB
Text
Raw Normal View History

2017-10-14 19:55:50 +00:00
<div id="yield">
2018-03-05 17:33:16 +00:00
<div className='centerContent'>
2017-10-14 19:55:50 +00:00
<br />
<table>
<tr>
<th>Name</th>
2018-03-05 17:33:16 +00:00
<th className='metacodeSetsDescription'>Description</th>
2017-10-14 19:55:50 +00:00
<th>Metacodes</th>
</tr>
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-05 17:33:16 +00:00
<td className='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| }
2018-03-05 17:33:16 +00:00
<img className='metacodeSetImage' src='{ asset_path metacode.icon }' />
2018-03-04 02:25:42 +00:00
{ if (index+1)%4 == 0 }
2018-03-05 17:33:16 +00:00
<div className='clearfloat'></div>
2018-03-04 02:25:42 +00:00
{ end }
{ end }
2018-03-05 17:33:16 +00:00
<div className='clearfloat'></div>
2017-10-14 19:55:50 +00:00
</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>
</div>