Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #60 --------- Co-authored-by: José Benavente <jose@bgm.cl>
- Loading branch information
1 parent
1a79ffb
commit c32a12d
Showing
28 changed files
with
2,074 additions
and
769 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
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,12 +1,12 @@ | ||
%h2.mb-3 Resend Instructions | ||
%h2.mb-3= t('.resend_confirmation_instructions') | ||
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| | ||
.row | ||
.col-md-5 | ||
.field.form-group | ||
= f.label :email | ||
= f.label :email, t("activerecord.attributes.user.email") | ||
= f.email_field :email, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email), :class => "form-control" | ||
.actions | ||
= f.button "Resend confirmation instructions", :type => "submit", :class => "btn mb-2" | ||
= f.button t('.resend_confirmation_instructions'), :type => "submit", :class => "btn mb-2" | ||
= render "devise/shared/links" | ||
.col-md-7 | ||
= render "devise/shared/error_messages", resource: resource |
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,5 +1,3 @@ | ||
%p | ||
= t("confirmation.welcome", email:@email) #{@email}! | ||
%p | ||
= t("confirmation.description") | ||
%p= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) | ||
%p= t('.greeting', recipient: @email) | ||
%p= t('.instruction') | ||
%p= link_to t('.action'), confirmation_url(@resource, confirmation_token: @token) |
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,9 +1,5 @@ | ||
%p | ||
= t("email.changed.greeting", email:@email) #{@email}! | ||
%p= t('.greeting', recipient: @email) | ||
- if @resource.try(:unconfirmed_email?) | ||
%p | ||
= t("email.changed.changing", email:@resource.unconfirmed_email) #{@resource.unconfirmed_email}. | ||
%p= t('.message_unconfirmed', email: @resource.unconfirmed_email) | ||
- else | ||
%p | ||
= t("email.changed.changed", email:@resource.email) #{@resource.email}. | ||
|
||
%p= t('.message', email: @resource.email) |
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,4 +1,2 @@ | ||
%p | ||
= t("password.change.greeting", email:@resource.email) #{@resource.email}! | ||
%p | ||
= t("password.change.description") | ||
%p= t('.greeting', recipient: @resource.email) | ||
%p= t('.message') |
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,9 +1,5 @@ | ||
%p | ||
= t("password.reset.greeting", email:@resource.email) #{@resource.email}! | ||
%p | ||
= t("password.reset.advise") | ||
%p= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) | ||
%p | ||
= t("password.reset.advise2") | ||
%p | ||
= t("password.reset.advise3") | ||
%p= t('.greeting', recipient: @resource.email) | ||
%p= t('.instruction') | ||
%p= link_to t('.action'), edit_password_url(@resource, reset_password_token: @token) | ||
%p= t('.instruction_2') | ||
%p= t('.instruction_3') |
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,7 +1,4 @@ | ||
%p | ||
= t("account.unlock.greeting", email:@resource.email) #{@resource.email}! | ||
%p | ||
= t("account.unlock.advise") | ||
%p | ||
= t("account.unlock.instruction") | ||
%p= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) | ||
%p= t('.greeting', recipient: @resource.email) | ||
%p= t('.message') | ||
%p= t('.instruction') | ||
%p= link_to t('.action'), unlock_url(@resource, unlock_token: @token) |
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,19 +1,18 @@ | ||
%h2.mb-3 Change your password | ||
%h2.mb-3= t('.change_your_password') | ||
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| | ||
.row | ||
.col-md-5 | ||
= f.hidden_field :reset_password_token | ||
.field.form-group | ||
= f.label :password, "New password" | ||
= f.label :password, t('.new_password') | ||
- if @minimum_password_length | ||
%em | ||
(#{@minimum_password_length} characters minimum) | ||
%em= t('devise.shared.minimum_password_length', count: @minimum_password_length) | ||
= f.password_field :password, autofocus: true, autocomplete: "new-password", :class => "form-control" | ||
.field.form-group | ||
= f.label :password_confirmation, "Confirm new password" | ||
= f.label :password_confirmation, t('.confirm_new_password') | ||
= f.password_field :password_confirmation, autocomplete: "new-password", :class => "form-control" | ||
.actions | ||
= f.button "Change my password", :type => "submit", :class => "btn mb-2" | ||
= f.button t('.change_my_password'), :type => "submit", :class => "btn mb-2" | ||
= render "devise/shared/links" | ||
.col-md-7 | ||
= render "devise/shared/error_messages", resource: resource |
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,12 +1,12 @@ | ||
%h2.mb-3 Forgot your password? | ||
%h2.mb-3= t('.forgot_your_password') | ||
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| | ||
.row | ||
.col-md-5 | ||
.field.form-group | ||
= f.label :email | ||
= f.label :email, t("activerecord.attributes.user.email") | ||
= f.email_field :email, autofocus: true, autocomplete: "email", :class => "form-control" | ||
.actions | ||
= f.button "Resend password instructions", :type => "submit", :class => "btn mb-2" | ||
= f.button t('.send_me_reset_password_instructions'), :type => "submit", :class => "btn mb-2" | ||
= render "devise/shared/links" | ||
.col-md-7 | ||
= render "devise/shared/error_messages", resource: resource |
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,24 +1,24 @@ | ||
%h2.mb-3 Register | ||
%h2.mb-3=t('.sign_up') | ||
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| | ||
.row | ||
.col-md-5 | ||
.field.form-group | ||
= f.label(:username, "Re-Volt Username") | ||
= f.label(:username, t(".username")) | ||
= f.text_field :username, autocomplete: "username", :class => "form-control", :style => "text-transform: uppercase;" | ||
.field.form-group | ||
= f.label :email | ||
= f.label :email, t("activerecord.attributes.user.email") | ||
= f.email_field :email, autofocus: true, autocomplete: "email", :class => "form-control" | ||
.field.form-group | ||
= f.label :password | ||
= f.label :password, t("devise.shared.links.password") | ||
- if @minimum_password_length | ||
%em | ||
(#{@minimum_password_length} characters minimum) | ||
= t('devise.shared.minimum_password_length', count: @minimum_password_length) | ||
= f.password_field :password, autocomplete: "new-password", :class => "form-control" | ||
.field.form-group | ||
= f.label :password_confirmation | ||
= f.label :password_confirmation, t("devise.shared.links.password-confirm") | ||
= f.password_field :password_confirmation, autocomplete: "new-password", :class => "form-control" | ||
.actions | ||
= f.button "Sign up", :type => "submit", :class => "btn mb-2" | ||
= f.button t('.sign_up'), :type => "submit", :class => "btn mb-2" | ||
= render "devise/shared/links" | ||
.col-md-7 | ||
= render "devise/shared/error_messages", resource: resource |
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,17 +1,17 @@ | ||
%h2.mb-3 Log in | ||
%h2.mb-3= t('.sign_in') | ||
= form_for(resource, as: resource_name, url: new_user_session_path) do |f| | ||
.row | ||
.col-md-5 | ||
.field.form-group | ||
= f.label :email | ||
= f.label :email, t("activerecord.attributes.user.email") | ||
= f.email_field :email, autofocus: true, autocomplete: "email", :class => "form-control" | ||
.field.form-group | ||
= f.label :password | ||
= f.label :password, t("activerecord.attributes.user.password") | ||
= f.password_field :password, autocomplete: "current-password", :class => "form-control" | ||
- if devise_mapping.rememberable? | ||
.field.form-group | ||
= f.check_box :remember_me | ||
= f.label :remember_me | ||
= f.label :remember_me, t("activerecord.attributes.user.remember_me") | ||
.actions | ||
= f.button "Log in", :type => "submit", :class => "btn mb-2" | ||
= f.button t('.sign_in'), :type => "submit", :class => "btn mb-2" | ||
= 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,9 +1,9 @@ | ||
- if resource.errors.any? | ||
#error-explanation | ||
%h5 | ||
= I18n.t("errors.messages.not_saved", | | ||
count: resource.errors.count, | | ||
resource: resource.class.model_name.human.downcase) | | ||
#error_explanation{"data-turbo-cache" => "false"} | ||
%h2 | ||
= I18n.t("errors.messages.not_saved", | | ||
count: resource.errors.count, | | ||
resource: devise_i18n_fix_model_name_case(resource.model_name.human, i18n_key: 'errors.messages.not_saved')) | | ||
%ul | ||
- resource.errors.full_messages.each do |message| | ||
%li= message |
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,19 +1,19 @@ | ||
- if controller_name != 'sessions' | ||
= link_to "Log in", new_user_session_path | ||
= link_to t(".sign_in"), new_user_session_path | ||
%br/ | ||
- if devise_mapping.registerable? && controller_name != 'registrations' | ||
= link_to "Sign up", new_registration_path(resource_name) | ||
= link_to t(".sign_up"), new_registration_path(resource_name) | ||
%br/ | ||
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' | ||
= link_to "Forgot your password?", new_password_path(resource_name) | ||
= link_to t(".forgot_your_password"), new_password_path(resource_name) | ||
%br/ | ||
- if devise_mapping.confirmable? && controller_name != 'confirmations' | ||
= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) | ||
= link_to t('.didn_t_receive_confirmation_instructions'), new_confirmation_path(resource_name) | ||
%br/ | ||
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' | ||
= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) | ||
= link_to t('.didn_t_receive_unlock_instructions'), new_unlock_path(resource_name) | ||
%br/ | ||
- if devise_mapping.omniauthable? | ||
- resource_class.omniauth_providers.each do |provider| | ||
= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), method: :post, :"data-turbo" => false | ||
= button_to t('.sign_in_with_provider', provider: OmniAuth::Utils.camelize(provider)), omniauth_authorize_path(resource_name, provider), data: { turbo: false } | ||
%br/ |
Oops, something went wrong.