2013-12-27 04:38:35 +00:00
|
|
|
doctype html
|
|
|
|
html(lang="en")
|
|
|
|
head
|
|
|
|
include head
|
|
|
|
mixin head()
|
|
|
|
body
|
|
|
|
#wrap
|
|
|
|
nav.navbar.navbar-inverse.navbar-fixed-top(role="navigation")
|
|
|
|
include nav
|
|
|
|
mixin navheader()
|
|
|
|
#nav-collapsible.collapse.navbar-collapse
|
|
|
|
ul.nav.navbar-nav
|
|
|
|
mixin navdefaultlinks("/account/profile")
|
|
|
|
mixin navloginlogout("/account/profile")
|
|
|
|
section#mainpage
|
|
|
|
.container
|
|
|
|
if !loggedIn
|
|
|
|
.col-lg-6.col-lg-offset-3.col-md-6.col-md-offset-3
|
|
|
|
.alert.alert-danger.messagebox.center
|
|
|
|
strong Authorization Required
|
|
|
|
p You must be <a href="/login">logged in</a> to view this page.
|
|
|
|
else
|
|
|
|
.col-lg-6.col-lg-offset-3.col-md-6.col-md-offset-3
|
|
|
|
h3 Profile
|
|
|
|
if profileError
|
|
|
|
.alert.alert-danger.center.messagebox
|
|
|
|
strong Profile Error
|
|
|
|
p= profileError
|
2014-01-20 18:42:20 +00:00
|
|
|
.profile-box(style="position: inherit")
|
|
|
|
img.profile-image(src=profileImage)
|
|
|
|
strong= loginName
|
|
|
|
p= profileText
|
2013-12-27 04:38:35 +00:00
|
|
|
h3 Edit Profile
|
|
|
|
form(action="/account/profile", method="post", role="form")
|
|
|
|
.form-group
|
|
|
|
label.control-label(for="profileimage") Image
|
|
|
|
input#profileimage.form-control(type="text", name="image")
|
|
|
|
.form-group
|
|
|
|
label.control-label(for="profiletext") Text
|
2014-01-20 18:42:20 +00:00
|
|
|
textarea#profiletext.form-control(cols="10", name="text")= profileText
|
2013-12-27 04:38:35 +00:00
|
|
|
button.btn.btn-primary.btn-block(type="submit") Save
|
|
|
|
|
|
|
|
include footer
|
|
|
|
mixin footer()
|
2014-01-20 18:42:20 +00:00
|
|
|
script(type="text/javascript").
|
|
|
|
$("#profileimage").val("#{profileImage}");
|