%= simple_form_for [:curation_concern, curation_concern] do |f| %>
<% if curation_concern.persisted? %>
<%- end -%>
<%= render "/curation_concern/permission", curation_concern: curation_concern, f: f %>
<%= f.submit(
(curation_concern.persisted? ? "Update Attached File" : %(Attach to #{parent.human_readable_type})),
class: 'btn btn-primary'
) %>
<%# TODO Cancel button behavior should be context aware.
Going back to the dashboard isn't always the expected behavior. %>
<%= link_to 'Cancel', dashboard_index_path, class: 'btn btn-link' %>
<% unless curation_concern.new_record? -%>
<%= link_to 'Go to File Record View', polymorphic_path([:curation_concern, curation_concern]), class: 'btn btn-info pull-right' %>
<% end -%>
<% end %>