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 {
|
||||
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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue