new.html.erb 988 B

1234567891011121314151617181920212223242526272829303132
  1. <% provide(:title, "Log in") %>
  2. <div class="row">
  3. <div class="col-md-4 col-md-offset-4">
  4. <div class="login-panel panel panel-default">
  5. <div class="panel-heading">
  6. <h3 class="panel-title">Please Sign In</h3>
  7. </div>
  8. <div class="panel-body">
  9. <%= form_for(:session, url: login_path) do |f| %>
  10. <div class="form-group">
  11. <%= f.label :username %>
  12. <%= f.text_field :login, class: 'form-control', autofocus: 'autofocus' %>
  13. </div>
  14. <div class="form-group">
  15. <%= f.label :password %>
  16. <%= f.password_field :password, class: 'form-control' %>
  17. </div>
  18. <%= f.label :remember_me, class: "checkbox inline" do %>
  19. <%= f.check_box :remember_me %>
  20. <span>Remember me on this computer</span>
  21. <% end %>
  22. <%= f.submit "Log in", class: "btn btn-lg btn-block btn-success" %>
  23. <% end %>
  24. </div>
  25. </div>
  26. </div>
  27. </div>