Fix Devise views

This commit is contained in:
Petko Bordjukov 2015-08-15 05:59:46 +03:00
parent b2dd7bc0a8
commit 65133515dc
8 changed files with 23 additions and 10 deletions

View File

@ -0,0 +1,5 @@
<%= t(:welcome, name: @email) %>!
<%= t(:confirm_by_clicking) %>
<%= confirmation_url(@resource, confirmation_token: @token) %>

View File

@ -0,0 +1,8 @@
<%= t(:hello, name: @resource.email) %>!
<%= t(:someone_requested_passreset) %>
<%= edit_password_url(@resource, reset_password_token: @token) %>
<%= t(:do_not_want_pass_reset1) %>
<%= t(:do_not_want_pass_reset2) %>

View File

@ -1,8 +1,8 @@
- content_for(:title) { ":: #{t :resend_instructions_header}" } - content_for(:title) { "#{t :resend_instructions_header}" }
h2.entry-title = t :resend_instructions_header h2.entry-title = t :resend_instructions_header
= simple_form_for(resource, wrapper: :default, as: :user, url: user_confirmation_path) do |f| = simple_form_for(resource, wrapper: :default, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
= f.error_notification = f.error_notification
= f.full_error :confirmation_token = f.full_error :confirmation_token

View File

@ -1,8 +1,8 @@
- content_for(:title) { ":: #{t :change_pass}" } - content_for(:title) { "#{t :change_pass}" }
h2.entry-title = t :change_pass h2.entry-title = t :change_pass
= simple_form_for(resource, wrapper: :default, as: :user, url: user_password_path, html: { method: :put }) do |f| = simple_form_for(resource, wrapper: :default, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
= f.error_notification = f.error_notification
= f.input :reset_password_token, as: :hidden = f.input :reset_password_token, as: :hidden

View File

@ -1,8 +1,8 @@
- content_for(:title) { ":: #{t :lostpass}" } - content_for(:title) { "#{t :lostpass}" }
h2.entry-title = t :lostpass h2.entry-title = t :lostpass
= simple_form_for(resource, wrapper: :default, as: :user, url: user_password_path) do |f| = simple_form_for(resource, wrapper: :default, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
= f.error_notification = f.error_notification
.form-inputs .form-inputs

View File

@ -1,6 +1,6 @@
- content_for(:title) { t :edit_speaker_profile } - content_for(:title) { t :edit_speaker_profile }
= simple_form_for(resource, wrapper: :default, as: :user, url: user_registration_path, html: { method: :put, multipart: true }) do |f| = simple_form_for(resource, wrapper: :default, as: resource_name, url: registration_path(resource_name), html: { method: :put, multipart: true }) do |f|
.form_inputs .form_inputs
/ h2 / h2
/ - if current_user.personal_profile(current_conference).present? / - if current_user.personal_profile(current_conference).present?

View File

@ -1,8 +1,8 @@
- content_for(:title) { ":: #{t :registration}" } - content_for(:title) { "#{t :registration}" }
h2.entry-title = t :registration h2.entry-title = t :registration
= simple_form_for(resource, wrapper: :default, as: :user, url: user_registration_path) do |f| = simple_form_for(resource, wrapper: :default, as: resource_name, url: registration_path(resource_name)) do |f|
= f.error_notification = f.error_notification
.form-inputs .form-inputs

View File

@ -2,7 +2,7 @@
h2.entry-title = t :login h2.entry-title = t :login
= simple_form_for(resource, wrapper: :default, as: :user, url: user_session_path) do |f| = simple_form_for(resource, wrapper: :default, as: resource_name, url: session_path(resource_name)) do |f|
.form-inputs .form-inputs
= f.input :email, required: false, autofocus: true, hint: false = f.input :email, required: false, autofocus: true, hint: false
= f.input :password, required: false, hint: false = f.input :password, required: false, hint: false