Use a passable namespace with a default value

This commit is contained in:
László Károlyi 2023-10-22 20:19:42 +02:00
parent c128b51e89
commit 01fef40adc
Signed by: karolyi
GPG key ID: 2DCAF25E55735BFE

View file

@ -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__ -%}