Commit 07925aa8 by Csók Tamás

vm-detail.html: Added support for the Client using Connect button for js disabled browsers

parent 2acbda88
...@@ -121,12 +121,15 @@ ...@@ -121,12 +121,15 @@
<i class="fa fa-copy" title="{% trans "Select all" %}"></i> <i class="fa fa-copy" title="{% trans "Select all" %}"></i>
</span> </span>
</div> </div>
<div id="dashboard-vm-details-connect"> <div id="dashboard-vm-details-connect" class="operation-wrapper">
<form method="POST" action="{% if instance.get_connect_uri %}{{ instance.get_connect_uri}}{% endif %}" target="_blank"> <form method="{% if not client_download %}GET{% else %} POST{% endif %}" action="{% if not client_download %}{% url "dashboard.views.client-check" %}{% else %}{% if instance.get_connect_uri %}{{ instance.get_connect_uri}}{% endif %}{% endif %}">
<button id="dashboard-vm-details-connect-button" type="submit" class="btn btn-xs btn-default" {% if instance.status != "RUNNING" or not instance.get_connect_uri %}disabled{% endif %} title="{% trans "Connect via the CIRCLE Client" %}"> <button id="dashboard-vm-details-connect-button" type="submit" class="btn btn-xs btn-default {% if not client_download %}operation{% endif %}" href="{% url "dashboard.views.client-check" %}?vm={{ instance.pk }}" {% if instance.status != "RUNNING" or not instance.get_connect_uri %}disabled{% endif %} title="{% trans "Connect via the CIRCLE Client" %}">
<i class="fa fa-external-link"></i> {% trans "Connect" %} <i class="fa fa-external-link"></i> {% trans "Connect" %}
</button> </button>
</form> {% if not client_download %}
<input type="hidden" name="vm" value="{{ instance.pk }}" />
{% endif %}
</form>
</div> </div>
</div> </div>
<div class="col-md-8" id="vm-detail-pane"> <div class="col-md-8" id="vm-detail-pane">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment