| 1 | <% content_for :meta_head do %> |
| 2 | <%= render('shared/partial_meta_tag', title: @meta_title, description: @meta_description) %> |
| 3 | <% end %> |
| 4 | <% content_for :breadcrumb do %> |
| 5 | <%= render 'shared/partial_breadcrumbs_schema' do %> |
| 6 | { |
| 7 | "@type": "ListItem", |
| 8 | "position": 2, |
| 9 | "item": { |
| 10 | "@id": "<%= login_url %>", |
| 11 | "name": "<%= t("nav_confirm_email") %>" |
| 12 | } |
| 13 | } |
| 14 | <% end %> |
| 15 | <% end %> |
| 16 | <main> |
| 17 | <div class="row"> |
| 18 | <div class="col-12"> |
| 19 | <h1><%= t('resend_email_confirmation') %></h1> |
| 20 | </div> |
| 21 | </div> |
| 22 | <div class="row"> |
| 23 | <div class="col-md-5"> |
| 24 | <%= form_for(@user, url: confirmation_path(@user), remote: true, html: { method: :post, class: 'form-horizontal' }, data: { type: "json" } ) do |f| %> |
| 25 | <%= render "shared/flash_message" %> |
| 26 | <div class="row mb-3"> |
| 27 | <%= f.label t("email"), class: "col-4 col-form-label" %> |
| 28 | <div class="col-8"> |
| 29 | <%= f.email_field :email, class: 'form-control', autofocus: true, autocomplete: "email", value: (@user.pending_reconfirmation? ? @user.unconfirmed_email : @user.email) %> |
| 30 | </div> |
| 31 | </div> |
| 32 | <div class="row mb-3"> |
| 33 | <div class="offset-4 col-8 mt-2"> |
| 34 | <%= f.submit t("resend_email_confirmation_button"), class: "btn btn-primary" %> |
| 35 | </div> |
| 36 | </div> |
| 37 | <% end %> |
| 38 | </div> |
| 39 | </div> |
| 40 | <%= render 'shared/partial_breadcrumbs' do %> |
| 41 | <li class="breadcrumb-item"><%= link_to t("nav_confirm_email"), confirm_email_path(request.query_parameters) %></li> |
| 42 | <% end %> |
| 43 | </main> |
| 44 | <script> |
| 45 | |
| 46 | </script> |