2020-07-27 16:34:33 +00:00
|
|
|
<script>
|
|
|
|
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
|
|
|
|
</script>
|
|
|
|
<% if 'venue_management_invitings' == 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>
|
|
|
|
<% @invitings.each do |inviting| %>
|
|
|
|
<tr>
|
|
|
|
<% if 'venue_management_invitings' != params[:action] %>
|
|
|
|
<td><%= inviting.venue_management_main.title %></td>
|
|
|
|
<% end %>
|
|
|
|
<td>
|
2020-09-22 15:19:59 +00:00
|
|
|
<%= link_to inviting.display_case_no, (@venue_management_page_url.blank? ? "#" : "/#{I18n.locale}"+@venue_management_page_url+"/#{inviting.display_case_no.strip}-#{inviting.id}?method=show_inviting"), :target => '_self' %>
|
2020-07-27 16:34:33 +00:00
|
|
|
|
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<% if can_edit_or_delete?(inviting) %>
|
|
|
|
<li><%= link_to t(:edit), edit_admin_venue_management_inviting_path(inviting.id) %></li>
|
|
|
|
<li><a href="#" class="delete text-error" rel="/admin/venue_management_invitings/<%=inviting.id.to_s%>"><%= t(:delete_) %></a></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
2020-08-09 13:47:41 +00:00
|
|
|
<td><%= inviting.tags.map{|t| t.name}.join(" , ") rescue "" %></td>
|
2020-07-27 16:34:33 +00:00
|
|
|
<td><%= inviting.publish_times %></td>
|
2020-08-09 13:47:41 +00:00
|
|
|
<td><%= inviting.start_date.to_s + "/" + inviting.end_date.to_s %></td>
|
2020-07-27 16:34:33 +00:00
|
|
|
<td><%= "#{inviting.early_rent} / #{inviting.operation_rent}" %></td>
|
2020-09-22 15:19:59 +00:00
|
|
|
<td><%= inviting.display_royalty %></td>
|
2020-08-09 13:47:41 +00:00
|
|
|
<td><%= t("vm_inviting.enums.#{inviting.house_tax_payer}") + "/" + t("vm_inviting.enums.#{inviting.land_tax_payer}") %></td>
|
2020-07-27 16:34:33 +00:00
|
|
|
<td><%= inviting.contractor_manager %></td>
|
|
|
|
<td><%= t("vm_inviting.enums.bid_result.#{inviting.bid_result}") %></td>
|
2020-10-27 02:41:08 +00:00
|
|
|
<td><%= inviting.display_details %></td>
|
2020-07-27 16:34:33 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-10-27 02:41:08 +00:00
|
|
|
<% filter_url = request.fullpath.split("?")[1..-1].join("?") %>
|
2020-07-27 16:34:33 +00:00
|
|
|
<% if @venue_management.present? %>
|
2020-10-27 02:41:08 +00:00
|
|
|
<% filter_url.blank? ? (filter_url += "id=#{@venue_management.id}") : (filter_url += "&id=#{@venue_management.id}") %>
|
2020-07-27 16:34:33 +00:00
|
|
|
<!-- footer -->
|
|
|
|
<div class="bottomnav clearfix">
|
2020-10-27 02:41:08 +00:00
|
|
|
<%= content_tag :div, class: "pagination-centered" do %>
|
2020-10-05 16:09:17 +00:00
|
|
|
<%= paginate(@invitings) %>
|
|
|
|
<div class="action pull-right">
|
2020-10-27 02:41:08 +00:00
|
|
|
<%= link_to content_tag(:i, nil, class: "fa fa-download") + " " + t('venue_management.export'), export_admin_venue_management_invitings_path(:format=>'xlsx')+"#{(filter_url.blank? ? '' : ('?'+filter_url))}", class: "btn btn-primary", target: '_blank' %>
|
2020-10-05 16:09:17 +00:00
|
|
|
<%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add), new_admin_venue_management_inviting_path(id: @venue_management.id), class: "btn btn-primary" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2020-07-27 16:34:33 +00:00
|
|
|
</div>
|
|
|
|
<!-- footer:end -->
|
2020-10-27 02:41:08 +00:00
|
|
|
<% else %>
|
|
|
|
<%=
|
|
|
|
content_tag :div, class: "bottomnav clearfix" do
|
|
|
|
(content_tag(:div, class: "pagination-centered") do
|
|
|
|
paginate(@invitings)
|
|
|
|
end) +
|
|
|
|
('<div class="action pull-right">'.html_safe +
|
|
|
|
link_to(content_tag(:i, nil, class: "fa fa-download") + " " + t('venue_management.export'), export_admin_venue_management_invitings_path(:format=>'xlsx')+"#{(filter_url.blank? ? '' : ('?'+filter_url))}", class: "btn btn-primary", target: '_blank') +
|
|
|
|
'</div>'.html_safe)
|
|
|
|
end
|
|
|
|
%>
|
2020-07-27 16:34:33 +00:00
|
|
|
<% end %>
|
2020-10-05 16:09:17 +00:00
|
|
|
<style type="text/css">
|
|
|
|
.pagination-centered .pagination{
|
|
|
|
width: calc(100% - 6em);
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.main-list {
|
|
|
|
margin-bottom: 30px;
|
|
|
|
}
|
|
|
|
</style>
|