Sha256: 3203e05fc05703d82d36da36ba4c24a204204997e9e4c4a4ec078aa2ba1a5bcf
Contents?: true
Size: 1.3 KB
Versions: 6
Compression:
Stored size: 1.3 KB
Contents
<%= form_for [collections, @collection], html: {class: 'form-horizontal editor'} do |f| %> <div id="descriptions_display"> <h2 class="non lower">Descriptions <small class="pull-right"><span class="error">*</span> indicates required fields</small> </h2> <div class="well"> <% @collection.terms_for_editing.each do |term| %> <%= render partial: "records/edit_field", locals: {record: @collection, f: f, render_req: true, key: term } %> <% end %> </div><!-- /well --> </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="primary-actions"> <% if params[:action] == "new" %> <%= f.button 'Create Collection', type: 'submit', class: 'btn btn-primary', onclick: "confirmation_needed = false;", id: "create_submit", name: "create_collection" %> <% else %> <%= f.button 'Update Collection', type: 'submit', 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
6 entries across 6 versions & 1 rubygems