Add character counter for corpus form.

This commit is contained in:
Patrick Jentsch 2019-09-12 12:05:59 +02:00
parent 2368cfb1f9
commit c6597d4e37

View File

@ -94,7 +94,7 @@
<div class="col s12 m4"> <div class="col s12 m4">
<div class="input-field"> <div class="input-field">
<i class="material-icons prefix">title</i> <i class="material-icons prefix">title</i>
{{ create_corpus_form.title() }} {{ create_corpus_form.title(data_length='32') }}
{{ create_corpus_form.title.label }} {{ create_corpus_form.title.label }}
{% for error in create_corpus_form.title.errors %} {% for error in create_corpus_form.title.errors %}
<span class="helper-text red-text">{{ error }}</span> <span class="helper-text red-text">{{ error }}</span>
@ -104,7 +104,7 @@
<div class="col s12 m8"> <div class="col s12 m8">
<div class="input-field"> <div class="input-field">
<i class="material-icons prefix">description</i> <i class="material-icons prefix">description</i>
{{ create_corpus_form.description() }} {{ create_corpus_form.description(data_length='255') }}
{{ create_corpus_form.description.label }} {{ create_corpus_form.description.label }}
{% for error in create_corpus_form.description.errors %} {% for error in create_corpus_form.description.errors %}
<span class="helper-text red-text">{{ error }}</span> <span class="helper-text red-text">{{ error }}</span>