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 {
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;

View File

@ -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

View File

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