<% content_for(:html_title, "#{@template.name} | DocuSeal") %> <% I18n.with_locale(@template.account.locale) do %> <% content_for(:html_description, t('account_name_has_invited_you_to_fill_and_sign_documents_online_effortlessly_with_a_secure_fast_and_user_friendly_digital_document_signing_solution', account_name: @template.account.name)) %> <% end %>
<%= 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 %>
<% if !@template.archived_at? && !@template.account.archived_at? %> <%= form_for @submitter, url: start_form_path(@template.slug), data: { turbo_frame: :_top }, method: :put, html: { class: 'space-y-4' } 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') %> <% if @error_message %> <%= @error_message %> <% end %>
<%= f.button button_title(title: t('start'), disabled_with: t('starting')), class: 'base-button' %> <% end %> <% end %>
<%= render 'shared/attribution', link_path: '/start', account: @template.account %> <%= render 'start_form/policy', account: @template.account %>