From 9d3a4345591a84ea1e8f588ce75ea2ed786ab6bc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Sep 2022 16:57:06 +0100 Subject: [PATCH 1/7] Tidying --- blog.py | 2 +- webapp_profile.py | 70 ++++++++++++++++++++--------------------------- webapp_utils.py | 4 ++- 3 files changed, 34 insertions(+), 42 deletions(-) diff --git a/blog.py b/blog.py index fde6de7c5..2ba055066 100644 --- a/blog.py +++ b/blog.py @@ -895,7 +895,7 @@ def html_edit_blog(media_instance: bool, translate: {}, content_str = content_str.replace('

', '').replace('

', '\n') edit_blog_form += \ - edit_text_area(placeholder_message, 'message', content_str, + edit_text_area(placeholder_message, None, 'message', content_str, message_box_height, '', True) edit_blog_form += date_and_location if not media_instance: diff --git a/webapp_profile.py b/webapp_profile.py index f88a231f9..75e659566 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -1423,7 +1423,7 @@ def _html_edit_profile_instance(base_dir: str, translate: {}, 'instanceDescriptionShort', instance_description_short) instance_str += '
\n' instance_str += \ - edit_text_area(translate['Instance Description'], + edit_text_area(translate['Instance Description'], None, 'instanceDescription', instance_description, 200, '', True) instance_str += \ @@ -1493,23 +1493,20 @@ def _html_edit_profile_instance(base_dir: str, translate: {}, instance_str += end_edit_section() # Role assignments section + role_assign_str = \ + begin_edit_section(translate['Role Assignment']) + \ + '