osem-fcy/app/views/admin/events/_change_state_dropdown.html.haml

38 lines
1.8 KiB
Text
Raw Normal View History

2014-06-17 10:40:57 +03:00
- if event.transition_possible? :accept
%li= link_to 'Accept event',
2016-02-27 17:03:43 +05:30
accept_admin_conference_program_event_path(@conference.short_title, event),
2014-06-17 10:40:57 +03:00
method: :patch, id: "accept_event_#{event.id}"
- if @conference.email_settings.send_on_accepted?
%li= link_to 'Accept event (without email)',
2016-02-27 17:03:43 +05:30
accept_admin_conference_program_event_path(@conference.short_title, event, send_mail: false),
2014-06-17 10:40:57 +03:00
method: :patch, hint: 'Accept this event without sending an automated email.',
id: "accept_event_without_mail_#{event.id}"
- if event.transition_possible? :reject
%li= link_to 'Reject event',
2016-02-27 17:03:43 +05:30
reject_admin_conference_program_event_path(@conference.short_title, event),
2014-06-17 10:40:57 +03:00
method: :patch, confirm: 'Are you sure?', id: "reject_event_#{event.id}"
- if @conference.email_settings.send_on_rejected?
%li= link_to 'Reject event (without email)',
2016-02-27 17:03:43 +05:30
reject_admin_conference_program_event_path(@conference.short_title, event, send_mail: false),
2014-06-17 10:40:57 +03:00
method: :patch, confirm: 'Are you sure?', id: "reject_event_without_mail_#{event.id}"
- if event.transition_possible? :restart
%li= link_to 'Start review',
2016-02-27 17:03:43 +05:30
restart_admin_conference_program_event_path(@conference.short_title, event),
2014-06-17 10:40:57 +03:00
method: :patch, id: "restart_event_#{event.id}"
- if event.transition_possible? :confirm
%li= link_to 'Confirm event',
2016-02-27 17:03:43 +05:30
confirm_admin_conference_program_event_path(@conference.short_title, event),
2014-06-17 10:40:57 +03:00
method: :patch, id: "confirm_event_#{event.id}",
hint: 'Confirm that the speaker(s) will be present and that the event will actually take place.'
- if event.transition_possible? :cancel
%li= link_to 'Cancel event',
2016-02-27 17:03:43 +05:30
cancel_admin_conference_program_event_path(@conference.short_title, event),
2014-06-17 10:40:57 +03:00
method: :patch, id: "cancel_event_#{event.id}",
2016-02-27 17:03:43 +05:30
hint: 'Mark this event as cancelled. Usually this means that the speakers had to cancel their appearance.'