Sha256: 129b0ca9a0d539218d1ece670be26a59d93691d95c7285dd6acefde8a1794bfc

Contents?: true

Size: 980 Bytes

Versions: 12

Compression:

Stored size: 980 Bytes

Contents

<%= form_with model: [:account, team], local: true, class: 'form' do |form| %>
  <%= render 'account/shared/forms/errors', form: form %>

  <% with_field_settings form: form do %>
    <%= render 'shared/fields/text_field', method: :name, options: {autofocus: true} %>

    <%= render 'shared/fields/super_select', method: :time_zone,
      choices: time_zone_options_for_select(team.time_zone, nil, ActiveSupport::TimeZone),
      other_options: {search: true} %>

    <% if multiple_locales? %>
      <%= render 'shared/fields/buttons', method: :locale, options: t("locale.locales") %>
    <% end %>

    <%# 🚅 super scaffolding will insert new fields above this line. %>
  <% end %>

  <div class="buttons">
    <%= form.submit (form.object.persisted? ? t('.buttons.update') : t('.buttons.create')), class: "button" %>
    <%= link_to t('global.buttons.cancel'), form.object.persisted? ? [:account, team] : [:account, :teams], class: "button-secondary" %>
  </div>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bullet_train-1.0.11 app/views/account/teams/_form.html.erb
bullet_train-1.0.10 app/views/account/teams/_form.html.erb
bullet_train-1.0.9 app/views/account/teams/_form.html.erb
bullet_train-1.0.8 app/views/account/teams/_form.html.erb
bullet_train-1.0.7 app/views/account/teams/_form.html.erb
bullet_train-1.0.6 app/views/account/teams/_form.html.erb
bullet_train-1.0.5 app/views/account/teams/_form.html.erb
bullet_train-1.0.4 app/views/account/teams/_form.html.erb
bullet_train-1.0.3 app/views/account/teams/_form.html.erb
bullet_train-1.0.2 app/views/account/teams/_form.html.erb
bullet_train-1.0.1 app/views/account/teams/_form.html.erb
bullet_train-1.0.0 app/views/account/teams/_form.html.erb