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