<!-- 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_tags_path %>
    <%= link_to t(:add_to_default), add_to_default_admin_tags_path, id: "addDefault", class: "btn btn-info toggable hide", method: :post, remote: true %>
    <%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add), '#', class: "btn btn-primary open-slide", data: {title: t('new.tag'), id: 'new'} %>
  </div>
</div>
<!-- footer:end -->

<!-- tags -->
<div class="tags">
  <div id="tags-list">
    <p class="tag-lead lead muted"><i class="icons-tag"></i> <%= t(:default) %> <span class="badge pull-right"><%= @tags.count %></span></p>
    <ul class="tags-groups checkbox-card default-tags">
      <%= render partial: "tag", collection: @tags %>
    </ul>
    <% @module_apps.each do |module_app| %>
      <% tags = module_app.module_tags %>
      <% icon_name = get_module_app_icon(module_app) %>
      <p class="tag-lead lead muted"><i class="<%= icon_name %>"></i> <%= module_app.title %> <span class="badge pull-right"><%= tags.count %></span></p>
      <ul class="tags-groups checkbox-card module-tags">
        <%= render partial: "tag", collection: tags, locals: {in_module: true} %>
      </ul>
    <% end %>
  </div>
</div>
<!-- tags:end -->

<!-- merge -->
<%= render 'merge_modal' %>
<!-- merge:end -->

<!-- delete -->
<%= render 'delete_modal' %>
<!-- delete:end -->
