forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
userProfile.jade
75 lines (70 loc) · 5.15 KB
/
userProfile.jade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
doctype html
html(lang='en')
head
title _title_
meta(charset='utf-8')
meta(name='description', content='')
meta(name='keywords', content='')
meta(name='viewport' content='width=device-width, initial-scale=1.0')
link(rel='icon', type='image/x-icon', href='/assets/public/_favicon_')
link(rel='stylesheet', href='https://code.getmdl.io/1.2.1/material.min.css')
link(rel='stylesheet', href='https://fonts.googleapis.com/icon?family=Material+Icons')
link(rel='stylesheet', href='/assets/public/css/userProfile.css', type='text/css')
script(src='//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js')
script(defer='', src='https://code.getmdl.io/1.2.1/material.min.js')
style.
.mdl-textfield__input {
border-bottom: 1px solid _textColor_ !important;
font-size: 13px !important;
}
body(style='background: _bgColor_;color:_textColor_;')
.mdl-layout.mdl-js-layout.mdl-layout--fixed-header
header.mdl-layout__header.mdl-shadow--6dp(style= 'background: _navColor_; height: auto; min-width: 100%; padding-bottom: 5px; width: 100%;')
.mdl-layout__header-row
a(href='/#/' style='color: _textColor_; text-decoration:none; margin-left: -50px;')
i(class='material-icons', style='display: block;margin-bottom: auto;margin-top: auto; margin-right: 10px;') arrow_back
span(style='margin-right: 20px;')
| Back
a(href='/#/')
// Logo
a(href='/#/')
img(src='assets/public/images/JuiceShop_Logo.png', style='max-height: 60px; width: auto;')
// Title
span.mdl-layout-title(style='font: 500 20px/32px Roboto,"Helvetica Neue",sans-serif;')
| _title_
main.mdl-layout__content(style=' display: block; margin-left: auto; margin-right:auto;')
section.section--center.mdl-grid.mdl-grid--no-spacing
.mdl-card#card.mdl-cell.mdl-cell--12-col.mdl-shadow--6dp(style='height: auto; min-width: 300px; width: 45%; display: block; margin-left: auto; margin-right:auto; background: _primLight_; margin-bottom: 50px; margin-top: 110px;')
.mdl-card__supporting-text.mdl-grid.mdl-grid--no-spacing
h3.mdl-cell.mdl-cell--12-col(style='color: _textColor_;') User Profile
.mdl-cell.mdl-cell--6-col-desktop.mdl-cell--12-col-tablet.mdl-cell--12-col-phone
img.img-rounded(src='assets/public/images/uploads/' + profileImage, alt='Cinque Terre', width='80%', height='236')
form(action='/profile/image/file' , style='margin-top:10%; width: 80%;', method='post', enctype='multipart/form-data')
.form-group
input(type='file', accept='image/*', name='file', style='color: _textColor_;')
button.mdl-button.mdl-js-button.mdl-button--raised.mdl-js-ripple-effect(type='submit', style='background-color:_navColor_; color: _textColor_; margin-top: 3%;') Upload Picture
.breakLine(style='margin-top: 3%; margin-bottom: 3%; width: 80%;')
.line
div
.textOnLine(style='color: _textColor_;') or
.line
div
form(action='/profile/image/url' , style='margin-top:5%;', method='post')
.form-group
.mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
input#url.form-control.mdl-textfield__input(type='text', name='imageUrl', style='color: _textColor_;')
label.mdl-textfield__label(for='url', style='color: _textColor_;') Gravatar Url:
button(id='submitUrl', type='submit', style='background-color:_navColor_; color: _textColor_;').mdl-button.mdl-js-button.mdl-button--raised.mdl-js-ripple-effect Link Gravatar
p(style='margin-bottom:10%;')
.mdl-cell.mdl-cell--6-col-desktop.mdl-cell--12-col-tablet.mdl-cell--12-col-phone
form(action='/profile', method='post')
.form-group
.mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
input#username.form-control.mdl-textfield__input(type='text', name='username', value='#{username}',style='color: _textColor_;')
label.mdl-textfield__label(for='username', style='color: _textColor_;') Username:
.form-group
.mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
input#email.form-control.mdl-textfield__input(type='email', name='email', value='#{email}', readonly=true, style='color: _textColor_;')
label.mdl-textfield__label(for='email', style='color: _textColor_;') Email:
button(id='submit', type='submit', style='background-color:_navColor_; color: _textColor_;').mdl-button.mdl-js-button.mdl-button--raised.mdl-js-ripple-effect Set Username
p(style='margin-bottom:10%;')