Sha256: 18c608afe1ac16616c3f50f01038629e0b4cda2852c827a755ee30c528d7f082
Contents?: true
Size: 909 Bytes
Versions: 1
Compression:
Stored size: 909 Bytes
Contents
<div class="page-header"> <h1>Item Sections</h1> <div class="btn-toolbar"> <% if current_user.role == 'admin' %> <div class="btn-group"> <%= link_to 'New Item Section', cavy_new_item_section_path, class: 'button primary small' %> </div> <% end %> </div> </div> <table class="table table-striped"> <thead> <th>Title</th> <th></th> <th></th> </thead> <tbody> <% @item_sections.each do |item_section| %> <tr> <td> <%= item_section.title %> </td> <td> <%= link_to 'Edit', cavy_edit_item_section_path(item_section), class: 'button primary small' %> </td> <td> <%= link_to 'Destroy', cavy_delete_item_section_path(item_section), class: 'button alert small', :method => :delete, :data => { :confirm => 'Are you sure?' } %> </td> </tr> <% end %> </tbody> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cavy-0.1.0.beta2 | app/views/cavy/item_sections/index.html.erb |