Sha256: 8dbd8d3037dec126f56111241f9b67e8ea31367dca6feccaf4fd1c2172fc8100

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

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

    <%- 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

1 entries across 1 versions & 1 rubygems

Version Path
geoblacklight_admin-0.1.0 app/views/admin/documents/_form_nav.html.erb