Sha256: 0339dacde103bec7776d1ec60f91d3e2291b048f7beb8f6bf1d9e43d2dd9b23b

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

<div class="form-group">
  <div class="input-group">
    <span class="input-group-text"><i class="fa fa-user fa-fw"></i></span>
    <%= f.text_field Trestle.config.auth.authenticate_with, placeholder: Trestle.config.auth.human_attribute_name(Trestle.config.auth.authenticate_with), class: "form-control" %>
  </div>
</div>

<div class="form-group">
  <div class="input-group">
    <span class="input-group-text"><i class="fa fa-lock fa-fw"></i></span>
    <%= f.password_field :password, placeholder: Trestle.config.auth.human_attribute_name(:password), class: "form-control" %>
  </div>
</div>

<%= hook("auth.login.form", f) %>

<% if Trestle.config.auth.remember.enabled %>
<div class="form-group">
  <div class="form-check remember-me">
    <%= f.check_box :remember_me, class: "form-check-input", include_hidden: false %>
    <%= f.label :remember_me, t("admin.auth.remember_me", default: "Remember me"), class: "form-check-label" %>
  </div>
</div>
<% end %>

<div class="form-group">
  <%= f.submit t("admin.auth.login", default: "Login"), class: "btn btn-primary btn-lg d-block w-100" %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-auth-0.5.0 app/views/trestle/auth/sessions/_form.html.erb
trestle-auth-0.5.0.pre2 app/views/trestle/auth/sessions/_form.html.erb
trestle-auth-0.5.0.pre app/views/trestle/auth/sessions/_form.html.erb