From c6597d4e37742f5503e246e29602262f72590f40 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch <p.jentsch@uni-bielefeld.de> Date: Thu, 12 Sep 2019 12:05:59 +0200 Subject: [PATCH] Add character counter for corpus form. --- app/templates/main/dashboard.html.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/main/dashboard.html.j2 b/app/templates/main/dashboard.html.j2 index c0f016e0..625b0be6 100644 --- a/app/templates/main/dashboard.html.j2 +++ b/app/templates/main/dashboard.html.j2 @@ -94,7 +94,7 @@ <div class="col s12 m4"> <div class="input-field"> <i class="material-icons prefix">title</i> - {{ create_corpus_form.title() }} + {{ create_corpus_form.title(data_length='32') }} {{ create_corpus_form.title.label }} {% for error in create_corpus_form.title.errors %} <span class="helper-text red-text">{{ error }}</span> @@ -104,7 +104,7 @@ <div class="col s12 m8"> <div class="input-field"> <i class="material-icons prefix">description</i> - {{ create_corpus_form.description() }} + {{ create_corpus_form.description(data_length='255') }} {{ create_corpus_form.description.label }} {% for error in create_corpus_form.description.errors %} <span class="helper-text red-text">{{ error }}</span> -- GitLab