Fix css on the half-baked admin dashboard

This commit is contained in:
Tim Van Baak 2020-01-15 22:20:25 -08:00
parent 67c802c67f
commit 69eb28208e
3 changed files with 8 additions and 3 deletions

View File

@ -92,6 +92,11 @@ div.citeblock a.phantom {
span.signature { span.signature {
text-align: right; text-align: right;
} }
textarea#admin_config_text {
resize: vertical;
width: 100%;
box-sizing: border-box;
}
@media only screen and (max-width: 816px) { @media only screen and (max-width: 816px) {
div#wrapper { div#wrapper {
padding: 5px; padding: 5px;

View File

@ -7,8 +7,8 @@ import config
import user import user
class DashboardForm(FlaskForm): class DashboardForm(FlaskForm):
admin_config_text = TextAreaField()
submit = SubmitField("Submit") submit = SubmitField("Submit")
text = TextAreaField()
def get_bp(): def get_bp():
"""Create a blueprint for pages outside of a specific lexicon""" """Create a blueprint for pages outside of a specific lexicon"""
@ -34,7 +34,7 @@ def get_bp():
if form.is_submitted(): if form.is_submitted():
return "k" return "k"
else: else:
form.text.data = text form.admin_config_text.data = text
return render_template('home/admin.html', form=form) return render_template('home/admin.html', form=form)
return bp return bp

View File

@ -10,7 +10,7 @@
{% block main %} {% block main %}
<form action="" method="post" novalidate> <form action="" method="post" novalidate>
{{ form.hidden_tag() }} {{ form.hidden_tag() }}
<p>{{ form.text() }}</p> {{ form.admin_config_text() }}
<p>{{ form.submit() }}</p> <p>{{ form.submit() }}</p>
</form> </form>
{% endblock %} {% endblock %}