Refactor Email Update URL Change

This commit is contained in:
Mrugesh Mohapatra
2016-05-03 10:54:56 +05:30
parent 2224b8dec1
commit caa49aea20
4 changed files with 5 additions and 5 deletions

View File

@ -506,7 +506,7 @@ a[href="/email-signup"], a[href="/email-signin"] {
} }
} }
form.email-update .btn{ form.update-email .btn{
margin:0; margin:0;
width:40%; width:40%;
display:inline-block; display:inline-block;

View File

@ -241,7 +241,7 @@ module.exports = function(app) {
if (!req.user) { if (!req.user) {
return res.redirect('/'); return res.redirect('/');
} }
return res.render('account/email-update', { return res.render('account/update-email', {
title: 'Update your Email' title: 'Update your Email'
}); });
} }

View File

@ -54,7 +54,7 @@ block content
p.large-p.text-center p.large-p.text-center
em #{user.email} em #{user.email}
.col-xs-12 .col-xs-12
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/email-update') a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/update-email')
i.fa.fa-envelope i.fa.fa-envelope
| Update my Email | Update my Email
.row .row
@ -100,7 +100,7 @@ block content
p.large-p.text-center p.large-p.text-center
| You don't have an email id associated to this account. | You don't have an email id associated to this account.
.col-xs-12 .col-xs-12
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/email-update') a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/update-email')
i.fa.fa-envelope i.fa.fa-envelope
| Update my Email | Update my Email

View File

@ -8,7 +8,7 @@ block content
span.ion-close-circled#flash-close span.ion-close-circled#flash-close
#flash-content #flash-content
h2.text-center Update your email address here: h2.text-center Update your email address here:
form.form-horizontal.email-update(method='POST', action='/api/users/#{user.id}/update-email', name="updateEmailForm") form.form-horizontal.update-email(method='POST', action='/api/users/#{user.id}/update-email', name="updateEmailForm")
.row .row
.col-sm-6.col-sm-offset-3 .col-sm-6.col-sm-offset-3
input(type='hidden', name='_csrf', value=_csrf) input(type='hidden', name='_csrf', value=_csrf)