Sha256: cd19db3bb047d7c5c8d8878eb996a20dbb0eb238352f82135fb6304c7b335f25

Contents?: true

Size: 1.67 KB

Versions: 10

Compression:

Stored size: 1.67 KB

Contents

<%= simple_form_for @form, html: { class: 'editor' } do |f| %>
  <div id="descriptions_display">
    <h2 class="non lower"><%= t('hyrax.collection.form.description') %></h2>
    <div id="base-terms">
      <% f.object.primary_terms.each do |term| %>
        <%= render_edit_field_partial(term, f: f) %>
      <% end %>
    </div>
    <%= link_to t('hyrax.collection.form.additional_fields'),
            '#extended-terms',
            class: 'btn btn-default additional-fields',
            data: { toggle: 'collapse' },
            role: "button",
            'aria-expanded'=> "false",
            'aria-controls'=> "extended-terms" %>
    <div id="extended-terms" class='collapse'>
      <% f.object.secondary_terms.each do |term| %>
        <%= render_edit_field_partial(term, f: f) %>
      <% end %>
    </div>
  </div>
  <%= hidden_field_tag :type, params[:type] %>
  <% if params[:batch_document_ids].present? %>
    <% params[:batch_document_ids].each do |batch_item| %>
      <input type="hidden" name="batch_document_ids[]" value="<%= batch_item %>"/>
    <% end %>
  <% end %>

  <div class="collection_form_visibility">
    <%= render 'form_permission', f: f %>
  </div>

  <div class="primary-actions">
    <% if params[:action] == "new" %>
      <%= f.submit 'Create Collection', class: 'btn btn-primary', onclick: "confirmation_needed = false;", id: "create_submit", name: "create_collection" %>
    <% else %>
      <%= f.submit 'Update Collection', class: 'btn btn-primary', onclick: "confirmation_needed = false;", id: "update_submit", name: "update_collection" %>
    <% end %>
    <%= link_to t(:'helpers.action.cancel'), main_app.root_path, class: 'btn btn-link' %>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/collections/_form.html.erb
hyrax-1.1.0 app/views/hyrax/collections/_form.html.erb
hyrax-1.0.5 app/views/hyrax/collections/_form.html.erb
hyrax-1.0.4 app/views/hyrax/collections/_form.html.erb
hyrax-1.0.3 app/views/hyrax/collections/_form.html.erb
hyrax-1.0.2 app/views/hyrax/collections/_form.html.erb
hyrax-1.0.1 app/views/hyrax/collections/_form.html.erb
hyrax-1.0.0.rc2 app/views/hyrax/collections/_form.html.erb
hyrax-1.0.0.rc1 app/views/hyrax/collections/_form.html.erb
test_hyrax-0.0.1.alpha app/views/hyrax/collections/_form.html.erb