orbit-announcement/app/views/panel/announcement/back_end/bulletins/index.html.erb

62 lines
1.8 KiB
Plaintext

<% set_default_index do
objects @bulletins
quick_edit_link type: 'edit',
link: 'edit_panel_announcement_back_end_bulletin_path'
quick_edit_link type: 'detail'
quick_edit_link type: 'delete',
link: 'panel_announcement_back_end_bulletin_path'
# can have: title, warning, cancel and submit values
quick_edit_link type: 'approval',
link: 'panel_announcement_back_end_bulletin_approval_preview_path'
quick_edit_link type: 'reject_reason'
field type: 'status',
db_field: @statuses,
translation: 'status',
hide: 'phone',
sort: 'status'
field type: 'associated',
db_field: 'category',
model_field: 'title',
translation: 'category',
hide: 'phone',
sort: 'category'
field db_field: 'title',
translation: 'title',
sort: 'title',
display_option: 'link_to value, panel_announcement_front_end_bulletin_path(object)',
quick_edit: true,
header_class: 'span5'
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 type: 'tags',
hide: 'all',
sort: 'tags'
field type: 'id',
db_field: 'update_user_id',
model: User,
model_field: 'name',
translation: 'last_modified',
hide: 'phone',
sort: 'last_modified'
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_announcement_back_end_bulletin_path'
end %>
<%= render 'admin/default_index/index' %>