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