mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
instance.is_template checkbox enabled for user.is_staff by @honz801
This commit is contained in:
parent
74eb8004d7
commit
f42a910d9b
1 changed files with 6 additions and 1 deletions
|
@ -1308,7 +1308,12 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">{% trans "Is template" %}</label>
|
<label class="col-sm-3 control-label">{% trans "Is template" %}</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input type="checkbox" name="is_template" value="True" id="is_template" {% if instance.is_template %}checked{% endif %} {% if not request.user.is_superuser %}disabled{% endif %}>
|
<input type="checkbox"
|
||||||
|
name="is_template"
|
||||||
|
value="True"
|
||||||
|
id="is_template"
|
||||||
|
{% if instance.is_template %}checked{% endif %}
|
||||||
|
{% if not request.user.is_superuser and not request.user.is_staff %}disabled{% endif %}>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group ">
|
<div class="form-group ">
|
||||||
|
|
Loading…
Reference in a new issue