Commit d4263e3ec1bfa1bfa94d99ce8958c0960f2bf7d3
1 parent
becbf039
Exists in
master
and in
1 other branch
added interval array field for notifications
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/views/apps/_service_notification_fields.html.haml
... | ... | @@ -17,7 +17,8 @@ |
17 | 17 | - notification_service::Fields.each do |field, field_info| |
18 | 18 | = w.label field, field_info[:label] || field.to_s.titleize |
19 | 19 | - field_type = field == :password ? :password_field : :text_field |
20 | - = w.send field_type, field, :placeholder => field_info[:placeholder], :value => w.object.send(field) | |
20 | + - value = field == :notify_at_notices ? w.object.notify_at_notices.join(", ") : w.object.send(field) | |
21 | + = w.send field_type, field, :placeholder => field_info[:placeholder], :value => value | |
21 | 22 | |
22 | 23 | .image_preloader |
23 | 24 | - (NotificationService.subclasses.map{|t| t.label } << 'none').each do |notification_service| | ... | ... |