]> git.openstreetmap.org Git - rails.git/blob - app/views/preferences/notification_preferences/show.html.erb
Merge remote-tracking branch 'upstream/pull/7073'
[rails.git] / app / views / preferences / notification_preferences / show.html.erb
1 <% content_for :heading_class, "pb-0" %>
2
3 <% content_for :heading do %>
4   <h1><%= t ".title" %></h1>
5   <%= render :partial => "navigation" %>
6 <% end %>
7
8 <%= bootstrap_form_for current_user.notification_preferences, :method => :patch, :url => { :action => :update } do |f| %>
9   <div class="notification_preferences">
10     <% user_notification_events.each do |event_name| %>
11       <div class="mb-3">
12         <%= f.collection_check_boxes(
13               event_name,
14               user_notification_mechanisms,
15               :itself,
16               ->(mechanism) { t(".delivery_mechanisms.#{mechanism}") },
17               :label => {
18                 :text => t(".#{event_name}"),
19                 :class => "fw-bold fs-6"
20               }
21             ) %>
22       </div>
23     <% end %>
24   </div>
25
26   <%= f.primary t(".save") %>
27 <% end %>