Sha256: 587c6cf245791b84edea04c02df41e54a067e3f775cd2e504acdea78382ac447
Contents?: true
Size: 1.06 KB
Versions: 25
Compression:
Stored size: 1.06 KB
Contents
<%= title(t(:label_edit), @user.name, back: !request.xhr?) %> <%= symphonia_form_for(@user) do |f| %> <%= render(partial: 'form', locals: { f: f }) %> <% if @user && !@user.new_record? && Symphonia::User.current.logged_in? && (prefs = Symphonia::EmailPreference.visible.to_a).any? %> <div class="row justify-content-center"> <%= hidden_field_tag 'user[preference_ids][]' %> <fieldset id="users-notifications-map" class="col-8"> <%= content_tag(:legend, t(:label_user_notifications)) %> <div class="row"> <% prefs.each do |pref| %> <div class="col-6"> <div class="form-check"> <label class="form-check-label"> <%= check_box_tag('user[preference_ids][]', pref.id, @user.preference_ids.include?(pref.id), class: 'form-check-input') %> <%= t(pref.name, scope: :preferences) %> </label> </div> </div> <% end %> </div> </fieldset> </div> <% end %> <%= f.primary unless request.xhr? %> <% end %>
Version data entries
25 entries across 25 versions & 1 rubygems