mirror of https://github.com/fspc/BikeShed-1.git
Brigitte Warner
10 years ago
4 changed files with 72 additions and 45 deletions
After Width: | Height: | Size: 6.7 KiB |
@ -1,48 +1,52 @@ |
|||
<%= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" %> |
|||
<%= stylesheet_link_tag "bootstrap", :media => "all" %> |
|||
<%= stylesheet_link_tag "application", :media => "all" %> |
|||
<div class="container"> |
|||
<%= image_tag 'velo_logo.png' %> |
|||
<p><a href="http://madewithloveinbaltimore.org" class="made">Made with ♥ in Baltimore</a></p> |
|||
<br> |
|||
<br> |
|||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
|||
<div class="row"> |
|||
<div class="col-xs-12 col-sm-12 col-md-12"> |
|||
<div class="form-group"> |
|||
<%= f.text_field :username, placeholder: "Username", class: "form-control input-lg", autofocus: true %> |
|||
</div> |
|||
|
|||
<h2>Velocipede</h2> |
|||
<a href="http://madewithloveinbaltimore.org">Made with ♥ in Baltimore</a> |
|||
<br> |
|||
<br> |
|||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
|||
<div class="form-group"> |
|||
<%= f.text_field :username, placeholder: "Username", class: "form-control input-lg"%> |
|||
</div> |
|||
<div class="form-group"> |
|||
<%= f.password_field :password, placeholder: "Password", class: "form-control input-lg" %> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<%= f.password_field :password, placeholder: "Password", class: "form-control input-lg" %> |
|||
</div> |
|||
<div class="form-group remember"> |
|||
<% if devise_mapping.rememberable? -%> |
|||
<label> |
|||
<%= f.check_box :remember_me, class: 'check_box' %> Remember Me |
|||
</label> |
|||
<% end -%> |
|||
</div> |
|||
</div> <!-- end column --> |
|||
</div> <!-- end row --> |
|||
<div class="row"> |
|||
<div class="col-xs-12 col-sm-12 col-md-12"> |
|||
<div class="form-group"> |
|||
<p> |
|||
<%= f.submit "Sign in", class:"btn btn-lg btn-primary col-xs-12 col-sm-12 col-md-12" %> |
|||
</p> |
|||
</div> |
|||
</div> <!-- end column --> |
|||
</div> <!-- end row --> |
|||
<% end %> |
|||
|
|||
<div class="form-group"> |
|||
<% if devise_mapping.rememberable? -%> |
|||
<label> |
|||
<%= f.check_box :remember_me %> Remember Me |
|||
</label> |
|||
<% end -%> |
|||
</div> |
|||
<%= render "links" %> |
|||
|
|||
<div class="form-group"> |
|||
<% if Rails.env.development? %> |
|||
<p> |
|||
<%= f.submit "Sign in", class:"btn btn-lg btn-primary" %> |
|||
</p> |
|||
<p> Or quickly... </p> |
|||
<div class="btn-group"> |
|||
<input id="checkin" name="checkin" type="button" value="CHECK IN" class="btn btn-lg btn-success"> |
|||
<input id="checkout" name="checkout" type="button" value="CHECK OUT" class="btn btn-lg btn-danger"> |
|||
</div> |
|||
</div> |
|||
<% end %> |
|||
|
|||
<%= render "links" %> |
|||
|
|||
<% if Rails.env.development? %> |
|||
<p> |
|||
<% User.all.each do |user| %> |
|||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
|||
<%= f.hidden_field :username, :value => user.username%> |
|||
<%= f.hidden_field :password, :value => 'password' %> |
|||
<%= f.submit "Sign in as #{user.username}", class:"btn btn-info" %> |
|||
<% User.all.each do |user| %> |
|||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
|||
<%= f.hidden_field :username, :value => user.username%> |
|||
<%= f.hidden_field :password, :value => 'password' %> |
|||
<%= f.submit "Sign in as #{user.username}", class:"btn btn-info" %> |
|||
<% end %> |
|||
<% end %> |
|||
</p> |
|||
<% end %> |
|||
</p> |
|||
<% end %> |
|||
</div> |
Loading…
Reference in new issue