Add profile page, fix some redirects

This commit is contained in:
calzoneman 2014-01-20 12:42:20 -06:00
parent fd6b95920a
commit e075d2f95a
3 changed files with 142 additions and 57 deletions

View file

@ -26,11 +26,10 @@ html(lang="en")
.alert.alert-danger.center.messagebox
strong Profile Error
p= profileError
.media
a.pull-left(href="#")
img.media-object(src=profileImage, alt="Profile Image")
.media-body
= profileText
.profile-box(style="position: inherit")
img.profile-image(src=profileImage)
strong= loginName
p= profileText
h3 Edit Profile
form(action="/account/profile", method="post", role="form")
.form-group
@ -38,8 +37,10 @@ html(lang="en")
input#profileimage.form-control(type="text", name="image")
.form-group
label.control-label(for="profiletext") Text
textarea#profiletext.form-control(cols="10")
textarea#profiletext.form-control(cols="10", name="text")= profileText
button.btn.btn-primary.btn-block(type="submit") Save
include footer
mixin footer()
script(type="text/javascript").
$("#profileimage").val("#{profileImage}");