Update admin notifications translatable fields

The same way we did for banners.

We needed to add new translation keys so the labels are displayed in the
correct language. I've kept the original `title` and `body` attributes
so they can be used in other places.

While backporting, we also added the original translations because they
hadn't been backported yet.
This commit is contained in:
Javi Martín
2018-10-08 15:52:46 +02:00
committed by decabeza
parent 5e6dfe6ed8
commit d40cd3995d
6 changed files with 22 additions and 11 deletions

View File

@@ -43,8 +43,8 @@ module Notifications
def fill_in_admin_notification_form(options = {})
select (options[:segment_recipient] || 'All users'), from: :admin_notification_segment_recipient
fill_in :admin_notification_title_en, with: (options[:title] || 'This is the notification title')
fill_in :admin_notification_body_en, with: (options[:body] || 'This is the notification body')
fill_in 'Title', with: (options[:title] || 'This is the notification title')
fill_in 'Text', with: (options[:body] || 'This is the notification body')
fill_in :admin_notification_link, with: (options[:link] || 'https://www.decide.madrid.es/vota')
end
end