Current section
Files
Jump to
Current section
Files
priv/templates/session/new.html.eex
<%%= form_for @changeset, session_path(@conn, :create), [as: :session], fn f -> %>
<% if false do %>
<%%= if Haytni.plugin_enabled?(Haytni.LockablePlugin) && Haytni.LockablePlugin.last_attempt?(TODO) do %>
<p><%%= dgettext("haytni", "Warning: at the next failed attempt, the account will be locked") %></p>
<%% end %>
<% end %>
<%= ~s'<%= render #{inspect web_module}.Haytni.SharedView, "keys.html", changeset: @changeset, f: f, keys: Haytni.AuthenticablePlugin.authentication_keys() %\x3E' %>
<div class="form-group">
<%%= label f, :password, dgettext("haytni", "Password"), class: "control-label" %>
<%%= password_input f, :password, class: "form-control", required: "" %>
<%%= error_tag f, :password %>
</div>
<%%= if Haytni.RememberablePlugin.enabled? do %>
<div class="form-group">
<input type="checkbox" name="remember" id="remember">
<label for="remember"><%%= dgettext("haytni", "Remember Me?") %></label>
</div>
<br/>
<%% end %>
<div class="form-group">
<%%= submit dgettext("haytni", "Sign In"), class: "btn btn-primary" %>
<%%= link dgettext("haytni", "Cancel"), to: "/", class: "btn" %>
</div>
<%= ~s'<%= render #{inspect web_module}.Haytni.SharedView, "links.html", assigns %\x3E' %>
<%% end %>