1e4194ce0SYoshie Muranaka<div role="dialog" class="uib-modal__content remote-logging-server__modal"> 2*c86ce3c9SYoshie Muranaka <button type="button" class="btn btn--close float-right" ng-click="$close()"> 3*c86ce3c9SYoshie Muranaka <icon file="icon-close.svg"></icon> 4*c86ce3c9SYoshie Muranaka </button> 5e4194ce0SYoshie Muranaka <div class="modal-header"> 6e4194ce0SYoshie Muranaka <h2 class="modal-title" id="dialog_label">{{activeModalProps.title}}</h2> 7e4194ce0SYoshie Muranaka </div> 8e4194ce0SYoshie Muranaka <form name="form"> 9e4194ce0SYoshie Muranaka <div ng-if="activeModal !== 2" class="modal-body"> 10e4194ce0SYoshie Muranaka <label for="remoteServerIP">Hostname or IP Address</label> 11e4194ce0SYoshie Muranaka <input id="remoteServerIP" type="text" required name="hostname" 12e4194ce0SYoshie Muranaka ng-model="remoteServerForm.hostname" /> 13e4194ce0SYoshie Muranaka <div ng-if="form.hostname.$invalid && form.hostname.$dirty" 14e4194ce0SYoshie Muranaka class="form__validation-message"> 15e4194ce0SYoshie Muranaka <span ng-show="form.hostname.$error.required">Field is required</span> 16e4194ce0SYoshie Muranaka </div> 17e4194ce0SYoshie Muranaka <label for="remoteServerPort">Port</label> 18e4194ce0SYoshie Muranaka <p class="label__helper-text">Value must be between 0 – 65535</p> 19e4194ce0SYoshie Muranaka <input id="remoteServerPort" type="number" required name="port" 20e4194ce0SYoshie Muranaka min="0" max="65535" ng-model="remoteServerForm.port"/> 21e4194ce0SYoshie Muranaka <div ng-if="form.port.$invalid && form.port.$dirty" 22e4194ce0SYoshie Muranaka class="form__validation-message"> 23e4194ce0SYoshie Muranaka <span ng-show="form.port.$error.required">Field is required</span> 24e4194ce0SYoshie Muranaka <span ng-show="form.port.$error.min || form.port.$error.max"> 25e4194ce0SYoshie Muranaka Value must be between 0 – 65535 26e4194ce0SYoshie Muranaka </span> 27e4194ce0SYoshie Muranaka </div> 28e4194ce0SYoshie Muranaka </div> 29e4194ce0SYoshie Muranaka <div ng-if="activeModal === 2" class="modal-body"> 30e4194ce0SYoshie Muranaka <p>Are you sure you want to remove remote logging server 31e4194ce0SYoshie Muranaka {{remoteServer.hostname}}?</p> 32e4194ce0SYoshie Muranaka </div> 33e4194ce0SYoshie Muranaka <div class="modal-footer"> 34*c86ce3c9SYoshie Muranaka <button class="btn btn-secondary" ng-click="$close()" type="button"> 35e4194ce0SYoshie Muranaka Cancel 36e4194ce0SYoshie Muranaka </button> 37*c86ce3c9SYoshie Muranaka <button class="btn btn-primary" type="submit" 38e4194ce0SYoshie Muranaka ng-click="$close(activeModal)" ng-disabled="form.$invalid" 39e4194ce0SYoshie Muranaka ng-class="{'disabled': form.$invalid}"> 40e4194ce0SYoshie Muranaka {{activeModalProps.actionLabel}} 41e4194ce0SYoshie Muranaka </button> 42e4194ce0SYoshie Muranaka </div> 43e4194ce0SYoshie Muranaka </form> 44e4194ce0SYoshie Muranaka</div> 45