Sha256: b2b0e2375bcf50b620ffd2aa85d742a7f902580e2516768025ca7fbc0cb78fe9

Contents?: true

Size: 1.02 KB

Versions: 106

Compression:

Stored size: 1.02 KB

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 %>

    <%= render "account/teams/fields", team: team, form: form %>
    <%# 🚅 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

106 entries across 106 versions & 1 rubygems

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