<% set_default_index do 
	objects @page_contexts
	quick_edit_link type: 'edit',
									link: 'edit_panel_page_content_back_end_page_context_path'
	quick_edit_link type: 'authorization',
									link: "admin_authorizations_path(@module_app.key, 'page_context_authorization', object.id)"
	field type: 'associated',
				db_field: 'page',
				model_field: 'path',
				translation: 'path',
				hide: 'phone',
				sort: 'path'
	field type: 'associated',
				db_field: 'page',
				model_field: 'title',
				translation: 'name',
				quick_edit: true,
				header_class: 'span5',
				hide: 'phone',
				sort: 'name'
	field db_field: 'version',
				translation: 'version',
				display_option: 'link_to value, panel_page_content_back_end_view_path(object.page_id)',
				sort: 'version',
				hide: 'phone'
	field db_field: 'updated_at',
				translation: 'update_at',
				display_option: 'display_date_time(value)',
				hide: 'phone',
				sort: 'update_at'
	field type: 'id',
				db_field: 'update_user_id',
				model: User,
				model_field: 'name',
				translation: 'last_modified',
				hide: 'phone',
				sort: 'last_modified'
	footer
end %>

<%= render 'admin/default_index/index' %>
