67 lines
2.4 KiB
Plaintext
67 lines
2.4 KiB
Plaintext
<script>
|
|
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
|
|
</script>
|
|
<% if 'venue_management_memorabilias' == params[:action] %>
|
|
<h4><%= @venue_management.title %></h4>
|
|
<% end %>
|
|
<table class="table main-list">
|
|
<thead>
|
|
<tr class="sort-header">
|
|
<% @table_fields.each do |f| %>
|
|
<%= thead(f) %>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @memorabilias.each do |memorabilia| %>
|
|
<tr>
|
|
<% if 'venue_management_memorabilias' != params[:action] %>
|
|
<td><%= memorabilia.venue_management_main.title %></td>
|
|
<% end %>
|
|
<td>
|
|
<%= link_to (memorabilia.case_no.blank? ? t("empty") : @venue_management_page_url.blank? ? "" : memorabilia.case_no), ("/#{I18n.locale}"+@venue_management_page_url+"/#{memorabilia.case_no.to_s.strip}-#{memorabilia.id}?method=show_memorabilia") , :target => '_blank' %>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills">
|
|
<% if can_edit_or_delete?(@venue_management || memorabilia.venue_management_main) %>
|
|
<li><%= link_to t(:edit), edit_admin_venue_management_memorabilia_path(memorabilia.id) %></li>
|
|
<li><a href="#" class="delete text-error" rel="/admin/venue_management_memorabilias/<%=memorabilia.id.to_s%>"><%= t(:delete_) %></a></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td><%= memorabilia.event_date %></td>
|
|
<td><%= memorabilia.display_details %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%=
|
|
content_tag :div, class: "bottomnav clearfix" do
|
|
content_tag :div, paginate(@memorabilias), class: "pagination pagination-centered"
|
|
end
|
|
%>
|
|
<% if @venue_management.present? %>
|
|
<!-- footer -->
|
|
<div class="bottomnav clearfix">
|
|
<%= content_tag :div, class: "pagination pagination-centered" do %>
|
|
<%= paginate(@memorabilias) %>
|
|
<% if can_edit_or_delete?(@venue_management) %>
|
|
<div class="action pull-right">
|
|
<%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add), new_admin_venue_management_memorabilia_path(id: @venue_management.id), class: "btn btn-primary" %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<!-- footer:end -->
|
|
<% end %>
|
|
<style type="text/css">
|
|
.pagination-centered .pagination{
|
|
width: calc(100% - 6em);
|
|
float: left;
|
|
}
|
|
.main-list {
|
|
margin-bottom: 30px;
|
|
}
|
|
</style>
|