summaryrefslogtreecommitdiff
path: root/web-ui/src/account_recovery/forms
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-03-28 13:29:51 -0300
committerAnike Arni <aarni@thoughtworks.com>2017-03-28 15:23:46 -0300
commita6c848f373e4842c29c602ec7071d9b964587095 (patch)
tree1abd117ea63be1d74a636d1f94ff1239271c9bf7 /web-ui/src/account_recovery/forms
parent815c8f2799c440d8226d1047f49e773078473f96 (diff)
[#932] Adds mobile progress bar to account recovery flow
Diffstat (limited to 'web-ui/src/account_recovery/forms')
-rw-r--r--web-ui/src/account_recovery/forms/admin_recovery_code_form.js8
-rw-r--r--web-ui/src/account_recovery/forms/admin_recovery_code_form.scss0
-rw-r--r--web-ui/src/account_recovery/forms/forms.scss20
-rw-r--r--web-ui/src/account_recovery/forms/user_recovery_code_form.js5
4 files changed, 31 insertions, 2 deletions
diff --git a/web-ui/src/account_recovery/forms/admin_recovery_code_form.js b/web-ui/src/account_recovery/forms/admin_recovery_code_form.js
index 0a28e8b2..75cf6ea5 100644
--- a/web-ui/src/account_recovery/forms/admin_recovery_code_form.js
+++ b/web-ui/src/account_recovery/forms/admin_recovery_code_form.js
@@ -21,11 +21,15 @@ import { translate } from 'react-i18next';
import InputField from 'src/common/input_field/input_field';
import SubmitButton from 'src/common/submit_button/submit_button';
-import './admin_recovery_code_form.scss';
-
+import './forms.scss';
export const AdminRecoveryCodeForm = ({ t, next }) => (
<form className='admin-code-form' onSubmit={next}>
+ <img
+ className='account-recovery-progress'
+ src='/public/images/account-recovery/step_1.svg'
+ alt={t('account-recovery.admin-form.image-description')}
+ />
<h1>{t('account-recovery.admin-form.title')}</h1>
<ul>
<li>{t('account-recovery.admin-form.tip1')}</li>
diff --git a/web-ui/src/account_recovery/forms/admin_recovery_code_form.scss b/web-ui/src/account_recovery/forms/admin_recovery_code_form.scss
deleted file mode 100644
index e69de29b..00000000
--- a/web-ui/src/account_recovery/forms/admin_recovery_code_form.scss
+++ /dev/null
diff --git a/web-ui/src/account_recovery/forms/forms.scss b/web-ui/src/account_recovery/forms/forms.scss
new file mode 100644
index 00000000..1ef0e8d3
--- /dev/null
+++ b/web-ui/src/account_recovery/forms/forms.scss
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2017 ThoughtWorks, Inc.
+ *
+ * Pixelated is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Pixelated is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+.account-recovery-progress {
+ width: 100%;
+}
diff --git a/web-ui/src/account_recovery/forms/user_recovery_code_form.js b/web-ui/src/account_recovery/forms/user_recovery_code_form.js
index 9f13b498..5b679f88 100644
--- a/web-ui/src/account_recovery/forms/user_recovery_code_form.js
+++ b/web-ui/src/account_recovery/forms/user_recovery_code_form.js
@@ -23,6 +23,11 @@ import SubmitButton from 'src/common/submit_button/submit_button';
export const UserRecoveryCodeForm = ({ t }) => (
<form>
+ <img
+ className='account-recovery-progress'
+ src='/public/images/account-recovery/step_2.svg'
+ alt={t('account-recovery.user-form.image-description')}
+ />
<h1>{t('account-recovery.user-form.title')}</h1>
<p>{t('account-recovery.user-form.description')}</p>
<InputField name='admin-code' label={t('account-recovery.user-form.input-label')} />