mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
replace deprecated ifequal/ifnotequal with if
This commit is contained in:
parent
e46bb99b3b
commit
6a0d04d300
14 changed files with 74 additions and 74 deletions
|
@ -59,7 +59,7 @@
|
|||
<h5 class="modal-title">{% trans "Edit connection" %}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
{% ifequal compute.type 1 %}
|
||||
{% if compute.type == 1 %}
|
||||
<form method="post" role="form" aria-label="Edit tcp host form">{% csrf_token %}
|
||||
<div class="modal-body">
|
||||
<div class="form-group row">
|
||||
|
@ -105,8 +105,8 @@
|
|||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endifequal %}
|
||||
{% ifequal compute.type 2 %}
|
||||
{% endif %}
|
||||
{% if compute.type == 2 %}
|
||||
<form method="post" role="form" aria-label="Edit ssh host form">{% csrf_token %}
|
||||
<div class="modal-body">
|
||||
<p class="modal-body">{% trans "Need create ssh <a href='https://github.com/retspen/webvirtmgr/wiki/Setup-SSH-Authorization'>authorization key</a>. If you have another SSH port on your server, you can add IP:PORT like '192.168.1.1:2222'." %}</p>
|
||||
|
@ -149,8 +149,8 @@
|
|||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endifequal %}
|
||||
{% ifequal compute.type 3 %}
|
||||
{% endif %}
|
||||
{% if compute.type == 3 %}
|
||||
<form method="post" role="form" aria-label="Edit tls host form">{% csrf_token %}
|
||||
<div class="modal-body">
|
||||
<div class="form-group row">
|
||||
|
@ -197,8 +197,8 @@
|
|||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endifequal %}
|
||||
{% ifequal compute.type 4 %}
|
||||
{% endif %}
|
||||
{% if compute.type == 4 %}
|
||||
<form method="post" role="form" aria-label="Edit/delete host form">{% csrf_token %}
|
||||
<div class="modal-body">
|
||||
<div class="form-group row">
|
||||
|
@ -226,7 +226,7 @@
|
|||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue