51 lines
2.0 KiB
Plaintext
51 lines
2.0 KiB
Plaintext
<%= hidden_field_tag 'module_app_id', @module_app_id %>
|
||
|
||
<!-- footer -->
|
||
<div class="bottomnav clearfix">
|
||
<div class="action pull-right">
|
||
<button id="selectAllTags" class="btn"><%= t(:select_all) %></button>
|
||
<button id="deselect" class="btn btn-inverse toggable hide"><%= t(:deselect_all) %></button>
|
||
<%= link_to t(:delete), '#', id: "deleteTags", class: "btn btn-danger toggable hide", rel: '' %>
|
||
<%= link_to t(:merge), '#', id: "mergerTags", class: "btn btn-success toggable hide", rel: merge_admin_module_tags_path(module_app_id: @module_app_id) %>
|
||
<%= link_to t(:remove_default), '#', id: "removeDefaults", class: "btn btn-info toggable hide", rel: '' %>
|
||
<%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add), new_admin_module_tag_path(module_app_id: @module_app_id), class: "btn btn-primary open-slide" %>
|
||
</div>
|
||
</div>
|
||
<!-- footer:end -->
|
||
|
||
<!-- tags -->
|
||
<div class="tags">
|
||
<div id="tags-list">
|
||
<ul class="tags-groups checkbox-card module-tags">
|
||
<%= render partial: "module_tag", collection: @tags %>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<!-- tags:end -->
|
||
|
||
<!-- merge -->
|
||
<%= render 'admin/tags/merge_modal' %>
|
||
<!-- merge:end -->
|
||
|
||
<!-- delete -->
|
||
<%= render 'admin/tags/delete_modal' %>
|
||
<!-- delete:end -->
|
||
|
||
<!-- remove_default -->
|
||
<div id="remove_defaults" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h3 id="myModalLabel"><%= t('tag.remove_default') %></h3>
|
||
</div>
|
||
<div class="modal-body tags">
|
||
<span class="text-warning text-center"><%= t('tag.warning.remove_default') %></span>
|
||
<hr>
|
||
<ul class="tags-groups checkbox-card">
|
||
</ul>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
|
||
<%= link_to t(:remove_default), nil, class: "remove-defaults btn btn-danger", method: :post, remote: true %>
|
||
</div>
|
||
</div>
|
||
<!-- remove_default:end --> |