58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
|
<% set_default_index do
|
||
|
objects @ad_images
|
||
|
quick_edit_link type: 'edit',
|
||
|
link: 'edit_admin_ad_image_path'
|
||
|
# quick_edit_link type: 'detail'
|
||
|
quick_edit_link type: 'delete',
|
||
|
link: 'admin_ad_image_path'
|
||
|
# can have: title, warning, cancel and submit values
|
||
|
field type: 'image',
|
||
|
db_field: 'file',
|
||
|
version: 'thumb',
|
||
|
translation: 'preview',
|
||
|
hide: 'phone'
|
||
|
# field type: 'status',
|
||
|
# db_field: @statuses,
|
||
|
# translation: 'status',
|
||
|
# hide: 'phone',
|
||
|
# sort: 'status'
|
||
|
field type: 'associated',
|
||
|
db_field: 'ad_banner',
|
||
|
model_field: 'title',
|
||
|
translation: 'ad_banner.banner',
|
||
|
hide: 'phone',
|
||
|
sort: 'ad_banner'
|
||
|
field db_field: 'title',
|
||
|
translation: 'title',
|
||
|
sort: 'title',
|
||
|
quick_edit: true,
|
||
|
header_class: 'span5',
|
||
|
sort: 'title'
|
||
|
field db_field: 'postdate',
|
||
|
translation: 'start_date',
|
||
|
hide: 'phone',
|
||
|
sort: 'start_date'
|
||
|
field db_field: 'deadline',
|
||
|
translation: 'end_date',
|
||
|
hide: 'phone',
|
||
|
sort: 'end_date'
|
||
|
field db_field: 'out_link',
|
||
|
translation: 'link',
|
||
|
sort: 'link',
|
||
|
display_option: 'link_to value, value'
|
||
|
# 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_admin_ad_image_path'
|
||
|
end %>
|
||
|
|
||
|
<%= render 'admin/default_index/index' %>
|