Sha256: 4a318196ee3f84683e20ce083e029ddf6240ddd1c6f0d5c7bc601a7a4632f915
Contents?: true
Size: 1.58 KB
Versions: 29
Compression:
Stored size: 1.58 KB
Contents
<% if collector || editor %> <div class="form-actions"> <% if editor %> <%= link_to "Edit This #{@presenter.human_readable_type}", edit_polymorphic_path([main_app, @presenter]), class: 'btn btn-default' %> <%= link_to "Attach a File", main_app.new_curation_concerns_file_set_path(@presenter), class: 'btn btn-default' %> <%= link_to t("file_manager.link_text"), polymorphic_path([main_app, :file_manager, @presenter]), class: 'btn btn-default' %> <% if @presenter.valid_child_concerns.length > 0 %> <div class="btn-group"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Attach Child <span class="caret"></span> </button> <ul class="dropdown-menu"> <% @presenter.valid_child_concerns.each do |concern| %> <li> <%= link_to "Attach #{concern.human_readable_type}", polymorphic_path([main_app, :new, :curation_concerns, :parent, concern.model_name.singular], parent_id: @presenter.id) %> </li> <% end %> </ul> </div> <% end %> <%= link_to "Delete This #{@presenter.human_readable_type}", [main_app, @presenter], class: 'btn btn-danger pull-right', data: { confirm: "Delete this #{@presenter.human_readable_type}?" }, method: :delete %> <% end %> <% if collector %> <%= render 'collections/add_to_collection_modal', collectible: @presenter %> <%= link_to_select_collection @presenter, class: 'btn btn-default' %> <% end %> </div> <% end %>
Version data entries
29 entries across 29 versions & 1 rubygems