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.0.87 app/views/account/teams/_form.html.erb
bullet_train-1.0.86 app/views/account/teams/_form.html.erb
bullet_train-1.0.85 app/views/account/teams/_form.html.erb
bullet_train-1.0.83 app/views/account/teams/_form.html.erb
bullet_train-1.0.81 app/views/account/teams/_form.html.erb
bullet_train-1.0.79 app/views/account/teams/_form.html.erb
bullet_train-1.0.76 app/views/account/teams/_form.html.erb
bullet_train-1.0.75 app/views/account/teams/_form.html.erb
bullet_train-1.0.74 app/views/account/teams/_form.html.erb
bullet_train-1.0.72 app/views/account/teams/_form.html.erb
bullet_train-1.0.71 app/views/account/teams/_form.html.erb
bullet_train-1.0.70 app/views/account/teams/_form.html.erb
bullet_train-1.0.69 app/views/account/teams/_form.html.erb
bullet_train-1.0.68 app/views/account/teams/_form.html.erb
bullet_train-1.0.67 app/views/account/teams/_form.html.erb
bullet_train-1.0.66 app/views/account/teams/_form.html.erb
bullet_train-1.0.65 app/views/account/teams/_form.html.erb
bullet_train-1.0.64 app/views/account/teams/_form.html.erb
bullet_train-1.0.63 app/views/account/teams/_form.html.erb
bullet_train-1.0.62 app/views/account/teams/_form.html.erb