diff --git a/myriad/manage.py b/myriad/manage.py index 4064c76..9da4ddc 100644 --- a/myriad/manage.py +++ b/myriad/manage.py @@ -94,6 +94,18 @@ def edit(mid): edit_location = "page_settings" + if "section_titles" in request.form: + groups_title = request.form["groups_title"] + blog_title = request.form["blog_title"] + icons_title = request.form["icons_title"] + blinkies_title = request.form["blinkies_title"] + stamps_title = request.form["stamps_title"] + + db.execute("UPDATE member SET groups_title=(?), blog_title=(?), icons_title=(?), blinkies_title=(?), stamps_title=(?) WHERE id=(?)",(groups_title, blog_title, icons_title, blinkies_title, stamps_title, mid)) + db.commit() + + edit_location = "page_settings" + if "file" in request.files: # here we are just saving the uploaded file to the icons folder. # we're not going hard on security because we expect there to only be 1 admin diff --git a/myriad/static/style.css b/myriad/static/style.css index fd17ac0..2aa96a5 100644 --- a/myriad/static/style.css +++ b/myriad/static/style.css @@ -213,7 +213,10 @@ form textarea{ max-height:300px; overflow-y:scroll; } - +.image-sections{ + margin-top:20px; + margin-bottom:20px; +} #mobile-nav{ diff --git a/myriad/templates/manage/edit.html b/myriad/templates/manage/edit.html index 345449c..fda9bdc 100644 --- a/myriad/templates/manage/edit.html +++ b/myriad/templates/manage/edit.html @@ -34,8 +34,8 @@
Select which sections to show on this member's public page
+Customize section titles. Leave blank to hide the heading bar for that section altogether.
+ + {% if unjoined_groups or joined_groups %}