Sha256: a9879415369a3eb5ad2b79c1a0361d9bc18316510738970a1c6155a15f74fc36
Contents?: true
Size: 1.28 KB
Versions: 6
Compression:
Stored size: 1.28 KB
Contents
<%= simple_form_for [main_app, @form], wrapper_mappings: { multifile: :horizontal_file_input } 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="#">×</a> <%= render 'form_in_works_error', f: f %> <%= render 'form_ordered_members_error', f: f %> </div> <% end %> <%= render 'form_descriptive_fields', f: f %> <%= render 'form_supplementary_fields', f: f %> <div class="row"> <div class="col-md-12 form-actions"> <%# TODO: If we start using ActionCable, we could listen for object updates and alert the user that the object has changed by someone else %> <%= f.input CurationConcerns::OptimisticLockValidator.version_field, as: :hidden unless f.object.new_record? %> <%= f.submit class: 'btn btn-primary require-contributor-agreement' %> <% if curation_concern.new_record? %> <%= link_to 'Cancel', main_app.root_path, class: 'btn btn-link' %> <% else %> <%= link_to 'Cancel', polymorphic_path([main_app, curation_concern]), class: 'btn btn-link' %> <% end %> </div> </div> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems