blob: 3de252371dafc9f94a6647cede56b6686843f5d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
<!--
To Do
construct default name based on UNIs and COS
display EVC params when clicked
changed currently hardcoded widths (150) of input fields/dd's to be set by a class
update config file based on watch (already have hit issue), rather than wait
update available cos list when new cos added (low priority)
-->
<!-- List of existing EPLs -->
<div class="primary-lable ">Ethernet Private Line Services</div>
<div class="epl-list">
<div class="list-item choosable"
ng-repeat="epl in eplList track by $index"
ng-class="{'selected-item-idle' : $index === selectedEplIdx &&
!eplActionInProgress(),
'selected-item-update' : $index === selectedEplIdx &&
eplUpdateInProgress(),
'selected-item-delete' : $index === selectedEplIdx &&
eplDelInProgress() }"
ng-click="onEplClick($index)">
{{ epl.id }}
</div>
</div>
<!-- Action Icons (add/mod/del) -->
<div class = "action-icon-container">
<span class="action-icon glyphicon glyphicon-plus"
ng-click="onAddEpl()"
ng-class="{'action' : eplAddInProgress()}">
</span>
<span class="action-icon glyphicon glyphicon-pencil"
ng-click="onUpdateEpl()"
ng-class="{'action' : eplUpdateInProgress()}">
</span>
<span class="action-icon glyphicon glyphicon-minus"
ng-click="onDelEpl()"
ng-class="{'action' : eplDelInProgress()}">
</span>
</div>
<!-- Data for EPL selected / being acted on -->
<div class="epl-info-contaier">
<form role="form" ng-submit="onEplInputSubmit()">
<!-- Name -->
<div class="data-row">
<div class="label-col">Name:</div>
<div class="data-col" ng-show="showEplName()">
<span class="data-item">
{{ eplList[selectedEplIdx].id }}
</span>
</div>
<div class="data-col" ng-show="showEplNameInput()">
<input class="data-input" name="id"
style="width:150"
type="text" ng-required="showEplInputs()"
ng-model="eplToEdit.id">
</div>
</div>
<!-- Class of servce -->
<div class="data-row">
<div class="label-col">Service level</div>
<div class="data-col" ng-show="showEplValues()">
<span class="data-item">
{{ eplList[selectedEplIdx].cos }}</span>
</div>
<div class="data-col" ng-show="showEplInputs()">
<select class="dd-input"
style="width:150"
name="cos Id"
ng-required="showEplInputs()"
ng-model="eplToEdit.cos"
>
<option ng-repeat="cos in availableCosIds"
value="{{ cos }}"
ng-selected="{{cos == eplToEdit.cos}}"
>
{{ cos }}
</option>
</select>
</div>
</div>
<!-- UNI 1 -->
<div class="data-row">
<div class="label-col">UNI 1</div>
<div class="data-col" ng-show="showEplValues()">
<span class="data-item">
{{ eplList[selectedEplIdx].uniHostIpList[0] }} 
( {{ eplList[selectedEplIdx].custAddressList[0] }} )
</span>
</div>
<div class="data-col" ng-show="showEplInputs()">
<select class="dd-input"
style="width:150"
name="uni 1"
ng-required="showEplInputs()"
ng-model="eplToEdit.uni1Selected"
ng-options="uni.ip + ' ( ' + uni.address + ' )' for uni in availableUnis"
>
</option>
</select>
</div>
</div>
<!-- UNI 2 -->
<div class="data-row">
<div class="label-col">UNI 2</div>
<div class="data-col" ng-show="showEplValues()">
<span class="data-item">
{{ eplList[selectedEplIdx].uniHostIpList[1] }} 
( {{ eplList[selectedEplIdx].custAddressList[1] }} )
</span>
</div>
<div class="data-col" ng-show="showEplInputs()">
<select class="dd-input"
style="width:150"
name="uni 1"
ng-required="showEplInputs()"
ng-model="eplToEdit.uni2Selected"
ng-options="uni.ip + ' ( ' + uni.address + ' )' for uni in availableUnis"
>
</option>
</select>
</div>
</div>
<!-- Evc -->
<div class="data-row" >
<div class="label-col" ng-hide="eplAddInProgress()">Assoc Evc:</div>
<div class="data-col">
<span class="data-item" ng-hide="eplAddInProgress()">
{{ eplList[selectedEplIdx].evcId }}
</span>
</div>
</div>
<!-- Action Buttons -->
<div class="warning-container">
 <span class="warning" ng-show="eplNameConflict()">[Please Enter Unique Name]   </span>
<span class="warning" ng-show="uniConflict()">[UNI-1 and UNI-2 must be different]   </span>
<span class="warning" ng-show="cosConflict()">[Must create SL before creating EPL]   </span>
</div>
<div class="button-container">
<button type="submit"
class="btn btn-sm my-btn-addon"
<div ng-class="{'btn-success' : eplAddInProgress(),
'btn-warning' : eplUpdateInProgress(),
'btn-danger' : eplDelInProgress()}"
ng-disabled="!activateEplActionButton()"
ng-show="showEplActionButton()")>
{{ eplActionButtonText }}</button>
</div>
<!-- Debug -->
<!--
<div>
</div>
-->
</form>
</div>
|