68 lines
2.4 KiB
Plaintext
68 lines
2.4 KiB
Plaintext
|
<% content_for :page_specific_javascript do %>
|
|||
|
<%= javascript_include_tag "lib/modal-preview" if @approvable %>
|
|||
|
<script>
|
|||
|
$(document).ready(function(){
|
|||
|
$('.reject_info').tooltip({
|
|||
|
placement : 'bottom'
|
|||
|
});
|
|||
|
});
|
|||
|
</script>
|
|||
|
<% end %>
|
|||
|
|
|||
|
<% content_for :right_nav do %>
|
|||
|
<!-- <div class="pull-right">
|
|||
|
<input id="filter-input" class="search-query input-medium" type="text" placeholder="<%= t(:search_) %>" value="">
|
|||
|
</div> -->
|
|||
|
<% if @filterable %>
|
|||
|
<ul class="nav nav-pills filter-nav pull-right">
|
|||
|
<li class="accordion-group">
|
|||
|
<div class="accordion-heading">
|
|||
|
<a href="#collapse-status" data-toggle="collapse" data-parent="#filter" class="accordion-toggle"><%= t(:status) %></a>
|
|||
|
</div>
|
|||
|
</li>
|
|||
|
<li class="accordion-group">
|
|||
|
<div class="accordion-heading">
|
|||
|
<a href="#collapse-category" data-toggle="collapse" data-parent="#filter" class="accordion-toggle"><%= t(:categories) %></a>
|
|||
|
</div>
|
|||
|
</li>
|
|||
|
<li class="accordion-group">
|
|||
|
<div class="accordion-heading">
|
|||
|
<a href="#collapse-tags" data-toggle="collapse" data-parent="#filter" class="accordion-toggle"><%= t(:tags) %></a>
|
|||
|
</div>
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
<div class="filter-group accordion-group">
|
|||
|
<div class="accordion-body collapse" id="collapse-status">
|
|||
|
<%= render 'admin/default_index/filter_status' %>
|
|||
|
</div>
|
|||
|
<div class="accordion-body collapse" id="collapse-category">
|
|||
|
<%= render 'admin/default_index/filter_categories' %>
|
|||
|
</div>
|
|||
|
<div class="accordion-body collapse" id="collapse-tags">
|
|||
|
<%= render 'admin/default_index/filter_tags' %>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<% end %>
|
|||
|
<% end %>
|
|||
|
|
|||
|
<%= index_table %>
|
|||
|
|
|||
|
<%= @index_footer %>
|
|||
|
|
|||
|
|
|||
|
<div id="delete_tags" 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.delete') %></h3>
|
|||
|
</div>
|
|||
|
<div class="modal-body tags">
|
|||
|
<span class="text-warning text-center"><%= t('tag.warning.delete') %></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(:delete_), nil, class: "delete-tags btn btn-danger", method: :post, remote: true %>
|
|||
|
</div>
|
|||
|
</div>
|