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.20 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.19 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.18 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.17 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.16 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.15 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.14 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.13 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.12 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.11 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.10 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.9 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.8 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.7 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.6 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.5 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.4 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.3 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.2 app/views/account/onboarding/user_email/edit.html.erb
bullet_train-1.2.1 app/views/account/onboarding/user_email/edit.html.erb