| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <div class="row-fluid" ng-controller="QDR.SettingsController"> |
| <div class="login container" ng-hide="connecting"> |
| <div class="row" id="dispatch-login-container"> |
| <div class="connect-column"> |
| <div class="alert alert-success"> |
| <p> |
| Enter the address and port of a <strong><a href="http://qpid.apache.org/components/dispatch-router/" target="_blank">Qpid Dispatch Router</a></strong> to connect.. |
| </p> |
| |
| <p> |
| The port should be a websockets <==> tcp proxy. |
| </p> |
| |
| <p> |
| When Autostart is checked, you will be automatically logged in to the router the next time you start the console. |
| </p> |
| |
| </div> |
| </div> |
| <div class="connect-column connect-form"> |
| <form class="hawtio-form form-horizontal no-bottom-margin" novalidate ng-submit="connect()" name="settings"> |
| <fieldset> |
| <div class="spacer"></div> |
| <div class="control-group" ng-show="true"> |
| <label class="strong control-label">Address: </label> |
| <div class="controls"> |
| <input tabindex="1" type="text" ng-model="formEntity.address" placeholder="localhost" name="address" autofocus="autofocus" class="ng-pristine ng-valid ng-valid-required"></div> |
| </div> |
| <div class="control-group" ng-show="true"> |
| <label tabindex="-1" class="control-label" title="Ports to connect to, by default 5673">Port: </label> |
| <div class="controls"> |
| <input tabindex="2" posint type="number" placeholder="5673" tooltip="Ports to connect to, by default 5673" ng-model="formEntity.port" name="port" title="Ports to connect to, by default 5673"> |
| <span ng-show="settings.port.$error.range">Must be 1 through 65535</span> |
| </div> |
| </div> |
| <div class="control-group" ng-show="true"> |
| <label tabindex="-1" class="control-label" title="Whether or not the connection should be started as soon as you log into hawtio">Autostart: </label> |
| <div class="controls"> |
| <input tabindex="3" type="checkbox" tooltip="Whether or not the connection should be started as soon as you log into hawtio" ng-model="formEntity.autostart" name="autostart" title="Whether or not the connection should be started as soon as you log into hawtio" |
| class="ng-scope ng-pristine ng-valid"></div> |
| </div> |
| <input tabindex="-1" type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"> |
| <p></p> |
| <div> |
| <button type="submit" tabindex="4" class="btn btn-primary pull-right" ng-disabled="settings.$invalid">{{buttonText()}}</button> |
| <!-- <button tabindex="-1" class="btn btn-secondary pull-right" ng-click="connect1()">Debug</button> --> |
| </div> |
| </fieldset> |
| </form> |
| </div> |
| </div> |
| </div> |
| |
| <div class="centered" ng-show="connecting"> |
| <i class="icon-spin icon-spinner icon-4x"></i> |
| <p>Please wait, connecting now...</p> |
| </div> |
| <div class="centered" ng-show="connectionError"> |
| <p>There was a connection error: {{connectionErrorText}}</p> |
| </div> |
| |
| </div> |