Sha256: 131843d0c532dd1b51b4fa5d40a84fe093e0d12e3edce2106229c449df9a1d5c

Contents?: true

Size: 1.25 KB

Versions: 119

Compression:

Stored size: 1.25 KB

Contents

<% @title = t('.header') %>

<%= render 'account/shared/workflow/box' do |p| %>
  <% p.content_for :title, @title %>
  <% p.content_for :body do %>
    <% within_fields_namespace(:self) do %>
      <%= form_for @user, url: account_onboarding_user_email_path(@user), method: :put, html: {class: 'form'} do |f| %>
        <% if @email_taken %>
          <%= render 'account/shared/alert', color: 'red' do %>
            <%= t('.email_taken') %>
          <% end %>
        <% else %>
          <%= render 'account/shared/alert' do %>
            <%= t('.description') %>
          <% end %>

          <%= render 'account/shared/forms/errors', form: f %>
        <% end %>

        <%= render 'shared/fields/email_field', form: f, method: :email, options: {autofocus: true} %>

        <div class="buttons">
          <%= f.submit t('.buttons.next'), class: first_button_primary %>
          <% if current_user.teams.any? %>
            <%= link_to t('global.buttons.back'), main_app.account_teams_path, class: first_button_primary %>
          <% else %>
            <%= link_to t('menus.main.labels.logout'), main_app.destroy_user_session_path, class: first_button_primary, method: 'delete' %>
          <% end %>
        </div>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
bullet_train-1.2.0 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.10 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.9 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.7 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.6 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.5 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.4 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.3 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.2 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.1 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.1.0 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.99 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.98 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.97 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.96 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.95 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.93 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.92 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.90 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.0.89 app/views/account/onboarding/user_email/edit.html.erb