feat: prevent editing of applicant's personal data in booking

This commit is contained in:
Björn Fromme
2025-01-27 18:21:47 +01:00
parent 7fe0734dec
commit c75f069ce0
5 changed files with 108 additions and 53 deletions
+7 -1
View File
@@ -108,7 +108,13 @@
{%- if disabled is defined and disabled == true -%}
{%- set attr = attr|merge({'class': attr.class|default('') ~ ' cursor-not-allowed' }) -%}
{%- endif -%}
{{ parent() }}
{%- if attr.readonly is defined %}
<div class="cursor-not-allowed">
{{ parent() }}
</div>
{% else %}
{{ parent() }}
{% endif %}
{%- if disabled is defined and disabled == true -%}
<input type="hidden" name="{{ form.vars.full_name }}" value="{{ form.vars.value }}">
{%- endif -%}