Fix template conditional syntax

#7
This commit is contained in:
Arjan H
2020-11-08 08:04:28 +01:00
parent a84f14e3f6
commit 9561d20006

View File

@@ -50,7 +50,7 @@
</div>
<div class="form-group">
<label for="ou">Org. Unit (optional):</label>
<input class="form-control" type="text" id="ou" name="ou" value="{{ .OrgUnit }}" {{ if (ne .Organization "") and (not .IsRoot) }}readonly{{ end }}>
<input class="form-control" type="text" id="ou" name="ou" value="{{ .OrgUnit }}" {{ if and (ne .Organization "") (not .IsRoot) }}readonly{{ end }}>
{{ with .Errors.OrgUnit }}
<span class="error">{{ . }}</span>
{{ end }}