Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions app/views/devise/passwords/edit.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<% title t('titles.passwords.change') %>

<h1 class="h3 my0">
<%= t('headings.passwords.change') %>
</h1>

<%= simple_form_for(@reset_password_form,
url: user_password_path,
html: { autocomplete: 'off',
method: :put,
role: 'form' }) do |f| %>
<%= f.input :reset_password_token, as: :hidden %>
<%= f.full_error :reset_password_token %>
<%= f.input :password, label: t('forms.passwords.edit.labels.password'), required: true %>
<%= render 'devise/shared/password_strength' %>
<%= f.button :submit, t('forms.passwords.edit.buttons.submit'), class: 'mb3' %>
<% end %>

<%= render 'shared/password_accordion' %>

<%= javascript_pack_tag 'pw-strength' %>
17 changes: 0 additions & 17 deletions app/views/devise/passwords/edit.html.slim

This file was deleted.

21 changes: 21 additions & 0 deletions app/views/event_disavowal/new.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<% title t('titles.passwords.change') %>

<h1 class="h3 my0">
<%= t('headings.passwords.change') %>
</h1>

<%= simple_form_for(@password_reset_from_disavowal_form,
url: events_disavowal_url,
html: { autocomplete: 'off',
method: :post,
role: 'form' }) do |f| %>
<%= f.input :disavowal_token, as: :hidden,
input_html: { value: @disavowal_token, name: :disavowal_token } %>
<%= f.input :password, label: t('forms.passwords.edit.labels.password'), required: true %>
<%= render 'devise/shared/password_strength' %>
<%= f.button :submit, t('forms.passwords.edit.buttons.submit'), class: 'mb3' %>
<% end %>

<%= render 'shared/password_accordion' %>

<%= javascript_pack_tag 'pw-strength' %>
17 changes: 0 additions & 17 deletions app/views/event_disavowal/new.html.slim

This file was deleted.

32 changes: 32 additions & 0 deletions app/views/idv/review/new.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<% title t('idv.titles.review') %>

<h1 class="h3">
<%= t('idv.titles.session.review') %>
</h1>

<p>
<%= t('idv.messages.sessions.review_message') %>
</p>

<%= link_to t('idv.messages.sessions.read_more_encrypt'), "https://login.gov/security/", target: "_blank" %>

<%= simple_form_for(current_user, url: idv_review_path,
html: { autocomplete: 'off', method: :put, role: 'form' }) do |f| %>
<%= f.input :password, label: t('idv.form.password'), required: true %>
<div class="right-align mtn2 mb4">
<%= t('idv.forgot_password.link_html',
link: link_to(t('idv.forgot_password.link_text'), idv_forgot_password_url,
class: 'btn btn-link ml1', form_class: 'inline-block')) %>

</div>
<%= accordion('review-verified-info', t('idv.messages.review.intro')) do %>
<%= render 'shared/pii_review', pii: @applicant,
phone: PhoneFormatter.format(@applicant[:phone]) %>
<% end %>

<%= f.button :submit, t('forms.buttons.continue'), class: 'btn btn-primary btn-wide sm-col-6 col-12' %>
<% end %>

<div class="mt4 mt2 pt1 border-top">
<%= link_to t('links.cancel'), idv_cancel_path, class: 'h5' %>
</div>
22 changes: 0 additions & 22 deletions app/views/idv/review/new.html.slim

This file was deleted.

42 changes: 42 additions & 0 deletions app/views/shared/_pii_review.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<div class="pl5 pb3">
<div class="h6">
<%= t('idv.review.full_name') %>
</div>

<div class="h4 bold ico-absolute ico-absolute-success">
<%= pii[:first_name] %> <%= pii[:last_name] %>
</div>

<div class="mt3 h6">
<%= t('idv.review.mailing_address') %>
</div>

<div class="h4 bold ico-absolute ico-absolute-success">
<%= render 'shared/address', address: pii %>
</div>

<div class="mt3 h6">
<%= t('idv.review.dob') %>
</div>

<div class="h4 bold ico-absolute ico-absolute-success">
<%= pii[:dob].to_date.to_formatted_s(:long) %>
</div>

<div class="mt3 h6">
<%= t('idv.review.ssn') %>
</div>

<div class="h4 bold ico-absolute ico-absolute-success">
<%= pii[:ssn] %>
</div>

<% if phone %>
<div class="h6 mt3">
<%= t('idv.messages.phone.phone_of_record') %>
</div>
<div class="h4 bold ico-absolute ico-absolute-success">
<%= phone %>
</div>
<% end %>
</div>
17 changes: 0 additions & 17 deletions app/views/shared/_pii_review.html.slim

This file was deleted.

24 changes: 24 additions & 0 deletions app/views/users/passwords/edit.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<% title t('titles.edit_info.password') %>

<h1 class="h3 my0">
<%= t('headings.edit_info.password') %>
</h1>

<p class="mt-tiny mb0" id="password-description">
<%= t('instructions.password.info.lead', min_length: Devise.password_length.first) %>
</p>

<%= simple_form_for(@update_user_password_form, url: manage_password_path,
html: { autocomplete: 'off', method: :patch, role: 'form' }) do |f| %>
<%= f.error_notification %>
<%= f.input :password, label: t('forms.passwords.edit.labels.password'), required: true,
input_html: { 'aria-describedby': 'password-description' } %>
<%= render 'devise/shared/password_strength' %>
<%= f.button :submit, t('forms.buttons.submit.update'), class: 'mt2 mb3' %>
<% end %>

<%= render 'shared/password_accordion' %>

<%= render 'shared/cancel', link: account_path %>

<%= javascript_pack_tag 'pw-strength' %>
18 changes: 0 additions & 18 deletions app/views/users/passwords/edit.html.slim

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

describe 'devise/passwords/edit.html.slim' do
describe 'devise/passwords/edit.html.erb' do
before do
user = build_stubbed(:user, :signed_up)
@reset_password_form = ResetPasswordForm.new(user)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

describe 'idv/review/new.html.slim' do
describe 'idv/review/new.html.erb' do
include XPathHelper

context 'user has completed all steps' do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

describe 'users/passwords/edit.html.slim' do
describe 'users/passwords/edit.html.erb' do
before do
user = User.new
allow(view).to receive(:current_user).and_return(user)
Expand Down