<%= form_tag login_path, class: "login-form" do %> <%= hook("auth.login.heading") %> <% if flash[:error] -%>

<%= flash[:error] %>

<% end -%>
<%= text_field_tag Trestle.config.auth.authenticate_with, "", placeholder: Trestle.config.auth.authenticate_with.to_s.humanize, class: "form-control" %>
<%= password_field_tag :password, "", placeholder: "Password", class: "form-control" %>
<%= hook("auth.login.form") %> <% if Trestle.config.auth.remember.enabled %>
<% end %>
<%= submit_tag t("admin.auth.login", default: "Login"), class: "btn btn-primary btn-block" %>
<% end %>