Sha256: cce3cb98191ea88a08c3aee360abd3fe23dcb62aa8a967a94dfdcc9a936f4c5f

Contents?: true

Size: 1.95 KB

Versions: 19

Compression:

Stored size: 1.95 KB

Contents

<%= render 'account/shared/page' do |p| %>
  <% p.content_for :title, t('.section') %>
  <% p.content_for :body do %>
    <%= form_for [:account, @user] do |form| %>
      <%= render 'account/shared/forms/errors', form: form %>
    <% end if @user.errors.any? %>

    <div class="grid grid-cols-1 gap-y gap-x-8 lg:grid-cols-2">
      <div class="xl:col-span-1 space-y-8">
        <%= render 'account/shared/box', divider: true do |p| %>
          <% p.content_for :title, t('.profile.header') %>
          <% p.content_for :description, t('.profile.description') %>
          <% p.content_for :body do %>
            <%= render "account/users/form", user: @user %>
          <% end %>
        <% end %>

        <% if two_factor_authentication_enabled? %>
          <div id="two-factor">
            <%= render partial: "devise/registrations/two_factor" %>
          </div>
        <% end %>
      </div>

      <div class="xl:col-span-1 space-y-8">
        <%= render 'account/users/oauth' %>

        <%= render 'account/shared/box', divider: true do |p| %>
          <% p.content_for :title, t('.password.header') %>
          <% p.content_for :body do %>
            <% within_fields_namespace(:update_self) do %>
              <%= form_for [:account, @user], html: {id: dom_id(@user, :password), class: 'form'} do |form| %>
                <% with_field_settings form: form do %>
                  <%= render 'shared/fields/password_field', method: :current_password %>
                  <%= render 'shared/fields/password_field', method: :password, options: {show_strength_indicator: true} %>
                  <%= render 'shared/fields/password_field', method: :password_confirmation %>
                <% end %>

                <div class="buttons">
                  <%= form.submit t('.buttons.update_password'), class: "button" %>
                </div>
              <% end %>
            <% end %>
          <% end %>
        <% end %>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bullet_train-1.2.20 app/views/account/users/edit.html.erb
bullet_train-1.2.19 app/views/account/users/edit.html.erb
bullet_train-1.2.18 app/views/account/users/edit.html.erb
bullet_train-1.2.17 app/views/account/users/edit.html.erb
bullet_train-1.2.16 app/views/account/users/edit.html.erb
bullet_train-1.2.15 app/views/account/users/edit.html.erb
bullet_train-1.2.14 app/views/account/users/edit.html.erb
bullet_train-1.2.13 app/views/account/users/edit.html.erb
bullet_train-1.2.12 app/views/account/users/edit.html.erb
bullet_train-1.2.11 app/views/account/users/edit.html.erb
bullet_train-1.2.10 app/views/account/users/edit.html.erb
bullet_train-1.2.9 app/views/account/users/edit.html.erb
bullet_train-1.2.8 app/views/account/users/edit.html.erb
bullet_train-1.2.7 app/views/account/users/edit.html.erb
bullet_train-1.2.6 app/views/account/users/edit.html.erb
bullet_train-1.2.5 app/views/account/users/edit.html.erb
bullet_train-1.2.4 app/views/account/users/edit.html.erb
bullet_train-1.2.3 app/views/account/users/edit.html.erb
bullet_train-1.2.2 app/views/account/users/edit.html.erb