Sha256: b83a1b4c37e90ae14f207f5af99fd3320effa0212fc36d5b104a1703dca5b290
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
Contents
<% content_for :header do %> <div class="main-header--buttons"> <%= link_to 'New Field Group', new_structure_field_group_path, class: 'main-header--link btn btn-primary' %> </div> <h3>Field Groups</h3> <% end %> <% content_for :content do %> <div class="main-table--row row"> <div class="col-sm-12"> <table class="table table-striped"> <thead> <tr> <th colspan="3">Field Group</th> <th></th> </tr> </thead> <tbody class="sortable" data-update-url="<%= structure_field_groups_sort_path() %>"> <% @field_groups.order( :position, :name ).each do |field_group| %> <tr id="field_group_<%= field_group.id %>"> <td colspan="3"><%= field_group.name %></td> <td><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> <%= link_to 'Edit', edit_structure_field_group_path( @structure.slug, field_group ) %> <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> <%= link_to 'Destroy', structure_field_group, method: :delete, data: { confirm: 'This operation will delete this group and all related field settings and component content. Are you ok with that?' }, class: 'text-danger' %></td> </tr> <% end %> <tbody> </table> <%= link_to 'New Field Group', new_structure_field_group_path, class: 'main-header--link btn btn-default' %> </div> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
binda-0.0.5 | app/views/binda/field_groups/index.html.erb |
binda-0.0.3 | app/views/binda/field_groups/index.html.erb |
binda-0.0.2 | app/views/binda/field_groups/index.html.erb |