<formmethod="POST"action="{% if instance.get_connect_uri %}{{ instance.get_connect_uri}}{% endif %}"target="_blank">
<formmethod="{% if not client_download %}GET{% else %} POST{% endif %}"action="{% if not client_download %}{% url "dashboard.views.client-check"%}{%else%}{%ifinstance.get_connect_uri%}{{instance.get_connect_uri}}{%endif%}{%endif%}">
<buttonid="dashboard-vm-details-connect-button"type="submit"class="btn btn-xs btn-default"{%ifinstance.status!="RUNNING"ornotinstance.get_connect_uri%}disabled{%endif%}title="{% trans "ConnectviatheCIRCLEClient"%}">
<buttonid="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}}"{%ifinstance.status!="RUNNING"ornotinstance.get_connect_uri%}disabled{%endif%}title="{% trans "ConnectviatheCIRCLEClient"%}">
<iclass="fa fa-external-link"></i> {% trans "Connect" %}
<iclass="fa fa-external-link"></i> {% trans "Connect" %}