Sha256: c76887fc6f9180de8f83e908d101e1c85d7185e6533902e05abdcd447c9b18bc

Contents?: true

Size: 808 Bytes

Versions: 3

Compression:

Stored size: 808 Bytes

Contents

<%  @title = 'Login' %>
<%= erb :'template/header' %>

<% if defined? @error %>
  <div class="alert alert-danger"><%= @error %></div>
<% elsif defined? @success %>
  <div class="alert alert-success"><%= @success %></div>
  <script>setTimeout(function() { window.location = '/'; }, 1500);</script>
<% else %>
  <form action="<%= @current_url %>" method="post" role="form">
    <h2><%= @title %></h2>

    <input type="text"     placeholder="username" name="username" class="form-control" required autofocus><br>
    <input type="password" placeholder="password" name="password" class="form-control" required          ><br>

    <%= csrf_tag %>
    <button class="btn btn-lg btn-primary btn-block" type="submit" name="login">Login</button>
  </form>
<% end %>

<%= erb :'template/footer' %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gennaro-0.3.6.5 templates/authentication/views/user/login.erb
gennaro-0.3.6.4 templates/authentication/views/user/login.erb
gennaro-0.3.6.3 templates/authentication/views/user/login.erb