fix tag fields not loading pre-set value correctly
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user