<aclass="btn btn-default"href="{% url "dashboard.views.detail"pk=instance.pk%}"data-dismiss="modal">{% trans "Cancel" %}</a>
<aclass="btn btn-info"href="http://circlecloud.org/client/download"data-dismiss="modal">{% trans "Download the Client" %}</a>
<buttondata-dismiss="modal"id="client-check-button"type="submit"class="btn btn-success"title="{% trans "IdownloadedandinstalledtheclientandIwanttoconnectusingit.Thischoicewillbesavedtoyourcompuer"%}">
<iclass="fa fa-external-link"></i> {% trans "I have the Client installed" %}
</button>
<inputname="connect-uri"type="hidden"value="{% if instance.get_connect_uri %}{{ instance.get_connect_uri}}{% endif %}"/>
<inputid="connect-uri"name="connect-uri"type="hidden"value="{% if instance.get_connect_uri %}{{ instance.get_connect_uri}}{% endif %}"/>
<inputname="vm"type="hidden"value="{% if instance.get_connect_uri %}{{ instance.pk}}{% endif %}"/>
</form>
</div>
\ No newline at end of file
<script>
addOnClickToInput('client-check-button',clientInstalledAction,'{% if instance.get_connect_uri %}{{ instance.get_connect_uri}}{% endif %}');
<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 {% 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"%}">
<aid="dashboard-vm-details-connect-button"class="btn btn-xs btn-default{% if not client_download %} operation{% endif %}{% if instance.status != "RUNNING"ornotinstance.get_connect_uri%}disabled{%endif%}"{%ifclient_download%}target="_blank"{%endif%}href="{% if not client_download %}{% url "dashboard.views.client-check"%}?vm={{instance.pk}}{%else%}{{instance.get_connect_uri}}{%endif%}"title="{% trans "ConnectviatheCIRCLEClient"%}">
<iclass="fa fa-external-link"></i> {% trans "Connect" %}