mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 11:47:41 +00:00
- When creating a new company as an admin, a new database containing models for Runs, Grades, Results, Machines, and Oysters is migrated and created - When a user registers, they are automatically switched to their company's db in the server - When a user signs in they are also automatically swithched
27 lines
612 B
Plaintext
27 lines
612 B
Plaintext
<h2>Log In</h2>
|
|
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
<div class="field">
|
|
<%= f.label :email %><br />
|
|
<%= f.email_field :email, autofocus: true %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :password %><br />
|
|
<%= f.password_field :password, autocomplete: "off" %>
|
|
</div>
|
|
|
|
<% if devise_mapping.rememberable? -%>
|
|
<div class="field">
|
|
<%= f.check_box :remember_me %>
|
|
<%= f.label :remember_me %>
|
|
</div>
|
|
<% end -%>
|
|
|
|
<div class="actions">
|
|
<%= f.submit "Log in" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render "users/shared/links" %>
|