Fix bugs.
This commit is contained in:
parent
483a813e74
commit
1e258aa2f5
|
@ -261,7 +261,14 @@ class Admin::VenueManagementsController < Admin::VenueAdminController
|
||||||
'vm_inviting.contractor_manager',
|
'vm_inviting.contractor_manager',
|
||||||
'vm_inviting.bid_result',
|
'vm_inviting.bid_result',
|
||||||
]
|
]
|
||||||
@invitings = @venue_management.venue_management_invitings.page(params[:page]).per(10)
|
@invitings = @venue_management.venue_management_invitings.with_tags(filters("tag")).page(params[:page]).per(10)
|
||||||
|
@tags = @module_app.tags
|
||||||
|
@filter_fields = {}
|
||||||
|
@filter_fields['vm_inviting.type'] = @tags.map{|t| {:title => t.name,:id => t.id} }
|
||||||
|
@venue_management_page_url = Page.where(:module =>"venue_management").last.url rescue ""
|
||||||
|
if request.xhr?
|
||||||
|
render :partial => 'admin/venue_management_invitings/index'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def venue_management_memorabilias
|
def venue_management_memorabilias
|
||||||
|
@ -282,6 +289,7 @@ class Admin::VenueManagementsController < Admin::VenueAdminController
|
||||||
'vm_contract.note',
|
'vm_contract.note',
|
||||||
]
|
]
|
||||||
@contracts = @venue_management.venue_management_contracts.page(params[:page]).per(10)
|
@contracts = @venue_management.venue_management_contracts.page(params[:page]).per(10)
|
||||||
|
@venue_management_page_url = Page.where(:module =>"venue_management").last.url rescue ""
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<%= render_filter @filter_fields, "index_table" %>
|
||||||
<span id="index_table">
|
<span id="index_table">
|
||||||
<%= render 'admin/venue_management_invitings/index' %>
|
<%= render 'admin/venue_management_invitings/index' %>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue