Sha256: 39b3205b9d006df946a826c6f39b4185067d30f6aeccf4000bdad2b3da27fe51

Contents?: true

Size: 978 Bytes

Versions: 1

Compression:

Stored size: 978 Bytes

Contents

<%= simple_form_for [collections, @collection] do |f| %>

  <% if f.error_notification -%>
    <div class="alert alert-danger fade in">
      <strong>Wait don't go!</strong> There was a problem with your submission. Please review the errors below:
      <a class="close" data-dismiss="alert" href="#">&times;</a>
    </div>
  <% end -%>

  <%= render 'form_descriptive_fields', curation_concern: @collection, f: f %>
  <%= render partial: 'form_permission', locals: {f: f} %>

  <%= render "form_representative_image", curation_concern: @collection, f: f %>

  <div class="row">
    <div class="col-md-12 form-actions">
      <%= f.submit class: 'btn btn-primary require-contributor-agreement' %>
      <%- if @collection.new_record? -%>
        <%= link_to 'Cancel', main_app.root_path, class: 'btn btn-link' %>
      <%- else -%>
        <%= link_to 'Cancel', collections.collection_path(@collection), class: 'btn btn-link' %>
      <%- end -%>
    </div>
  </div>

<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
worthwhile-0.0.1 app/views/collections/_form.html.erb