Sha256: b7a6e4e8f38383e6e941b9ea089ce54b38c13e6cc9015e7b47724d320480bbcc

Contents?: true

Size: 1.16 KB

Versions: 81

Compression:

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

  <div class="buttons">
    <%= form.submit (form.object.persisted? ? t('.buttons.update') : t('.buttons.create')), class: "button" %>
    <% if controller.action_name == "edit" %>
      <%= link_to t('account.teams.buttons.destroy'), [:account, team], method: :delete, data: { confirm: t('account.teams.buttons.confirmations.destroy') } %>
    <% end %>
    <%= link_to t('global.buttons.cancel'), form.object.persisted? ? [:account, team] : [:account, :teams], class: "button-secondary" %>
  </div>
<% end %>

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
bullet_train-1.6.12 app/views/account/teams/_form.html.erb
bullet_train-1.6.11 app/views/account/teams/_form.html.erb
bullet_train-1.6.10 app/views/account/teams/_form.html.erb
bullet_train-1.6.9 app/views/account/teams/_form.html.erb
bullet_train-1.6.8 app/views/account/teams/_form.html.erb
bullet_train-1.6.7 app/views/account/teams/_form.html.erb
bullet_train-1.6.6 app/views/account/teams/_form.html.erb
bullet_train-1.6.5 app/views/account/teams/_form.html.erb
bullet_train-1.6.4 app/views/account/teams/_form.html.erb
bullet_train-1.6.3 app/views/account/teams/_form.html.erb
bullet_train-1.6.2 app/views/account/teams/_form.html.erb
bullet_train-1.6.1 app/views/account/teams/_form.html.erb
bullet_train-1.6.0 app/views/account/teams/_form.html.erb
bullet_train-1.5.2 app/views/account/teams/_form.html.erb
bullet_train-1.5.1 app/views/account/teams/_form.html.erb
bullet_train-1.5.0 app/views/account/teams/_form.html.erb
bullet_train-1.4.11 app/views/account/teams/_form.html.erb
bullet_train-1.4.10 app/views/account/teams/_form.html.erb
bullet_train-1.4.9 app/views/account/teams/_form.html.erb
bullet_train-1.4.8 app/views/account/teams/_form.html.erb