Sha256: e98619e14c59d3cf9a6c916bff46fa17d76af0ff7e309729043512ee8036584a
Contents?: true
Size: 1.88 KB
Versions: 5
Compression:
Stored size: 1.88 KB
Contents
<%- @page_title = "GBL♦Admin - Reference Types" %> <div class="row mb-2"> <div class="col"> <h1 style="width:100%;"> Reference Types <%= link_to '+ New Reference Type', new_admin_reference_type_path, { class: 'btn btn-primary float-right' } %> </h1> <p class="alert alert-warning"><strong>Notice</strong> - This table defines the keys/values pairings for dct_reference_s entries. <table class="table table-striped table-bordered sortable"> <thead class="thead-dark"> <tr> <th class="header">Name</th> <th class="header">Reference Type</th> <th class="header">Reference URI</th> <th class="header">Label</th> <th class="header">Note</th> <th class="header">Reorder</th> <th class="header" colspan="2">Actions</th> </tr> </thead> <tbody> <% @reference_types.order(:position => :asc).each do |reference_type| %> <tr data-id="<%= reference_type.id %>"> <td><%= link_to reference_type.name, admin_reference_type_path(reference_type) %></td> <td><%= reference_type.reference_type %></td> <td><%= reference_type.reference_uri %></td> <td><%= reference_type.label %></td> <td><%= reference_type.note %></td> <td class="handle" style="text-align:center">↕</td> <td><%= link_to 'Edit', edit_admin_reference_type_path(reference_type) %></td> <td><%= link_to 'Destroy', admin_reference_type_path(reference_type), method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </tbody> </table> <br> <%= link_to '+ New Reference Type', new_admin_reference_type_path, { class: 'btn btn-primary' } %> </div> </div> <script> GBLADMIN.SortElements( $("tbody"), "<%= sort_admin_reference_types_path %>" ); </script>
Version data entries
5 entries across 5 versions & 1 rubygems