fix tag fields not loading pre-set value correctly

This commit is contained in:
2019-12-30 00:38:57 +01:00
parent 23931b1620
commit 8e5185f643
5 changed files with 51 additions and 39 deletions
+6 -1
View File
@@ -7,6 +7,9 @@
{% block content -%}
<form action="/add" method="POST" class="Form">
<div class="Row indented">
<h1>New Record</h1>
</div>
{%- for field in fields %}
<!-- {{ field.key }} -->
<div class="Row">
@@ -40,6 +43,8 @@
{%- endif -%}
</div>
{%- endfor %}
<button type="submit">Add</button>
<div class="Row indented">
<button type="submit">Add</button>
</div>
</form>
{%- endblock content %}
+10
View File
@@ -6,11 +6,21 @@ html, textarea, select {
font-family: "IBM Plex", "DejaVu Sans", "Helvetica", sans-serif;
}
.Form {
display: block;
width: 900px;
margin: 0 auto;
}
.Form .Row {
display: flex;
padding: .25rem;
}
.Form .Row.indented {
padding-left: 10.25rem;
}
input[type="text"],
input[type="number"],
textarea,