From bbbf94169e0dddd88790c0907729a5f257f5ef5b Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Thu, 3 Jun 2021 23:45:31 +0530 Subject: added form helper --- app/templates/_formhelpers.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/templates/_formhelpers.html (limited to 'app/templates') diff --git a/app/templates/_formhelpers.html b/app/templates/_formhelpers.html new file mode 100644 index 0000000..1aa63d0 --- /dev/null +++ b/app/templates/_formhelpers.html @@ -0,0 +1,12 @@ +{% macro render_field(field) %} +
{{ field.label }} +
{{ field(class="form-control",**kwargs)|safe }} + {% if field.errors %} + + {% endif %} +
+{% endmacro %} \ No newline at end of file -- cgit v1.2.3