Sha256: 55818d4c6253073ce2d84aa4a8921dfc16629740f34a9b2907bb45fee8d43ec7

Contents?: true

Size: 1.82 KB

Versions: 36

Compression:

Stored size: 1.82 KB

Contents

<%= render 'account/shared/page' do |page| %>
  <% page.title t('.section') %>
  <% page.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 |box| %>
          <% box.t title: '.profile.header', description: '.profile.description' %>
          <% box.body.render "account/users/form", user: @user %>
        <% 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 |box| %>
          <% box.title t('.password.header') %>
          <% box.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

36 entries across 36 versions & 1 rubygems

Version Path
bullet_train-1.4.2 app/views/account/users/edit.html.erb
bullet_train-1.4.1 app/views/account/users/edit.html.erb
bullet_train-1.4.0 app/views/account/users/edit.html.erb
bullet_train-1.3.25 app/views/account/users/edit.html.erb
bullet_train-1.3.24 app/views/account/users/edit.html.erb
bullet_train-1.3.23 app/views/account/users/edit.html.erb
bullet_train-1.3.22 app/views/account/users/edit.html.erb
bullet_train-1.3.21 app/views/account/users/edit.html.erb
bullet_train-1.3.20 app/views/account/users/edit.html.erb
bullet_train-1.3.19 app/views/account/users/edit.html.erb
bullet_train-1.3.18 app/views/account/users/edit.html.erb
bullet_train-1.3.17 app/views/account/users/edit.html.erb
bullet_train-1.3.16 app/views/account/users/edit.html.erb
bullet_train-1.3.15 app/views/account/users/edit.html.erb
bullet_train-1.3.14 app/views/account/users/edit.html.erb
bullet_train-1.3.13 app/views/account/users/edit.html.erb
bullet_train-1.3.12 app/views/account/users/edit.html.erb
bullet_train-1.3.11 app/views/account/users/edit.html.erb
bullet_train-1.3.10 app/views/account/users/edit.html.erb
bullet_train-1.3.9 app/views/account/users/edit.html.erb