Sha256: 5ed525a7880c617be91be3d1150ba9dd5546a59efe8c8ff08bf36a0e9efef581

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trestle-auth-0.4.0 app/views/trestle/auth/sessions/_form.html.erb