Major account page redesign
This commit is contained in:
@ -234,6 +234,8 @@ label-info {
|
|||||||
|
|
||||||
.nav-tabs {
|
.nav-tabs {
|
||||||
border-bottom: 1px solid #007aff;
|
border-bottom: 1px solid #007aff;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
> li {
|
> li {
|
||||||
> a {
|
> a {
|
||||||
color: #555;
|
color: #555;
|
||||||
@ -676,6 +678,10 @@ label-info {
|
|||||||
|
|
||||||
|
|
||||||
// Forms =================================================================
|
// Forms =================================================================
|
||||||
|
.form-horizontal .control-label {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
transition: all 0.4s;
|
transition: all 0.4s;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -848,3 +854,8 @@ input[type="radio"]:checked + span:after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.fileinput-filename {
|
||||||
|
vertical-align: super;
|
||||||
|
}
|
||||||
|
@ -1,28 +1,77 @@
|
|||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
h3 Account Management
|
h2 Account Settings
|
||||||
form(role='form', method='POST')
|
ul.nav.nav-tabs
|
||||||
.form-group
|
li.active
|
||||||
.row
|
a(href='#basic', data-toggle='tab') Basic Info
|
||||||
.col-xs-6.col-sm-6.col-md-6
|
li
|
||||||
label(for='firstName') First Name
|
a(href='#settings', data-toggle='tab') Settings
|
||||||
input.form-control(type='text', name='firstName', id='firstName', value='#{user.firstName}')
|
.tab-content
|
||||||
.col-xs-6.col-sm-6.col-md-6
|
#basic.tab-pane.fade.active.in
|
||||||
label(for='lastName') Last Name
|
form.form-horizontal(role='form', method='POST')
|
||||||
input.form-control(type='text', name='lastName', id='lastName', value='#{user.lastName}')
|
.form-group
|
||||||
.form-group
|
label.col-sm-2.control-label(for='name') Name
|
||||||
label(for='email') Email
|
.col-sm-4
|
||||||
input.form-control(type='email', name='email', id='email', value='#{user.email}')
|
input.form-control(type='text', name='name', id='name')
|
||||||
.form-group
|
.form-group
|
||||||
label(for='password') Password
|
label.col-sm-2.control-label(for='email') Email
|
||||||
input.form-control(type='password', name='password', id='password', placeholder='Password')
|
.col-sm-4
|
||||||
.form-group
|
input.form-control(type='email', name='email', id='email')
|
||||||
label(for='confirmPassword') Confirm Password
|
.form-group
|
||||||
input.form-control(type='password', id='confirmPassword', placeholder='Confirm Password')
|
label.col-sm-2.control-label(for='location') Location
|
||||||
.form-group
|
.col-sm-4
|
||||||
button.btn.btn.btn-info(type='submit') Update
|
input.form-control(type='text', name='location', id='location')
|
||||||
|
.form-group
|
||||||
|
label.col-sm-2.control-label(for='website') Website
|
||||||
|
.col-sm-4
|
||||||
|
input.form-control(type='text', name='website', id='website')
|
||||||
|
.form-group
|
||||||
|
label.col-sm-2.control-label(for='twitter') Twitter
|
||||||
|
.col-sm-4
|
||||||
|
input.form-control(type='text', name='twitter', id='twitter')
|
||||||
|
.form-group
|
||||||
|
label.col-sm-2.control-label(for='linkedin') LinkedIn URL
|
||||||
|
.col-sm-4
|
||||||
|
input.form-control(type='text', name='linkedin', id='linkedin')
|
||||||
|
.form-group
|
||||||
|
label.col-sm-2.control-label(for='profilePicture') Profile picture
|
||||||
|
.col-sm-8
|
||||||
|
.btn.btn-danger.google Use Google
|
||||||
|
.btn.btn-primary.facebook Use Facebook
|
||||||
|
.btn.btn-info.twitter Use Twitter
|
||||||
|
.fileinput.fileinput-new(data-provides='fileinput')
|
||||||
|
span.btn.btn-default.btn-file
|
||||||
|
span.fileinput-new Select File
|
||||||
|
span.fileinput-exists Change
|
||||||
|
input(type='file', name='...')
|
||||||
|
span.fileinput-filename
|
||||||
|
a.close.fileinput-exists(href='#', data-dismiss='fileinput', style='float: none;') ×
|
||||||
|
img(width=100, height=100, src='http://www.faithlineprotestants.org/wp-content/uploads/2010/12/facebook-default-no-profile-pic.jpg')
|
||||||
|
.form-group
|
||||||
|
button.btn.btn.btn-primary(type='submit') Update Profile
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#settings.tab-pane.fade
|
||||||
|
.form-group
|
||||||
|
label(for='password') Password
|
||||||
|
input.form-control(type='password', name='password', id='password', placeholder='Password')
|
||||||
|
.form-group
|
||||||
|
label(for='confirmPassword') Confirm Password
|
||||||
|
input.form-control(type='password', id='confirmPassword', placeholder='Confirm Password')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if messages.length
|
if messages.length
|
||||||
.alert.alert-danger
|
.alert.alert-danger
|
||||||
for message in messages
|
for message in messages
|
||||||
div= message
|
div= message
|
||||||
|
|
||||||
|
script
|
||||||
|
$('.fileinput').fileinput()
|
Reference in New Issue
Block a user