Fix broken form validation for main circle

This commit is contained in:
Jonas Schäfer
2021-01-29 09:27:30 +01:00
parent 4044e857bc
commit e5c5bbfbb4
2 changed files with 20 additions and 19 deletions

View File

@@ -9,6 +9,7 @@
<form method="POST">
{{- form.csrf_token -}}
{%- if target_circle.id_ == "default" -%}
<input type="hidden" name="{{ form.name.name }}" value="{{ form.name.data }}">{#- -#}
<div class="box hint form layout-expanded">
<header>{% trans %}This circle cannot be modified{% endtrans %}</header>
<p>{% trans %}This circle is managed automatically and cannot be removed or renamed.{% endtrans %}</p>