Sha256: 9d54e91c697fedd3b2900464e8d454ae09fd1c57ce75cf84552ca6e2ff8760e6

Contents?: true

Size: 1.39 KB

Versions: 2

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 'raster_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

2 entries across 2 versions & 1 rubygems

Version Path
geo_concerns-0.0.7 app/views/curation_concerns/raster_works/_show_actions.html.erb
geo_concerns-0.0.6 app/views/curation_concerns/raster_works/_show_actions.html.erb