1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 16:17:37 +00:00

- packages updated

- porting to bootstrap 4
This commit is contained in:
amodolo
2018-07-19 08:30:52 +02:00
parent 08c2240169
commit 6afbd99bf6
129 changed files with 9844 additions and 10423 deletions

View File

@@ -1,13 +1,14 @@
extends ../layout
block content
.col-sm-8.col-sm-offset-2
.col-sm-8.offset-sm-2
form(method='POST')
legend Forgot Password
hr
input(type='hidden', name='_csrf', value=_csrf)
.form-group
p Enter your email address below and we will send you password reset instructions.
label.control-label(for='email') Email
label.col-form-label.font-weight-bold(for='email') Email
input.form-control(type='email', name='email', id='email', placeholder='Email', autofocus, required)
.form-group
button.btn.btn-primary(type='submit')

View File

@@ -3,27 +3,29 @@ extends ../layout
block content
.page-header
h3 Sign in
hr
form.form-horizontal(method='POST')
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label.col-sm-3.control-label(for='email') Email
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='email') Email
.col-sm-7
input.form-control(type='email', name='email', id='email', placeholder='Email', autofocus, required)
.form-group
label.col-sm-3.control-label(for='password') Password
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='password') Password
.col-sm-7
input.form-control(type='password', name='password', id='password', placeholder='Password', required)
.form-group
.col-sm-offset-3.col-sm-7
.form-group.row.justify-content-md-center
.offset-sm-3.col-sm-7
button.col-sm-3.btn.btn-primary(type='submit')
i.fa.fa-user
| Login
a.btn.btn-link(href='/forgot') Forgot your password?
.form-group
.col-sm-offset-3.col-sm-7
.form-group.row.justify-content-md-center
.offset-sm-3.col-sm-7
hr
.form-group
.col-sm-offset-3.col-sm-7
.form-group.row.justify-content-md-center
.offset-sm-3.col-sm-7
a.btn.btn-block.btn-facebook.btn-social(href='/auth/facebook')
i.fa.fa-facebook
| Sign in with Facebook

View File

@@ -3,20 +3,21 @@ extends ../layout
block content
.page-header
h3 Profile Information
hr
form.form-horizontal(action='/account/profile', method='POST')
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label.col-sm-3.control-label(for='email') Email
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='email') Email
.col-sm-7
input.form-control(type='email', name='email', id='email', value=user.email)
.form-group
label.col-sm-3.control-label(for='name') Name
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='name') Name
.col-sm-7
input.form-control(type='text', name='name', id='name', value=user.profile.name)
.form-group
label.col-sm-3.control-label Gender
.col-sm-6
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold Gender
.col-sm-7
label.radio.col-sm-3
input(type='radio', checked=user.profile.gender=='male', name='gender', value='male', data-toggle='radio')
span Male
@@ -26,60 +27,63 @@ block content
label.radio.col-sm-3
input(type='radio', checked=user.profile.gender=='other', name='gender', value='other', data-toggle='radio')
span Other
.form-group
label.col-sm-3.control-label(for='location') Location
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='location') Location
.col-sm-7
input.form-control(type='text', name='location', id='location', value=user.profile.location)
.form-group
label.col-sm-3.control-label(for='website') Website
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='website') Website
.col-sm-7
input.form-control(type='text', name='website', id='website', value=user.profile.website)
.form-group
label.col-sm-3.control-label Gravatar
.col-sm-4
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold Gravatar
.col-sm-7
img(src=user.gravatar(), class='profile', width='100', height='100', alt=((user.profile.name || user.email || user.id)))
.form-group
.col-sm-offset-3.col-sm-4
.form-group.row.justify-content-md-center
.col-sm-4
button.btn.btn.btn-primary(type='submit')
i.fa.fa-pencil
| Update Profile
.page-header
h3 Change Password
hr
form.form-horizontal(action='/account/password', method='POST')
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label.col-sm-3.control-label(for='password') New Password
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='password') New Password
.col-sm-7
input.form-control(type='password', name='password', id='password')
.form-group
label.col-sm-3.control-label(for='confirmPassword') Confirm Password
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='confirmPassword') Confirm Password
.col-sm-7
input.form-control(type='password', name='confirmPassword', id='confirmPassword')
.form-group
.col-sm-offset-3.col-sm-4
.form-group.row.justify-content-md-center
.col-sm-4
button.btn.btn-primary(type='submit')
i.fa.fa-lock
| Change Password
.page-header
h3 Delete Account
hr
form.form-horizontal(action='/account/delete', method='POST')
.form-group
p.col-sm-offset-3.col-sm-4 You can delete your account, but keep in mind this action is irreversible.
.form-group.row.justify-content-md-center
p.offset-sm-3.col-sm-7 You can delete your account, but keep in mind this action is irreversible.
input(type='hidden', name='_csrf', value=_csrf)
.col-sm-offset-3.col-sm-4
.col-sm-4
button.btn.btn-danger(type='submit')
i.fa.fa-trash
| Delete my account
.page-header
h3 Linked Accounts
hr
.form-horizontal
.form-group
.col-sm-offset-3.col-sm-4
.form-group.row.justify-content-md-center
.offset-sm-3.col-sm-7
if user.facebook
p: a.text-danger(href='/account/unlink/facebook') Unlink your Facebook account
else

View File

@@ -3,22 +3,23 @@ extends ../layout
block content
.page-header
h3 Sign up
hr
form.form-horizontal(id='signup-form', method='POST')
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label.col-sm-3.control-label(for='email') Email
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='email') Email
.col-sm-7
input.form-control(type='email', name='email', id='email', placeholder='Email', autofocus, required)
.form-group
label.col-sm-3.control-label(for='password') Password
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='password') Password
.col-sm-7
input.form-control(type='password', name='password', id='password', placeholder='Password', required)
.form-group
label.col-sm-3.control-label(for='confirmPassword') Confirm Password
.form-group.row.justify-content-md-center
label.col-sm-3.col-form-label.text-right.font-weight-bold(for='confirmPassword') Confirm Password
.col-sm-7
input.form-control(type='password', name='confirmPassword', id='confirmPassword', placeholder='Confirm Password', required)
.form-group
.col-sm-offset-3.col-sm-7
.form-group.row.justify-content-md-center
.offset-sm-3.col-sm-7
button.btn.btn-success(type='submit')
i.fa.fa-user-plus
| Signup