-
- <%= simple_form_for @form, url: [hyrax, :dashboard, @form], html: { class: 'editor nav-safety', data: { behavior: 'collection-form', 'param-key' => @form.model_name.param_key } } do |f| %>
-
-
-
-
-
-
- <% f.object.primary_terms.each do |term| %>
- <%= render_edit_field_partial(term, f: f) %>
- <% end %>
-
- <% # TODO: Remove check for PcdmCollection when Issue #5286 is resolved. %>
- <% if f.object.persisted? && !(Hyrax.config.collection_class < Valkyrie::Resource) %>
- <%# we're loading these values dynamically to speed page load %>
- <%= f.input :thumbnail_id,
- input_html: { data: { text: thumbnail_label_for(object: f.object) } } %>
- <% end %>
-
- <% if f.object.display_additional_fields? %>
- <%= link_to t('hyrax.collection.form.additional_fields'),
- '#extended-terms',
- class: 'btn btn-secondary additional-fields',
- data: { toggle: 'collapse' },
- role: "button",
- 'aria-expanded'=> "false",
- 'aria-controls'=> "extended-terms" %>
-
- <% f.object.secondary_terms.each do |term| %>
- <%= render_edit_field_partial(term, f: f) %>
- <% end %>
-
- <% end %>
- <%= hidden_field_tag :type, params[:type] %>
- <%= hidden_field_tag :stay_on_edit, true %>
- <%= hidden_field_tag :collection_type_gid, @collection.collection_type_gid %>
-
- <% if params[:parent_id].present? %>
- <%= hidden_field_tag :parent_id, params[:parent_id] %>
- <% end %>
- <% if params[:batch_document_ids].present? %>
- <% params[:batch_document_ids].each do |batch_item| %>
-
- <% end %>
- <% end %>
-
-
-
-
- <% if @form.persisted? %>
- <% if collection_brandable?(collection: @collection) %>
-
-
-
- <%= render 'form_branding', f: f %>
-
-
-
- <% end %>
-
- <% if collection_discoverable?(collection: @collection) %>
-
-
-
- <%= render 'form_discovery', f: f %>
-
-
-
- <% end %>
-
- <% if collection_sharable?(collection: @collection) %>
-
-
-
- <%= render 'form_share', f: f %>
-
-
-
- <% end %>
- <% end %>
-
-
-