Sha256: f2fb832817181d89d57425f403191cd2a0d4af1e306c409ad82fa1aa10d37f82

Contents?: true

Size: 921 Bytes

Versions: 16

Compression:

Stored size: 921 Bytes

Contents

<%- form_elements = FormElement.all.order(position: :asc) %>

<%- form_elements.each do |form_element| %>

  <% if form_element.kind_of? FormHeader %>
    <%= render partial: 'form_header', locals: { form_element: form_element } %>
  <% end %>

  <% if form_element.kind_of? FormGroup %>
    <%= render partial: 'form_group', locals: { form_element: form_element } %>
  <% end %>

  <% if form_element.kind_of? FormFeature %>
    <%= render partial: "admin/documents/features/#{form_element.label.parameterize(separator: "_")}", locals: { form_element: form_element } %>
  <% end %>

  <% if form_element.kind_of? FormControl %>
    <%- element = Element.find_by(solr_field: form_element.element_solr_field) %>
    <%- next if element.display_only_on_persisted? && !@document.persisted? %>

    <%= render partial: 'form_control', locals: { form_element: form_element, f: f, element: element } %>
  <% end %>

<%- end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
geoblacklight_admin-0.7.0 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.6.3 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.6.2 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.6.1 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.6.0 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.5.1 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.5.0 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.4.2 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.4.1 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.4.0 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.3.2 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.3.1 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.3.0 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.2.1 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.1.0 app/views/admin/documents/_document_fields.html.erb
geoblacklight_admin-0.0.1 app/views/admin/documents/_document_fields.html.erb