Fix css on the half-baked admin dashboard
This commit is contained in:
parent
67c802c67f
commit
69eb28208e
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue