<% if resource_name == :admin_user %> <% title = "Sign in to your CORE administration account" %> <% else %> <% title = "Sign in to your account to submit CORE data" %> <% end %> <% content_for :title, title %> <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<% flash_to_model_errors(resource) %> <%= f.govuk_error_summary %>

<%= content_for(:title) %>

<%= f.govuk_email_field :email, label: { text: "Email address" }, autocomplete: "email", spellcheck: "false" %> <%= f.govuk_password_field :password, autocomplete: "current-password" %> <%= f.hidden_field :start, value: request["start"] %> <%= f.govuk_submit "Sign in" %>
<% end %> <%= render "devise/shared/links" %>