aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/lifecyclemanagement.html
blob: e0a9d2ad6806351bddccda7b438c143e55349305 (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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!--

    Copyright 2016-2017 ZTE Corporation.

    Licensed 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="templatemo-content-wrapper" ng-controller="lcmCtrl" ng-init="init()">
  <div class="templatemo-content">
    <h1 style="margin-bottom:40px">Life Cycle Manager</h1>
    <!--ul class="nav nav-tabs nav-justified vmapp-margin"-->
    <ul class="nav nav-tabs nav-justified vmapp-margin" style="border-bottom-color:#66B3FF">
        <li class="active basic">
            <a href="#" style="margin-left:1px" onclick="showService();" id="serviceTab" data-toggle="tab">
                <span>Services</span>
            </a>
        </li>
        <li style="padding-right:2px;" class="para">
            <a href="#vnf-ns-onboard" onclick="hideService();" data-toggle="tab" id="vnfNsTab">
                <span>Vnf/NS Packages</span>
            </a>
        </li>
    </ul>

    <div id="vnf-ns-onboard">
      <table id="onbaordTable" class="table table-striped table-hover table-bordered">
        <thead>
          <tr>
            <th>Name</th>
            <th>Type</th>
            <th>Action</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>vBras</td>
            <td>VNF</td>
            <td>
              <button class="btn btn-primary onboard-button">Onboard</button>
            </td>
          </tr>
          <tr>
            <td>network service</td>
            <td>NS</td>
            <td>
              <button class="btn btn-primary onboard-button">Onboard</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>

    <div id="service-table">
      <!--button id="createService" style="margin-top: 20px" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span></button-->
      <button id="createService" style="font-size:20px" ng-click="openCreateServiceDialog()">
        <span class="glyphicon glyphicon-plus" style="margin-top:20px;width:80px;margin-left:20px"></span>
      </button>
      <table class="table table-striped table-hover table-bordered" style="margin:2px">
        <thead>
          <tr>
            <th>Service Instance Id</th>
            <th>Service Name</th>
            <th>Service Type</th>
            <th>Action</th>
          </tr>
        </thead>
        <tbody id="bb">
          <tr>
            <td>123</td>
            <td>VoLTE Use Case 1</td>
            <td>E2E Service</td>
            <td><a href="#" class="btn btn-primary">Delete</a></td>
          </tr>
          <tr>
            <td>456</td>
            <td>VoLTE Use Case 2</td>
            <td>E2E Service</td>
            <td><a href="#" class="btn btn-primary">Delete</a></td>
          </tr>
          <tr>
            <td>789</td>
            <td>VoLTE Use Case 3</td>
            <td>E2E Service</td>
            <td><a href="#" class="btn btn-primary">Delete</a></td>
          </tr>
        </tbody>
      </table>
      <ul class="pagination pull-right">
        <li class="disabled"><a href="#">&laquo;</a></li>
        <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
        <li><a href="#">2 <span class="sr-only">(current)</span></a></li>
        <li><a href="#">3 <span class="sr-only">(current)</span></a></li>
        <li><a href="#">4 <span class="sr-only">(current)</span></a></li>
        <li><a href="#">5 <span class="sr-only">(current)</span></a></li>
        <li><a href="#">&raquo;</a></li>
      </ul>
    </div>

</div>

<!-- Modal -->
<div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">
          <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
        </button>
        <h4 class="modal-title" id="myModalLabel">Are you sure you want to sign out?</h4>
      </div>
      <div class="modal-footer">
        <a href="sign-in.html" class="btn btn-primary">Yes</a>
        <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
      </div>
    </div>
  </div>
</div>

<!--div id="createServiceDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="content">
        <div class="modal-header" style="margin-bottom: 15px;">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
          <h4 class="modal-title" id="myModalLabel">
            <span>Create</span>
          </h4>
        </div>
        <form class="form-horizontal" role="form" id="neForm">
          <div id="wizard">
            <div class="modal-body">
              <ul class="nav nav-tabs nav-justified vmapp-margin">
                <li class="active basic">
                  <a href="#basicTab" style="margin-left:1px;" onclick="showBasic();" id="basicTab" data-toggle="tab">
                    <span>Base</span>
                  </a>
                </li>
                <li style="padding-right:2px;" class="para">
                  <a href="#" onclick="hideBasic();" data-toggle="tab">
                    <span>Template Parameters</span>
                  </a>
                </li>
              </ul>

              <div id="basicInfoTab">
                <div class="mT15 form-group" style="margin-left:25px;" ms-class="has-error:vmAppDialog.name==''">
                  <label class="col-sm-3 control-label">
                    <span>Service Name</span>
                    <span class="required">*</span>
                  </label>
                  <div class="col-sm-7">
                    <input type="text" id="svcName" name="svcName" class="form-control" placeholder="Service Name" maxlength="256"/>
                  </div>
                </div>
                <div class="mT15 form-group" style="margin-left:25px;" ms-class="has-error:vmAppDialog.name==''">
                  <label class="col-sm-3 control-label">
                    <span>Service Description</span>
                    <span class="required">*</span>
                  </label>
                  <div class="col-sm-7">
                    <input type="text" id="svcDesc" name="" class="form-control" placeholder="Service Description" maxlength="256"/>
                  </div>
                </div>
                <div class="form-group" style="margin-left:25px;margin-bottom:15px;" ms-class="has-error:vmAppDialog.name==''">
                  <label class="col-sm-3 control-label">
                    <span>Service Template</span>
                    <span class="required">*</span>
                  </label>
                  <div class="col-sm-7">
                    <select class="form-control" style="padding-top: 0px;padding-bottom: 0px;" id="svcTempl" name="svcTempl" onchange="serviceTemplateChanged();">
                      <option value="select">--select--</option>
                      <option value="1.1">1.1</option>
                      <option value="1.2">1.2</option>
                    </select>
                  </div>
                </div>
              </div>

              <div id="templateParameterTab"></div>
            </div>
            <div class="modal-footer">
              <button type="button" style="width:80px;" class="btn SDBtn" data-dismiss="modal" aria-hidden="true" id="startToCreateService">
                <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
              </button>
              <button type="button" style="width:80px;" class="btn button-previous SDBtn" data-dismiss="modal">
                <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div-->

<div id="vnf-ns-onboard-dialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="content">
        <div class="modal-header" style="margin-bottom: 15px;">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
          <h4 class="modal-title" id="myModalLabel">
            <span>Select VIM Onboard Image</span>
          </h4>
        </div>
        <form class="form-horizontal" role="form" id="neForm">
          <div id="wizard">
            <div class="modal-body">
              <div id="vnf-ns-vim-table"></div>
            </div>
            <div class="modal-footer">
              <button type="button" style="width:80px;" class="btn SDBtn" data-dismiss="modal" aria-hidden="true" id="startToCreateService">
                <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
              </button>
              <button type="button" style="width:80px;" class="btn button-previous SDBtn" data-dismiss="modal">
                <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>