Sha256: 5e9b43d8a9e16b82e6c3f031dd3f02da0b6068d4a370bb304678d67888c28708

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

<% if can? :edit, @presenter.id %>
  <% if @presenter.valid_child_concerns.length > 0 %>
    <div class="row member-actions">
      <div class="col-sm-5">
        <div class="input-group">
          <input class="related_works_ids work_child_members_ids form-control" id="work_child_members_ids"  value="" aria-labelledby="work_child_members_ids_label" type="text" placeholder="Existing child id...">
          <span class="input-group-btn">
            <a class="btn btn-primary btn-add-row">Attach</a>
          </span>
        </div>
        <div class="message has-warning hidden"></div>
      </div>
      <div class="col-sm-7">
        <div class="btn-group">
          <% @presenter.valid_child_concerns.each do |concern| %>
            <%= link_to "Attach New #{concern.human_readable_type}", polymorphic_path([main_app, :new, :curation_concerns, :parent, concern.model_name.singular], parent_id: @presenter.id), class: 'btn btn-default' %>
          <% end %>
        </div>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.3.3 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.3.2 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.3.1 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.3.0 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.2.0 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.1.1 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.1.0 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.0.10 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.0.9 app/views/geo_concerns/related/_new_child_member.html.erb
geo_concerns-0.0.8 app/views/geo_concerns/related/_new_child_member.html.erb