Use a passable namespace with a default value
This commit is contained in:
parent
c128b51e89
commit
01fef40adc
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{% macro render_form_simple(form, wrapper_class) -%}
|
||||
<section class="{{ PROJECT_NAMESPACE }}-form-simple-wrapper {{ wrapper_class }}">
|
||||
{% macro render_form_simple(form, wrapper_class, namespace='ktools') -%}
|
||||
<section class="{{ namespace }}-form-simple-wrapper {{ wrapper_class }}">
|
||||
{% if form.errors.__all__ -%}
|
||||
<div class="global-error alert alert-danger" role="alert">
|
||||
{% for error in form.errors.__all__ -%}
|
||||
|
|
Loading…
Reference in a new issue