1ff64c54aSGunnar Mills<loader loading="loading"></loader>
2ff64c54aSGunnar Mills<div id="configuration-snmp">
3ff64c54aSGunnar Mills  <div class="row column">
4ff64c54aSGunnar Mills    <h1>SNMP settings</h1>
5ddda4decSbeccabroek    <div class="small-12 snmp_description">
6ddda4decSbeccabroek      Set the Simple Network Management Protocol (SNMP) with a host name or IP address and a port.
7ff64c54aSGunnar Mills    </div>
8ff64c54aSGunnar Mills    <div class="page-header">
9ddda4decSbeccabroek      <h2>Managers</h2>
10ff64c54aSGunnar Mills    </div>
11854fbba1SGunnar Mills  </div>
12ddda4decSbeccabroek  <div class="row column">
13ddda4decSbeccabroek    <div class="small-8">
14ddda4decSbeccabroek      <div class="row column manager_group">
15ddda4decSbeccabroek        <div class="small-5 snmp__address">
16*1ffa209eSDerick Montague          <h3 id="host-name-ip-label">Host name or IP Address</h3>
17854fbba1SGunnar Mills        </div>
18ddda4decSbeccabroek        <div class="small-5 snmp__port label">
19*1ffa209eSDerick Montague          <h3 id="port-label">Port</h3>
20854fbba1SGunnar Mills        </div>
21ff64c54aSGunnar Mills      </div>
22ddda4decSbeccabroek      <div class="row column manager_group empty" ng-if="managers.length < 1">
23ddda4decSbeccabroek        No managers have been added yet.
24ddda4decSbeccabroek      </div>
25ddda4decSbeccabroek      <form id="snmp__form" name="snmp__form" novalidate>
26ddda4decSbeccabroek        <div class="row column manager_group" ng-form="manager_group" ng-repeat="manager in managers track by $index">
27ddda4decSbeccabroek          <div class="small-11 snmp__fields">
28ddda4decSbeccabroek            <div class="row column">
29ddda4decSbeccabroek              <div class="small-10">
30ddda4decSbeccabroek                <div class="row column">
31*1ffa209eSDerick Montague                  <div id="snmp-manager{{$index+1}}-port-description" class="small-offset-6 small-6 help__text snmp__port">
32ddda4decSbeccabroek                    Value must be between 0-65,535
33ddda4decSbeccabroek                  </div>
34ddda4decSbeccabroek                </div>
35*1ffa209eSDerick Montague                <fieldset>
36ddda4decSbeccabroek                  <div class="row column" ng-class="{'submitted':submitted}">
37ddda4decSbeccabroek                    <div class="small-6 snmp__address">
38ddda4decSbeccabroek                      <input id="snmp-manager{{$index+1}}-address"
39ddda4decSbeccabroek                            name="snmp-manager{{$index+1}}-address"
40ddda4decSbeccabroek                            type="text"
41ddda4decSbeccabroek                            ng-change="manager.updateAddress=true"
42ddda4decSbeccabroek                            ng-model="manager.address"
43*1ffa209eSDerick Montague                            required
44*1ffa209eSDerick Montague                            aria-labeledby="host-name-ip-label"/>
45ddda4decSbeccabroek                      <div ng-messages="manager_group['snmp-manager'+($index+1)+'-address'].$error" class="form-error" ng-class="{'visible': manager_group['snmp-manager'+($index+1)+'-address'].$touched || submitted}">
46ddda4decSbeccabroek                        <p ng-message="required" role="alert">Field is required</p>
47ddda4decSbeccabroek                      </div>
48ddda4decSbeccabroek                    </div>
49ddda4decSbeccabroek                    <div class="small-6 snmp__port">
50ddda4decSbeccabroek                      <input id="snmp-manager{{$index+1}}-port"
51ddda4decSbeccabroek                            name="snmp-manager{{$index+1}}-port"
52ddda4decSbeccabroek                            type="number"
53ddda4decSbeccabroek                            min="0"
54ddda4decSbeccabroek                            max="65535"
55ddda4decSbeccabroek                            step="1"
56ddda4decSbeccabroek                            ng-change="manager.updatePort=true"
57ddda4decSbeccabroek                            ng-model="manager.port"
58*1ffa209eSDerick Montague                            required
59*1ffa209eSDerick Montague                            aria-labeledby="port-label"
60*1ffa209eSDerick Montague                            aria-describedby="snmp-manager{{$index+1}}-port-description"/>
61ddda4decSbeccabroek                      <div ng-messages="manager_group['snmp-manager'+($index+1)+'-port'].$error" class="form-error" ng-class="{'visible': manager_group['snmp-manager'+($index+1)+'-port'].$touched || submitted}">
62ddda4decSbeccabroek                        <div ng-message-exp="['min', 'max', 'number', 'step']">
63ddda4decSbeccabroek                          Invalid format
64ddda4decSbeccabroek                        </div>
65ddda4decSbeccabroek                        <p ng-message="required" role="alert">Field is required</p>
66ddda4decSbeccabroek                      </div>
67ddda4decSbeccabroek                    </div>
68ddda4decSbeccabroek                  </div>
69*1ffa209eSDerick Montague                </fieldset>
70ddda4decSbeccabroek              </div>
71ddda4decSbeccabroek              <div class="small-2 align-self-center snmp__buttons">
72ddda4decSbeccabroek                <button class="edit_button" type="button">
73ddda4decSbeccabroek                  <img src="../../assets/images/icon-edit-blue.svg" alt="Edit">
74ddda4decSbeccabroek                </button>
75ddda4decSbeccabroek              </div>
76ddda4decSbeccabroek            </div>
77ddda4decSbeccabroek          </div>
78ddda4decSbeccabroek          <div class="small-1 align-self-center snmp__buttons trash">
79ddda4decSbeccabroek            <button class="trash_button" type="button" ng-click="removeSNMPManager($index)">
80ddda4decSbeccabroek              <img src="../../assets/images/icon-trashcan-blue.svg" alt="Remove">
81ddda4decSbeccabroek            </button>
82ddda4decSbeccabroek          </div>
83ddda4decSbeccabroek        </div>
84ddda4decSbeccabroek        <div class="row column">
85ddda4decSbeccabroek          <button class="btn-add" type="button" ng-click="submitted=false; addNewSNMPManager();"><img class="add__icon" src="../../assets/images/icon-plus.svg" alt=""/> Add manager</button>
86854fbba1SGunnar Mills        </div>
87ff64c54aSGunnar Mills      </form>
88ff64c54aSGunnar Mills    </div>
89ddda4decSbeccabroek  </div>
90ddda4decSbeccabroek  <div class="row column">
91ddda4decSbeccabroek    <div class="snmp__submit-wrapper">
92ddda4decSbeccabroek      <button type="button" ng-click="submitted=true;  snmp__form.$valid && setSNMP();" class="btn-primary inline">Save settings</button>
93ddda4decSbeccabroek      <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button>
94ddda4decSbeccabroek    </div>
95ddda4decSbeccabroek  </div>
96ddda4decSbeccabroek</div>