2 object = @object unless object
5 <div class="collection-tags-container" style="padding-left:2em;padding-right:2em;">
6 <% if object.editable? %>
7 <p title="Edit tags" id="edit-collection-tags">
8 <button type="button" class="btn btn-primary edit-collection-tags">Edit</button>
12 <table class="table table-condensed table-fixedlayout collection-tags-table" border="1">
27 <tbody class="collection-tag-rows">
28 <%= render partial: 'show_tag_rows', locals: {object: object} %>
32 <% if object.editable? %>
33 <div class="pull-left">
34 <button class="btn btn-primary btn-sm collection-tag-add hide"><i class="glyphicon glyphicon-plus"></i> Add new tag </button>
36 <div class="pull-right">
37 <%= link_to(save_tags_collection_path, {class: 'btn btn-primary collection-tag-save hide', :remote => true, method: 'post', return_to: request.url}) do %>
40 <button type="button" class="btn btn-sm btn-primary collection-tag-cancel hide">Cancel</button>
43 <div><div class="collection-tags-status"/></div></div>