-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agregando estilo a las vista de login y registrase
- Loading branch information
Showing
7 changed files
with
106 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,4 @@ gem 'rqrcode' | |
gem 'geocoder' | ||
gem 'icalendar' | ||
gem 'leaflet-rails' | ||
gem "font-awesome-rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,46 @@ | ||
div class="container" | ||
div class="row" | ||
div class="bs-docs-section clearfix" | ||
div class="jumbotron" | ||
div class="row" | ||
div class="page-header" | ||
div class="jumbotron" | ||
div class="row" | ||
h2 class="display-3" | ||
= t(:sign_up_with) | ||
|
||
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| | ||
|
||
= devise_error_messages! | ||
div class="form-group row" | ||
= link_to "<i class='fa fa-facebook'></i>".html_safe + t(:facebook), user_facebook_omniauth_authorize_path, :class => "btn btn-primary btn-lg btn-block" | ||
|
||
= link_to "<i class='fa fa-twitter'></i>".html_safe + t(:github), user_github_omniauth_authorize_path, :class => "btn btn-primary btn-lg btn-block" | ||
div class="form-group row" | ||
h2 class="display-3" | ||
= t(:sign_up_with) | ||
| | ||
= t(:email) | ||
div class="form-group row" | ||
= f.label t(:name), class: "form-input-label" | ||
= f.text_field :name, required: true, minlength: "8", maxlength: "50", class: "form-control" | ||
div class="form-group row" | ||
= f.label t(:photo), class: "form-input-label" | ||
= f.file_field :avatar, class: "form-control-file" | ||
div class="form-group row" | ||
= f.label t(:email), class: "form-input-label" | ||
= f.email_field :email, autofocus: true, autocomplete: "email", required: true, "data-parsley-type": "email",class: "form-control" | ||
|
||
div class="form-group row" | ||
= f.label t(:password), class: "form-input-label" | ||
- if @minimum_password_length | ||
em | ||
= @minimum_password_length | ||
| | ||
= t(:characters_minimum) | ||
= f.password_field :password, autocomplete: "off", required: true, minlength: "8", maxlength: "50", "data-parsley-type": "alphanum", class: "form-control" | ||
|
||
div class="form-group row" | ||
= f.label t(:password_confirmation), required: true, "data-parsley-equalto": "#user_password", class: "form-input-label" | ||
= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" | ||
|
||
div class="form-group row" | ||
= f.submit t(:sign_up), class: "btn btn-primary" | ||
|
||
hr class="my-4" | ||
= render "devise/shared/links" | ||
div class="col-md-4" | ||
h2 class="display-3 text-center" | ||
= t(:sign_up_with) | ||
div class="form-group" | ||
span class="social-login" | ||
= link_to "<i class='fa fa-facebook fa-4x'></i>".html_safe, user_facebook_omniauth_authorize_path, :class => "btn btn-primary" | ||
span class="social-login" | ||
= link_to "<i class='fa fa-github fa-4x'></i>".html_safe, user_github_omniauth_authorize_path, :class => "btn btn-default" | ||
div class="col-md-7 col-md-offset-1" | ||
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| | ||
= devise_error_messages! | ||
h2 class="display-3 text-center" | ||
= t(:sign_up_with) | ||
| | ||
= t(:email) | ||
div class="form-group" | ||
= f.label t(:name), for: "name" | ||
= f.text_field :name, required: true, minlength: "8", maxlength: "50", class: "form-control", id: "name", placeholder: t(:name) | ||
div class="form-group" | ||
= f.label t(:email), for: "email" | ||
= f.email_field :email, autofocus: true, autocomplete: "email", required: true, "data-parsley-type": "email", class: "form-control", id: "email", placeholder: t(:email) | ||
|
||
div class="form-group" | ||
= f.label t(:photo), for: "avatar" | ||
= f.file_field :avatar, class: "form-control-file", id: "avatar" | ||
div class="form-group" | ||
= f.label t(:password), for: "password" | ||
- if @minimum_password_length | ||
em | ||
= @minimum_password_length | ||
| | ||
= t(:characters_minimum) | ||
= f.password_field :password, autocomplete: "off", required: true, minlength: "8", maxlength: "50", "data-parsley-type": "alphanum", class: "form-control", id: "password", placeholder: t(:password) | ||
|
||
div class="form-group" | ||
= f.label t(:password_confirmation), "data-parsley-equalto": "#user_password", for: "confirmation" | ||
= f.password_field :password_confirmation, required: true, autocomplete: "off", class: "form-control", id: "confirmation", placeholder: t(:password_confirmation) | ||
|
||
= f.submit t(:sign_up), class: "btn btn-primary " | ||
|
||
hr class="my-4" | ||
= render "devise/shared/links" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
div class="container" | ||
div class="row" | ||
div class="jumbotron" | ||
h2 class="display-3" | ||
= t(:log_in_with) | ||
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| | ||
div class="from-group row" | ||
= link_to "<i class='fa fa-facebook'></i>".html_safe + t(:facebook), user_facebook_omniauth_authorize_path, :class => "btn btn-primary btn-lg btn-block" | ||
= link_to "<i class='fa fa-twitter'></i>".html_safe + t(:github), user_github_omniauth_authorize_path, :class => "btn btn-primary btn-lg btn-block" | ||
hr class="my-4" | ||
|
||
div class="form-group row" | ||
h3 class="display-3" | ||
= t(:log_in_with_email) | ||
|
||
div class="form-group row" | ||
= f.label t(:email), class: "form-input-label" | ||
= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control" | ||
|
||
div class="form-group row" | ||
= f.label :password, class: "form-input-label" | ||
= f.password_field :password, autocomplete: "off", class: "form-control" | ||
|
||
- if devise_mapping.rememberable? | ||
div class="form-group row" | ||
div class="form-check-lable" | ||
= f.check_box :remember_me, class: "form-check-input" | ||
| | ||
= f.label t(:remember_me) | ||
|
||
div class="form-group row" | ||
= f.submit t(:sign_in), class: "btn btn-primary" | ||
hr class="my-4" | ||
= render "devise/shared/links" | ||
div class="jumbotron" | ||
div class="row col-md-offset-2" | ||
div class="col-md-4" | ||
h2 class="display-3 text-center" | ||
= t(:log_in_with) | ||
span class="social-login" | ||
= link_to "<i class='fa fa-facebook fa-4x'></i>".html_safe, user_facebook_omniauth_authorize_path, :class => "btn btn-primary" | ||
span class="social-login" | ||
= link_to "<i class='fa fa-github fa-4x'></i>".html_safe, user_github_omniauth_authorize_path, :class => "btn btn-default" | ||
hr class="my-4" | ||
div class="col-md-5 col-md-offset-1" | ||
h2 class="display-3 text-center" | ||
= t(:log_in) | ||
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| | ||
|
||
div class="form-group" | ||
= f.label t(:email), for: "email" | ||
= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control", id: "email", placeholder: t(:email) | ||
|
||
div class="form-group" | ||
= f.label t(:password), for: "password" | ||
= f.password_field :password, autocomplete: "off", class: "form-control", id: "password", placeholder: t(:password) | ||
|
||
- if devise_mapping.rememberable? | ||
div class="form-group" | ||
div class="form-check-lable" | ||
= f.check_box :remember_me, class: "form-check-input", id: "check" | ||
| | ||
= f.label t(:remember_me), for: "check" | ||
|
||
div class="text-center" | ||
= f.submit t(:sign_in), class: "btn btn-primary btn-lg" | ||
hr class="my-4" | ||
= render "devise/shared/links" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters