public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
Make domain description field readonly when no ACL
20f04ecf
data/web/templates/edit/domain.twig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Diff
diff --git a/data/web/templates/edit/domain.twig b/data/web/templates/edit/domain.twig
index 774b3099..0f90080b 100644
--- a/data/web/templates/edit/domain.twig
+++ b/data/web/templates/edit/domain.twig
@@ -39,7 +39,7 @@
<div class="row mb-2" data-acl="{{ acl.domain_desc }}">
<label class="control-label col-sm-2" for="description">{{ lang.edit.description }}</label>
<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 class="row mb-4">