updates to profile setting page for consistency with Venice
This commit is contained in:
@@ -11,6 +11,7 @@ formName: "profform"
|
||||
menuSelector: "nochange"
|
||||
title: "Edit Your Profile"
|
||||
action: "/profile"
|
||||
options: "suppresslogin"
|
||||
fields:
|
||||
- type: "hidden"
|
||||
name: "tgt"
|
||||
|
||||
@@ -220,6 +220,7 @@ func ProfilePhotoForm(ctxt ui.AmContext) (string, any, error) {
|
||||
ctxt.VarMap().Set("target", target)
|
||||
ctxt.VarMap().Set("photo_url", userPhotoURL(ci))
|
||||
ctxt.VarMap().Set("amsterdam_pageTitle", "Upload User Photo")
|
||||
ctxt.VarMap().Set("amsterdam_suppressLogin", true)
|
||||
return "framed_template", "photo_upload.jet", nil
|
||||
}
|
||||
return ui.ErrorPage(ctxt, err)
|
||||
@@ -273,6 +274,7 @@ func ProfilePhoto(ctxt ui.AmContext) (string, any, error) {
|
||||
ctxt.VarMap().Set("target", target)
|
||||
ctxt.VarMap().Set("photo_url", userPhotoURL(ci))
|
||||
ctxt.VarMap().Set("amsterdam_pageTitle", "Upload User Photo")
|
||||
ctxt.VarMap().Set("amsterdam_suppressLogin", true)
|
||||
return "framed_template", "photo_upload.jet", nil
|
||||
}
|
||||
if ctxt.FormFieldIsSet("remove") {
|
||||
|
||||
Reference in New Issue
Block a user