Sha256: 4cafb487c3ef5ded926265ec6cb840cacfabb68cc7806663f0fa0508df82920b

Contents?: true

Size: 971 Bytes

Versions: 41

Compression:

Stored size: 971 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 %>

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

41 entries across 41 versions & 1 rubygems

Version Path
bullet_train-1.4.6 app/views/account/teams/_form.html.erb
bullet_train-1.4.5 app/views/account/teams/_form.html.erb
bullet_train-1.4.4 app/views/account/teams/_form.html.erb
bullet_train-1.4.3 app/views/account/teams/_form.html.erb
bullet_train-1.4.2 app/views/account/teams/_form.html.erb
bullet_train-1.4.1 app/views/account/teams/_form.html.erb
bullet_train-1.4.0 app/views/account/teams/_form.html.erb
bullet_train-1.3.25 app/views/account/teams/_form.html.erb
bullet_train-1.3.24 app/views/account/teams/_form.html.erb
bullet_train-1.3.23 app/views/account/teams/_form.html.erb
bullet_train-1.3.22 app/views/account/teams/_form.html.erb
bullet_train-1.3.21 app/views/account/teams/_form.html.erb
bullet_train-1.3.20 app/views/account/teams/_form.html.erb
bullet_train-1.3.19 app/views/account/teams/_form.html.erb
bullet_train-1.3.18 app/views/account/teams/_form.html.erb
bullet_train-1.3.17 app/views/account/teams/_form.html.erb
bullet_train-1.3.16 app/views/account/teams/_form.html.erb
bullet_train-1.3.15 app/views/account/teams/_form.html.erb
bullet_train-1.3.14 app/views/account/teams/_form.html.erb
bullet_train-1.3.13 app/views/account/teams/_form.html.erb