2016-06-14 14:36:36 -04:00
|
|
|
|
.modal.fade{ tabindex: "-1", role: "dialog", id: notifications_menu_identifier("modal", notification_setting), aria: { labelledby: "custom-notifications-title" } }
|
2016-06-13 15:51:35 -04:00
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%button.close{ type: "button", data: { dismiss: "modal" }, aria: { label: "close" } }
|
|
|
|
|
%span{ aria: { hidden: "true" } } ×
|
|
|
|
|
%h4#custom-notifications-title.modal-title
|
|
|
|
|
Custom notification events
|
2016-06-14 14:36:36 -04:00
|
|
|
|
|
2016-06-13 15:51:35 -04:00
|
|
|
|
.modal-body
|
|
|
|
|
.container-fluid
|
2016-06-14 14:36:36 -04:00
|
|
|
|
= form_for notification_setting, html: { class: "custom-notifications-form" } do |f|
|
|
|
|
|
= hidden_setting_source_input(notification_setting)
|
2016-06-13 15:51:35 -04:00
|
|
|
|
.row
|
|
|
|
|
.col-lg-3
|
|
|
|
|
%h4.prepend-top-0
|
|
|
|
|
Notification events
|
|
|
|
|
.col-lg-9
|
|
|
|
|
- NotificationSetting::EMAIL_EVENTS.each do |event, index|
|
|
|
|
|
= index
|
|
|
|
|
.form-group
|
|
|
|
|
.checkbox{ class: ("prepend-top-0" if index == 0) }
|
|
|
|
|
%label{ for: "events_#{event}" }
|
2016-06-14 14:36:36 -04:00
|
|
|
|
= check_box("", event, { name: "notification_setting[#{event}]", class: "js-custom-notification-event", checked: notification_setting.events[event] })
|
2016-06-14 09:17:00 -04:00
|
|
|
|
|
2016-06-13 15:51:35 -04:00
|
|
|
|
%strong
|
|
|
|
|
= event.to_s.humanize
|
|
|
|
|
= icon("spinner spin", class: "custom-notification-event-loading")
|