Sha256: 0a5fa2351d6b29b08c9f237dd9e0a6ffb9c51c8bef6bb5db4ad8c33c140c2293

Contents?: true

Size: 1.49 KB

Versions: 114

Compression:

Stored size: 1.49 KB

Contents

<%= form_for [:account, user], html: {id: dom_id(user, :details), class: 'form'} do |form| %>
  <% with_field_settings form: form do %>
    <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-2">
      <div class="sm:col-span-2">
        <%= render 'shared/fields/email_field', method: :email, options: {autofocus: true} %>
      </div>

      <div class="sm:col-span-1">
        <%= render 'shared/fields/text_field', method: :first_name %>
      </div>

      <div class="sm:col-span-1">
        <%= render 'shared/fields/text_field', method: :last_name %>
      </div>

      <% if cloudinary_enabled? %>
        <div class="sm:col-span-2">
          <%= render 'shared/fields/cloudinary_image', method: :profile_photo_id %>
        </div>
      <% end %>

      <div class="sm:col-span-2">
        <%= render 'shared/fields/super_select', method: :time_zone,
          choices: time_zone_options_for_select(user.time_zone, nil, ActiveSupport::TimeZone),
          other_options: {search: true} %>
      </div>

      <% if multiple_locales? %>
        <div class="sm:col-span-2">
          <%= render 'shared/fields/buttons', method: :locale, options: {"": t("locale.default")}.merge(t("locale.locales")) %>
        </div>
      <% end %>

      <%= render "account/users/fields", user: user, form: form %>
      <%# 🚅 super scaffolding will insert new fields above this line. %>
    </div>
  <% end %>

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

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
bullet_train-1.2.27 app/views/account/users/_form.html.erb
bullet_train-1.2.26 app/views/account/users/_form.html.erb
bullet_train-1.2.25 app/views/account/users/_form.html.erb
bullet_train-1.2.24 app/views/account/users/_form.html.erb
bullet_train-1.2.23 app/views/account/users/_form.html.erb
bullet_train-1.2.22 app/views/account/users/_form.html.erb
bullet_train-1.2.21 app/views/account/users/_form.html.erb
bullet_train-1.2.20 app/views/account/users/_form.html.erb
bullet_train-1.2.19 app/views/account/users/_form.html.erb
bullet_train-1.2.18 app/views/account/users/_form.html.erb
bullet_train-1.2.17 app/views/account/users/_form.html.erb
bullet_train-1.2.16 app/views/account/users/_form.html.erb
bullet_train-1.2.15 app/views/account/users/_form.html.erb
bullet_train-1.2.14 app/views/account/users/_form.html.erb
bullet_train-1.2.13 app/views/account/users/_form.html.erb
bullet_train-1.2.12 app/views/account/users/_form.html.erb
bullet_train-1.2.11 app/views/account/users/_form.html.erb
bullet_train-1.2.10 app/views/account/users/_form.html.erb
bullet_train-1.2.9 app/views/account/users/_form.html.erb
bullet_train-1.2.8 app/views/account/users/_form.html.erb