1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
6 object = @object unless object
9 <div class="collection-tags-container" style="padding-left:2em;padding-right:2em;">
10 <% if object.editable? %>
11 <p title="Edit tags" id="edit-collection-tags">
12 <a class="btn btn-primary edit-collection-tags">Edit</a>
16 <table class="table table-condensed table-fixedlayout collection-tags-table" border="1">
31 <tbody class="collection-tag-rows">
32 <%= render partial: 'show_tag_rows', locals: {object: object} %>
36 <% if object.editable? %>
37 <div class="pull-left">
38 <a class="btn btn-primary btn-sm collection-tag-add hide"><i class="glyphicon glyphicon-plus"></i> Add new tag </a>
40 <div class="pull-right">
41 <%= link_to(save_tags_collection_path, {class: 'btn btn-sm btn-primary collection-tag-save hide', :remote => true, method: 'post', return_to: request.url}) do %>
44 <%= link_to(tags_collection_path, {class: 'btn btn-sm btn-primary collection-tag-cancel hide', :remote => true, method: 'get', return_to: request.url}) do %>
49 <div><div class="collection-tags-status"/></div></div>