added red asterix to required input field

This commit is contained in:
2022-04-26 07:56:47 +02:00
parent b4eadda3b3
commit a6a433807c
8 changed files with 20 additions and 12 deletions

View File

@@ -7,7 +7,7 @@
<div class="error">{{ error }}</div>
{% endfor %}
<div class="form-group">
<label for="title">{{ form.title.label }}</label>
<label class="required-field" for="title">{{ form.title.label }}</label>
{{ form.title(class_='form-control') }}
</div>
@@ -15,7 +15,7 @@
<div class="error">{{ error }}</div>
{% endfor %}
<div class="form-group">
<label for="body">{{ form.body.label }}</label>
<label class="required-field" for="body">{{ form.body.label }}</label>
{{ form.body(class_='form-control', cols="35", rows="20") }}
</div>
@@ -23,7 +23,7 @@
<div class="error">{{ error }}</div>
{% endfor %}
<div class="form-group">
<label for="title">{{ form.topic.label }}</label>
<label class="required-field" for="topic">{{ form.topic.label }}</label>
{{ form.topic(class_='form-control') }}
</div>
@@ -31,7 +31,7 @@
<div class="text-danger">{{ error }}</div>
{% endfor %}
<div class="form-group">
<label for="title">{{ form.tag.label }}</label>
<label class="required-field" for="tag">{{ form.tag.label }}</label>
{{ form.tag(class_='form-control') }}
</div>