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

Version Path
symphonia-6.0.5 app/views/symphonia/users/edit.html.erb
symphonia-6.0.4 app/views/symphonia/users/edit.html.erb
symphonia-6.0.2 app/views/symphonia/users/edit.html.erb
symphonia-6.0.1 app/views/symphonia/users/edit.html.erb
symphonia-6.0.0 app/views/symphonia/users/edit.html.erb
symphonia-5.0.6 app/views/symphonia/users/edit.html.erb
symphonia-5.0.5 app/views/symphonia/users/edit.html.erb
symphonia-5.0.4 app/views/symphonia/users/edit.html.erb
symphonia-5.0.3 app/views/symphonia/users/edit.html.erb
symphonia-5.0.0 app/views/symphonia/users/edit.html.erb
symphonia-4.2.0 app/views/symphonia/users/edit.html.erb
symphonia-4.1.3 app/views/symphonia/users/edit.html.erb
symphonia-4.1.2 app/views/symphonia/users/edit.html.erb
symphonia-4.1.1 app/views/symphonia/users/edit.html.erb
symphonia-4.1.0 app/views/symphonia/users/edit.html.erb
symphonia-4.0.1 app/views/symphonia/users/edit.html.erb
symphonia-4.0.0 app/views/symphonia/users/edit.html.erb
symphonia-3.4.0 app/views/symphonia/users/edit.html.erb
symphonia-3.3.4 app/views/symphonia/users/edit.html.erb
symphonia-3.3.3 app/views/symphonia/users/edit.html.erb