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