<%= render 'banner' %> <% unless @template.archived_at? %>

<%= t('you_have_been_invited_to_submit_a_form') %>

<% end %>
<%= svg_icon('writing_sign', class: 'w-10 h-10') %>

<%= @template.name %>

<% if @template.archived_at? %>

<%= t('form_has_been_deleted_by_html', name: @template.account.name) %>

<% else %>

<%= t('invited_by_html', name: @template.account.name) %>

<% end %>
<% unless @template.archived_at? %> <%= form_for @submitter, url: start_form_path(@template.slug), data: { turbo_frame: :_top }, method: :put, html: { class: 'space-y-4', onsubmit: 'event.submitter.disabled = true' } do |f| %>
<%= f.label :email, t('email'), class: 'label' %> <%= f.email_field :email, value: current_user&.email || params[:email] || @submitter.email, required: true, class: 'base-input', placeholder: t('provide_your_email_to_start') %> <%= @error_message %>
<%= f.button button_title(title: t('start'), disabled_with: t('starting')), class: 'base-button' %>
<% end %> <% end %>
<%= render 'shared/attribution', link_path: '/start' %>