mirror of https://github.com/fspc/BikeShed-1.git
Ilya Konanykhin
8 years ago
13 changed files with 166 additions and 161 deletions
@ -1,32 +0,0 @@ |
|||
<%- if controller_name != 'sessions' %> |
|||
<p> |
|||
<%= link_to "Sign in", new_session_path(resource_name), class: "btn btn-block btn-default" %><br /> |
|||
</p> |
|||
<% end -%> |
|||
|
|||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %> |
|||
<p> |
|||
<%= link_to "Sign up", new_registration_path(resource_name), class: "btn btn-block btn-default" %><br /> |
|||
</p> |
|||
<% end -%> |
|||
|
|||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %> |
|||
<p> |
|||
<%= link_to "Forgot your password?", new_password_path(resource_name), class: "btn btn-block btn-default" %><br /> |
|||
</p> |
|||
<% end -%> |
|||
|
|||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> |
|||
<p> |
|||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: "btn btn-block btn-default" %><br /> |
|||
</p> |
|||
<% end -%> |
|||
|
|||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> |
|||
<% end -%> |
|||
|
|||
<%- if devise_mapping.omniauthable? %> |
|||
<%- resource_class.omniauth_providers.each do |provider| %> |
|||
<%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br /> |
|||
<% end -%> |
|||
<% end -%> |
@ -0,0 +1,20 @@ |
|||
- links = [] |
|||
|
|||
- if controller_name != 'sessions' |
|||
- links << ['Sign in', new_session_path(resource_name)] |
|||
|
|||
- if devise_mapping.registerable? && controller_name != 'registrations' |
|||
- links << ['Sign up', new_registration_path(resource_name)] |
|||
|
|||
- if devise_mapping.recoverable? && controller_name != 'passwords' |
|||
- links << ['Forgot your password?', new_password_path(resource_name)] |
|||
|
|||
- if devise_mapping.confirmable? && controller_name != 'confirmations' |
|||
- links << ['Didn\'t receive confirmation instructions?', new_confirmation_path(resource_name)] |
|||
|
|||
- if devise_mapping.omniauthable? |
|||
- resource_class.omniauth_providers.each do |provider| |
|||
- links << ["Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)] |
|||
|
|||
- if links.any? |
|||
%p= links.map { |title, url| link_to title, url }.join(' · ').html_safe |
@ -1,16 +0,0 @@ |
|||
<h2>Change your password</h2> |
|||
|
|||
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %> |
|||
<%= devise_error_messages! %> |
|||
<%= f.hidden_field :reset_password_token %> |
|||
|
|||
<div><%= f.label :password, "New password" %><br /> |
|||
<%= f.password_field :password %></div> |
|||
|
|||
<div><%= f.label :password_confirmation, "Confirm new password" %><br /> |
|||
<%= f.password_field :password_confirmation %></div> |
|||
|
|||
<div><%= f.submit "Change my password" %></div> |
|||
<% end %> |
|||
|
|||
<%= render "links" %> |
@ -0,0 +1,19 @@ |
|||
%h1 Change your password |
|||
|
|||
.row |
|||
.col-xs-12.col-sm-6.col-lg-4 |
|||
= form_for resource, as: resource_name, url: password_path(resource_name), html: {method: :put} do |f| |
|||
= devise_error_messages! |
|||
= f.hidden_field :reset_password_token |
|||
|
|||
%fieldset |
|||
.form-group |
|||
= f.password_field :password, placeholder: 'New password', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.password_field :password_confirmation, placeholder: 'Confirm new password', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.submit 'Change my password', class: 'btn btn-primary' |
|||
|
|||
= render 'links' |
@ -1,14 +0,0 @@ |
|||
<h2>Forgot your password?</h2> |
|||
<br> |
|||
<br> |
|||
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> |
|||
<%= devise_error_messages! %> |
|||
|
|||
<div class="form-group"> |
|||
<%= f.email_field :email, placeholder: "Email", class: "form-control input-lg" %> |
|||
</div> |
|||
|
|||
<div><%= f.submit "Reset Password", class:"btn btn-lg btn-primary"%></div> |
|||
<% end %> |
|||
|
|||
<%= render "links" %> |
@ -0,0 +1,15 @@ |
|||
%h1 Forgot your password? |
|||
|
|||
.row |
|||
.col-xs-12.col-sm-6.col-lg-4 |
|||
= form_for resource, as: resource_name, url: password_path(resource_name), html: {method: :post } do |f| |
|||
= devise_error_messages! |
|||
|
|||
%fieldset |
|||
.form-group |
|||
= f.email_field :email, placeholder: 'Email', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.submit 'Reset Password', class: 'btn btn-primary' |
|||
|
|||
= render 'links' |
@ -1,14 +1,17 @@ |
|||
%p |
|||
%fieldset |
|||
.form-group |
|||
= f.text_field :addrStreet1, placeholder: "Street Address Line 1", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.text_field :addrStreet2, placeholder: "Street Address Line 2",:class => "form-control input-lg" |
|||
.form-group |
|||
= f.text_field :addrCity, placeholder: "City", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.text_field :addrState, placeholder: "State Abbreviation", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.text_field :addrZip, placeholder: "Zip Code", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.text_field :phone, placeholder: "Phone", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.text_field :addrStreet1, placeholder: 'Street Address Line 1', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.text_field :addrStreet2, placeholder: 'Street Address Line 2',class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.text_field :addrCity, placeholder: 'City', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.text_field :addrState, placeholder: 'State Abbreviation', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.text_field :addrZip, placeholder: 'Zip Code', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.text_field :phone, placeholder: 'Phone', class: 'form-control' |
|||
|
@ -1,22 +1,36 @@ |
|||
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| |
|||
= devise_error_messages! |
|||
.controls |
|||
%h2 Sign up |
|||
.form-group |
|||
= f.text_field :username, placeholder: "Username", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.text_field :first_name, placeholder: "First Name", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.text_field :last_name, placeholder: "Last Name", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.email_field :email, placeholder: "E-mail", :class => "form-control input-lg" |
|||
- profile_builder = resource.user_profiles.empty? ? resource.user_profiles.build : resource.user_profiles |
|||
= f.fields_for :user_profiles, profile_builder do |builder| |
|||
= render 'user_profile_fields', f: builder |
|||
.form-group |
|||
= f.password_field :password, placeholder: "Password", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.password_field :password_confirmation, placeholder: "Password Confirmation", :class => "form-control input-lg" |
|||
.form-group |
|||
= f.submit "Sign up", class:"btn btn-lg btn-primary" |
|||
= render "links" |
|||
%h1 Sign up |
|||
|
|||
.row |
|||
.col-xs-12.col-sm-6.col-lg-4 |
|||
= form_for resource, as: resource_name, url: registration_path(resource_name) do |f| |
|||
= devise_error_messages! |
|||
|
|||
%fieldset |
|||
.form-group |
|||
= f.text_field :username, placeholder: 'Username', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.text_field :first_name, placeholder: 'First Name', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.text_field :last_name, placeholder: 'Last Name', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.email_field :email, placeholder: 'E-mail', class: 'form-control' |
|||
|
|||
%fieldset |
|||
- profile_builder = resource.user_profiles.empty? ? resource.user_profiles.build : resource.user_profiles |
|||
= f.fields_for :user_profiles, profile_builder do |builder| |
|||
= render 'user_profile_fields', f: builder |
|||
|
|||
%fieldset |
|||
.form-group |
|||
= f.password_field :password, placeholder: 'Password', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.password_field :password_confirmation, placeholder: 'Password Confirmation', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.submit 'Sign up', class: 'btn btn-primary' |
|||
|
|||
= render 'links' |
|||
|
@ -1,46 +0,0 @@ |
|||
<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"> |
|||
<% if devise_mapping.rememberable? -%> |
|||
<label> |
|||
<%= f.check_box :remember_me %> Remember Me |
|||
</label> |
|||
<% end -%> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<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" %> |
|||
<% end %> |
|||
<% end %> |
|||
</p> |
|||
<% end %> |
@ -0,0 +1,41 @@ |
|||
%h1 Velocipede |
|||
%p= link_to 'Made with ♥ in Baltimore'.html_safe, 'http://madewithloveinbaltimore.org' |
|||
|
|||
.row |
|||
.col-xs-12.col-sm-6.col-lg-4 |
|||
= form_for resource, as: resource_name, url: session_path(resource_name) do |f| |
|||
|
|||
%fieldset |
|||
.form-group |
|||
= f.text_field :username, placeholder: 'Username', class: 'form-control' |
|||
|
|||
.form-group |
|||
= f.password_field :password, placeholder: 'Password', class: 'form-control' |
|||
|
|||
- if devise_mapping.rememberable? |
|||
.form-group |
|||
.checkbox |
|||
= f.label :remember_me do |
|||
= f.check_box :remember_me |
|||
Remember Me |
|||
|
|||
.form-group |
|||
.pull-left |
|||
= f.submit 'Sign in', class: 'btn btn-primary' |
|||
|
|||
.pull-right |
|||
%span.btn-group |
|||
= f.button 'CHECK IN', id: 'checkin', name: 'checkin', type: 'button', value: 'CHECK IN', class: 'btn btn-xsя btn-success' |
|||
= f.button 'CHECK OUT', id: 'checkout', name: 'checkout', type: 'button', value: 'CHECK OUT', class: 'btn btn-xsя btn-danger' |
|||
|
|||
.clearfix |
|||
|
|||
= render 'links' |
|||
|
|||
- if false && Rails.env.development? |
|||
%hr |
|||
- 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' |
|||
%p= f.submit "Sign in as #{user.username}", class: 'btn btn-sm btn-info' |
Loading…
Reference in new issue