Sha256: 81b8b8e60b278bc32da00a8f187e65eb91c2d89b63ffa64909a94b2fad8cbefa

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 KB

Contents

<div class="make-me-sticky mt-4 ml-4">
  <nav class="nav flex-column ml-4 mt-6">
    <% if @document.persisted? %>
      <strong class="mt-4"><%= link_to "GBL♦Admin | View in GeoBlacklight", solr_document_url(@document), { class: 'btn btn-warning' } %></strong>
    <% end %>

    <%- form_elements = FormElement.all.order(position: :asc) %>
    <%- form_elements.each do |form_element| %>
      <% if form_element.kind_of? FormHeader %>
        <strong class="mt-2"><a data-controller="scroll-to" class="mt-4" href="#<%= form_element.label.parameterize(separator: '-') %>"><%= form_element.label %></a></strong>
      <% end %>
      <% if form_element.kind_of? FormGroup %>
        <a data-controller="scroll-to" class="ml-2" href="#<%= form_element.label.parameterize(separator: '-') %>"><%= form_element.label %></a>
      <% end %>
    <% end %>

    <% if @document.persisted? %>
      <%= link_to "Institutional Access Links", admin_document_document_accesses_url(@document), class: "ml-2" %>
      <%= link_to "Multiple Download Links", admin_document_document_downloads_url(@document), class: "ml-2" %>
      <%= link_to "Additional Assets", admin_document_document_assets_url(@document), class: "ml-2" %>
    <% end %>
  </nav>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geoblacklight_admin-0.3.2 app/views/admin/documents/_form_nav.html.erb
geoblacklight_admin-0.3.1 app/views/admin/documents/_form_nav.html.erb
geoblacklight_admin-0.3.0 app/views/admin/documents/_form_nav.html.erb
geoblacklight_admin-0.2.1 app/views/admin/documents/_form_nav.html.erb