|
|
|
<% 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| %>
|
|
|
|
<div class="govuk-grid-row">
|
|
|
|
<div class="govuk-grid-column-two-thirds">
|
|
|
|
<% flash_to_model_errors(resource) %>
|
|
|
|
<%= f.govuk_error_summary %>
|
|
|
|
|
|
|
|
<h1 class="govuk-heading-l">
|
|
|
|
<%= content_for(:title) %>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<%= 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" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render "devise/shared/links" %>
|