Sha256: 051c97809d496842690fa986514a4f221255983f5b171180ce7348df9b4ce4a2
Contents?: true
Size: 1.39 KB
Versions: 13
Compression:
Stored size: 1.39 KB
Contents
<% if collector || editor %> <div class="form-actions"> <% if collector %> <%= render 'collections/add_to_collection_modal', collectible: @presenter %> <%= link_to_select_collection @presenter, class: 'btn btn-default' %> <% end %> <% if editor %> <%= link_to "Edit This #{@presenter.human_readable_type}", edit_polymorphic_path([main_app, @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 %> <%= render 'image_actions', document: @presenter %> <%= 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 %> </div> <% end %>
Version data entries
13 entries across 13 versions & 1 rubygems