Remove global Devise views
This commit is contained in:
parent
173f251148
commit
5b7eb4b562
|
@ -1,15 +0,0 @@
|
|||
- content_for(:title) { ":: #{t :resend_instructions_header}" }
|
||||
|
||||
h2.entry-title = t :resend_instructions_header
|
||||
|
||||
= simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
||||
= f.error_notification
|
||||
= f.full_error :confirmation_token
|
||||
|
||||
.form-inputs
|
||||
= f.input :email, required: true, autofocus: true, hint: false
|
||||
|
||||
.form-actions
|
||||
= f.button :submit, t(:resend_instructions_btn)
|
||||
|
||||
== render 'devise/shared/links'
|
|
@ -1,5 +0,0 @@
|
|||
<%= t(:welcome, name: @email) %>!
|
||||
|
||||
<%= t(:confirm_by_clicking) %>
|
||||
|
||||
<%= confirmation_url(@resource, confirmation_token: @token) %>
|
|
@ -1,8 +0,0 @@
|
|||
<%= 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) %>
|
|
@ -1,7 +0,0 @@
|
|||
<%= t(:hello, name: @resource.email) %>!
|
||||
|
||||
<%= t(:account_locked) %>
|
||||
|
||||
<%= t(:click_to_unlock) %>
|
||||
|
||||
<%= unlock_url(@resource, unlock_token: @token) %>
|
|
@ -1,18 +0,0 @@
|
|||
- content_for(:title) { ":: #{t :change_pass}" }
|
||||
|
||||
h2.entry-title = t :change_pass
|
||||
|
||||
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
||||
= f.error_notification
|
||||
|
||||
= f.input :reset_password_token, as: :hidden
|
||||
= f.full_error :reset_password_token
|
||||
|
||||
.form-inputs
|
||||
= f.input :password, required: true, autofocus: true
|
||||
= f.input :password_confirmation, required: true
|
||||
|
||||
.form-actions
|
||||
= f.button :submit, t(:change_pass)
|
||||
|
||||
= render 'devise/shared/links'
|
|
@ -1,14 +0,0 @@
|
|||
- content_for(:title) { ":: #{t :lostpass}" }
|
||||
|
||||
h2.entry-title = t :lostpass
|
||||
|
||||
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
||||
= f.error_notification
|
||||
|
||||
.form-inputs
|
||||
= f.input :email, required: true, autofocus: true, hint: false
|
||||
|
||||
.form-actions
|
||||
= f.button :submit, t(:send_lostpass_instructions)
|
||||
|
||||
== render 'devise/shared/links'
|
|
@ -1,31 +0,0 @@
|
|||
- content_for(:title) { ":: #{t :edit_personal_profile}" }
|
||||
|
||||
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, multipart: true }) do |f|
|
||||
.form_inputs
|
||||
h2.entry-title = t :personal_profile
|
||||
= f.error_notification
|
||||
= f.simple_fields_for :personal_profile do |ff|
|
||||
= ff.input :picture, as: :image_preview, input_html: {preview_version: :thumb}, required: true
|
||||
= ff.input :first_name, autofocus: true
|
||||
= ff.input :last_name
|
||||
= ff.input :public_email
|
||||
= ff.input :organisation
|
||||
= ff.input :github
|
||||
= ff.input :twitter
|
||||
= ff.input :mobile_phone, input_html: {value: resource.personal_profile.mobile_phone.try(:phony_formatted, format: :international)}
|
||||
= ff.input :biography
|
||||
|
||||
.form-inputs
|
||||
h3.entry-title = t :login_data
|
||||
= f.input :email, required: true
|
||||
|
||||
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
||||
p
|
||||
= t :expected_validation, email: resource.unconfirmed_email
|
||||
|
||||
= f.input :password, autocomplete: "off", hint: t(:pass_update_hint1), required: false
|
||||
= f.input :password_confirmation, required: false
|
||||
= f.input :current_password, hint: t(:pass_update_hint2), required: true
|
||||
|
||||
.form-actions
|
||||
= f.button :submit, t(:update)
|
|
@ -1,16 +0,0 @@
|
|||
- content_for(:title) { ":: #{t 'registrations.sign_up'}" }
|
||||
|
||||
h2.entry-title = t 'registrations.sign_up'
|
||||
|
||||
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
||||
= f.error_notification
|
||||
|
||||
.form-inputs
|
||||
= f.input :email, required: true, autofocus: true
|
||||
= f.input :password, required: true
|
||||
= f.input :password_confirmation, required: true
|
||||
|
||||
.form-actions
|
||||
= f.button :submit
|
||||
|
||||
== render 'devise/shared/links'
|
|
@ -1,17 +0,0 @@
|
|||
- content_for(:title) { t 'sessions.sign_in' }
|
||||
|
||||
.row
|
||||
.centered_form
|
||||
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
||||
header
|
||||
legend
|
||||
h2.entry-title = t 'sessions.sign_in_heading'
|
||||
.form-inputs
|
||||
= f.input :email, required: false, autofocus: true, hint: false
|
||||
= f.input :password, required: false, hint: false
|
||||
= f.input :remember_me, as: :boolean if devise_mapping.rememberable?
|
||||
|
||||
.form-actions
|
||||
= f.button :submit, t('sessions.sign_in')
|
||||
|
||||
= render 'devise/shared/links'
|
|
@ -1,16 +0,0 @@
|
|||
br
|
||||
- if controller_name != 'sessions'
|
||||
= link_to t('sessions.sign_in'), new_user_session_path
|
||||
br
|
||||
|
||||
- if devise_mapping.registerable? && controller_name != 'registrations'
|
||||
= link_to t('registrations.sign_up'), new_user_registration_path
|
||||
br
|
||||
|
||||
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
|
||||
= link_to t('passwords.forgotten_password'), new_user_password_path
|
||||
br
|
||||
|
||||
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
||||
= link_to t('confirmations.did_not_receive_confirmation_instructions'), new_user_confirmation_path
|
||||
br
|
|
@ -1,15 +0,0 @@
|
|||
- content_for(:title) { ":: #{t :resend_unlock_instructions_title}" }
|
||||
|
||||
h2 =t :resend_unlock_instructions_title
|
||||
|
||||
= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
||||
= f.error_notification
|
||||
= f.full_error :unlock_token
|
||||
|
||||
.form-inputs
|
||||
= f.input :email, required: true, autofocus: true, hint: false
|
||||
|
||||
.form-actions
|
||||
= f.button :submit, t(:resend_instructions_btn)
|
||||
|
||||
== render 'devise/shared/links'
|
Loading…
Reference in New Issue