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

You have been invited to submit a form

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

<%= @template.name %>

<% if @template.archived_at? %>

Form has been deleted by <%= @template.account.name %>.

<% else %>

Invited by <%= @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, class: 'label' %> <%= f.email_field :email, value: current_user&.email || params[:email] || @submitter.email, required: true, class: 'base-input', placeholder: 'Provide your email to start' %> <%= @error_message %>
<%= f.button button_title(title: 'Start', disabled_with: 'Starting'), class: 'base-button' %>
<% end %> <% end %>
<%= render 'shared/attribution', link_path: '/start' %>