Merge pull request #6789 from patschi/domain-descr-readonly-when-no-acl

Make domain description field readonly when no ACL
This commit is contained in:
FreddleSpl0it 2025-09-29 11:36:42 +02:00 committed by GitHub
commit e462602ddc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@
<div class="row mb-2" data-acl="{{ acl.domain_desc }}"> <div class="row mb-2" data-acl="{{ acl.domain_desc }}">
<label class="control-label col-sm-2" for="description">{{ lang.edit.description }}</label> <label class="control-label col-sm-2" for="description">{{ lang.edit.description }}</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input type="text" class="form-control" name="description" value="{{ result.description }}"> <input type="text" class="form-control" name="description" value="{{ result.description }}"{% if acl.domain_desc == '0' %} readonly{% endif %}>
</div> </div>
</div> </div>
<div class="row mb-4"> <div class="row mb-4">