Sha256: 14d3185ea51b26d0ec49e80c0c02d91d04cdde55d7ca653dc51fb32ceb1b291f

Contents?: true

Size: 1017 Bytes

Versions: 14

Compression:

Stored size: 1017 Bytes

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? %>
    <%= hidden_field_tag 'user[preference_ids][]' %>
    <fieldset id="users-notifications-map" class="clearfix">
      <%= content_tag(:legend, t(:label_user_notifications)) %>
      <div class="row">
        <% prefs.each do |pref| %>
          <div class="col-md-3 col-sm-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>
  <% end %>

  <%= f.primary unless request.xhr? %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
symphonia-3.2.1 app/views/symphonia/users/edit.html.erb
symphonia-3.1.5 app/views/symphonia/users/edit.html.erb
symphonia-3.1.4 app/views/symphonia/users/edit.html.erb
symphonia-3.1.3 app/views/symphonia/users/edit.html.erb
symphonia-3.1.2 app/views/symphonia/users/edit.html.erb
symphonia-3.1.1 app/views/symphonia/users/edit.html.erb
symphonia-3.1.0 app/views/symphonia/users/edit.html.erb
symphonia-3.0.3 app/views/symphonia/users/edit.html.erb
symphonia-3.0.2 app/views/symphonia/users/edit.html.erb
symphonia-2.2.1 app/views/symphonia/users/edit.html.erb
symphonia-3.0.1 app/views/symphonia/users/edit.html.erb
symphonia-3.0.0 app/views/symphonia/users/edit.html.erb
symphonia-2.1.8 app/views/symphonia/users/edit.html.erb
symphonia-2.1.7 app/views/symphonia/users/edit.html.erb