From 60c20e69d20d15bdccc8f29c446441cfbae0e68f Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 30 Nov 2018 02:25:46 +0500 Subject: [PATCH] Remove unnecessary views --- app/views/users/passwords/edit.html.erb | 25 ------------------------- app/views/users/passwords/new.html.erb | 18 ------------------ 2 files changed, 43 deletions(-) delete mode 100644 app/views/users/passwords/edit.html.erb delete mode 100644 app/views/users/passwords/new.html.erb diff --git a/app/views/users/passwords/edit.html.erb b/app/views/users/passwords/edit.html.erb deleted file mode 100644 index add320c..0000000 --- a/app/views/users/passwords/edit.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -

<%= translate '.change_your_password' %>

- -<%= 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 %> - -
- <%= f.input :password, - label: translate('.new_password'), - required: true, - autofocus: true, - hint: (translate('devise.shared.minimum_password_length', count: @minimum_password_length) if @minimum_password_length), - input_html: { autocomplete: 'new-password' } %> - - <%= f.input :password_confirmation, label: translate('.confirm_new_password'), required: true %> -
- -
- <%= f.button :submit, translate('.change_my_password') %> -
-<% end %> - -<%= render 'users/shared/links' %> diff --git a/app/views/users/passwords/new.html.erb b/app/views/users/passwords/new.html.erb deleted file mode 100644 index 52e1912..0000000 --- a/app/views/users/passwords/new.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= translate '.forgot_your_password' %>

- -<%= simple_form_for resource, as: resource_name, url: password_path(resource_name), html: { method: :post } do |f| %> - <%= f.error_notification %> - -
- <%= f.input :email, - required: true, - autofocus: true, - input_html: { autocomplete: 'email' } %> -
- -
- <%= f.button :submit, translate('.send_me_reset_password_instructions') %> -
-<% end %> - -<%= render 'users/shared/links' %>