Sha256: 8d9464e16c4deacaae1626a0e139b14c37b3c6b4993900947d9b6ccc019ce28d
Contents?: true
Size: 1.67 KB
Versions: 7
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('sufia.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('sufia.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
7 entries across 7 versions & 1 rubygems