From 69eb28208ec5993a20427efc0db19072dcb4aeca Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 15 Jan 2020 22:20:25 -0800 Subject: [PATCH] Fix css on the half-baked admin dashboard --- amanuensis/resources/page.css | 5 +++++ amanuensis/server/home.py | 4 ++-- amanuensis/templates/home/admin.html | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/amanuensis/resources/page.css b/amanuensis/resources/page.css index 3d51f4f..d458252 100644 --- a/amanuensis/resources/page.css +++ b/amanuensis/resources/page.css @@ -92,6 +92,11 @@ div.citeblock a.phantom { span.signature { text-align: right; } +textarea#admin_config_text { + resize: vertical; + width: 100%; + box-sizing: border-box; +} @media only screen and (max-width: 816px) { div#wrapper { padding: 5px; diff --git a/amanuensis/server/home.py b/amanuensis/server/home.py index 7d077b7..6083b29 100644 --- a/amanuensis/server/home.py +++ b/amanuensis/server/home.py @@ -7,8 +7,8 @@ import config import user class DashboardForm(FlaskForm): + admin_config_text = TextAreaField() submit = SubmitField("Submit") - text = TextAreaField() def get_bp(): """Create a blueprint for pages outside of a specific lexicon""" @@ -34,7 +34,7 @@ def get_bp(): if form.is_submitted(): return "k" else: - form.text.data = text + form.admin_config_text.data = text return render_template('home/admin.html', form=form) return bp diff --git a/amanuensis/templates/home/admin.html b/amanuensis/templates/home/admin.html index b265f2f..84f9519 100644 --- a/amanuensis/templates/home/admin.html +++ b/amanuensis/templates/home/admin.html @@ -10,7 +10,7 @@ {% block main %}
{{ form.hidden_tag() }} -

{{ form.text() }}

+ {{ form.admin_config_text() }}

{{ form.submit() }}

{% endblock %}