<% set_default_index do 
	objects @web_links
	quick_edit_link type: 'edit',
									link: 'edit_panel_web_resource_back_end_web_link_path'
	quick_edit_link type: 'detail'
	quick_edit_link type: 'delete',
									link: 'panel_web_resource_back_end_web_link_path'
	field type: 'status',
				db_field: @statuses,
				translation: 'status',
				hide: 'phone',
				sort: 'status',
				header_class: 'span2'
	field type: 'associated',
				db_field: 'category',
				model_field: 'title',
				translation: 'category',
				hide: 'phone',
				sort: 'category',
				header_class: 'span2'
	field db_field: 'title',
				translation: 'title',
				sort: 'title',
				display_option: 'link_to value, panel_web_resource_front_end_web_link_path(object)',
				quick_edit: true,
				header_class: 'span5'
	field type: 'tags',
				hide: 'all',
				sort: 'tags'
	filter_field  type: 'array',
								values: @statuses,
								translation: 'status'
	filter_field  type: 'objects',
								values: @categories,
								translation: 'category',
								object_field: 'title'
	filter_field  type: 'objects',
								values: @tags,
								translation: 'tags',
								object_field: 'name'
	footer link: 'new_panel_web_resource_back_end_web_link_path'
end %>

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