Sha256: 0398c690fab2e04d5889d67c51cd628b812a869ee0f34f30ecdb39efed119702

Contents?: true

Size: 1.44 KB

Versions: 79

Compression:

Stored size: 1.44 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-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>

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

      <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

79 entries across 79 versions & 1 rubygems

Version Path
bullet_train-1.12.1 app/views/account/users/_form.html.erb
bullet_train-1.12.0 app/views/account/users/_form.html.erb
bullet_train-1.11.0 app/views/account/users/_form.html.erb
bullet_train-1.10.0 app/views/account/users/_form.html.erb
bullet_train-1.9.0 app/views/account/users/_form.html.erb
bullet_train-1.8.5 app/views/account/users/_form.html.erb
bullet_train-1.8.4 app/views/account/users/_form.html.erb
bullet_train-1.8.3 app/views/account/users/_form.html.erb
bullet_train-1.8.2 app/views/account/users/_form.html.erb
bullet_train-1.8.1 app/views/account/users/_form.html.erb
bullet_train-1.8.0 app/views/account/users/_form.html.erb
bullet_train-1.7.23 app/views/account/users/_form.html.erb
bullet_train-1.7.22 app/views/account/users/_form.html.erb
bullet_train-1.7.21 app/views/account/users/_form.html.erb
bullet_train-1.7.20 app/views/account/users/_form.html.erb
bullet_train-1.7.19 app/views/account/users/_form.html.erb
bullet_train-1.7.18 app/views/account/users/_form.html.erb
bullet_train-1.7.17 app/views/account/users/_form.html.erb
bullet_train-1.7.16 app/views/account/users/_form.html.erb
bullet_train-1.7.15 app/views/account/users/_form.html.erb