DRY up event export menus
This commit is contained in:
parent
0848df6948
commit
81bad2eb4d
3 changed files with 26 additions and 24 deletions
21
app/views/admin/events/_export_menu.haml
Normal file
21
app/views/admin/events/_export_menu.haml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
.btn-group
|
||||
%button.btn.btn-success.dropdown-toggle{ data: { toggle: 'dropdown' } }
|
||||
Export
|
||||
= export_format.upcase
|
||||
%span.caret
|
||||
%ul.dropdown-menu{ role: 'menu' }
|
||||
%li
|
||||
= link_to 'All Events',
|
||||
admin_conference_program_events_path(conference_id,
|
||||
format: export_format,
|
||||
event_export_option: 'all')
|
||||
%li
|
||||
= link_to 'Confirmed Events',
|
||||
admin_conference_program_events_path(conference_id,
|
||||
format: export_format,
|
||||
event_export_option: 'confirmed')
|
||||
%li
|
||||
= link_to 'All Events with Comments',
|
||||
admin_conference_program_events_path(conference_id,
|
||||
format: export_format,
|
||||
event_export_option: 'all_with_comments')
|
||||
Loading…
Add table
Add a link
Reference in a new issue