aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/view-models/createInstanceServiceModels.htm
blob: da249c2cc99a17669cf6cbd0909cc1a20395f2b7 (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
<!--
  ============LICENSE_START=======================================================
  VID
  ================================================================================
  Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
  ================================================================================
  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.
  ============LICENSE_END=========================================================
  -->

<link rel="stylesheet" type="text/css" href="app/vid/styles/serviceModels.css" />
<link rel="stylesheet" type="text/css" href="app/vid/styles/buttons.css" />

<div popup-window class="popupContents" ngx-show="{{popup.isTablePopUpVisible}}" ng-cloak>
	<div ng-include="'app/vid/scripts/view-models/previousVersion.htm'"/>
</div>
<div popup-window class="popupContents" ngx-show="{{popup.isVisible}}" ng-cloak>
	<div ng-include="'app/vid/scripts/view-models/creationDialog.htm'"/>
</div>
<div >

	<span class="statusLine" ng-class="{true:'smcVisible', false:'smcHidden'}[isSpinnerVisible]">
			<img src="app/vid/images/spinner.gif"></img>
			</span>
			<span class="statusLine" ng-class="{true:'progVisible', false:'progHidden'}[isProgressVisible]">
			<label>Status:</label><span class="status"><span ng-show="error"><font color='red'><b>Error: </b></font></span>{{status}}</span>
		</span>
	<br><br>
	
	
	<table class="create-instance-service ">
		
		<tr>
				<td >
				<div class="fn-ebz-container">
					<label  class="fn-ebz-text-label" >Subscriber Name :</label>
				</div>
				</td>
				<td style="width:80%" nowrap>
					<div class="fn-ebz-container">
					<textarea style="height: 33px; width: 100%; border: none; resize: none;  overflow: hidden; background-color: #ddd; outline: none;" ng-model="createSubscriberName" data-tests-id="selectedSubscriberName">{{createSubscriberName}}</textarea>
						
					</div>
				</td>
	 		
			</tr>
			<tr>
				<td >
				<div class="fn-ebz-container">	
					<label  class="fn-ebz-text-label" >Service Type :</label>
				</div>
				</td>
				<td style="width:80%" nowrap>
					<div class="fn-ebz-container">
					<textarea style="height: 33px; width: 100%; border: none; resize: none;  overflow: hidden; background-color: #ddd; outline: none;" ng-model="serviceTypeName" data-tests-id="selectedServiceTypeName">{{serviceTypeName}}</textarea>
						
					</div>
				</td>
	 		
			</tr>
			 
    </table>			
	
   	<div class="fn-ebz-container">
		         Filter:
		          <input class="fn-ebz-text" type="text" data-tests-id="browseFilter" ng-model="searchString" size="20" style="width: 250px;">
	</div>

	<!-- <h1 class="heading1" style="margin-top:20px;">Browse SDC Service Models</h1> -->
	<div style="margin-top:30px" ng-init="getAaiServiceModelsList();">
		
		<table data-tests-id="services-list" att-table table-data="services" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
		    <thead  att-table-row type="header">
				<tr>
					<th att-table-header key="action">Action</th>
					<th att-table-header key="serviceInstanceName">Service Name</th>
					<th att-table-header key="serviceDescription">Service Description</th>
					<th att-table-header key="serviceType">Service Type</th>
		            <th att-table-header key="serviceUuid">Service UUID</th>
		            <th att-table-header key="serviceInvariantUuid">Service Invariant UUID</th>
		            <th att-table-header key="serviceVersion">Service Version</th>
		            <th att-table-header key="actions">Action</th>
		        </tr>
		    </thead>
		    <tbody att-table-row type="body" row-repeat="service in services">
		       <tr>
		        	<td att-table-body ><button type=button ng-click="deployService(service,true)" data-tests-id="deploy-{{service['extra-properties']['extra-property'][1]['property-value']}}" att-button btn-type="primary" size="small">Deploy</button></td>
	            	<td att-table-body ng-bind="service['extra-properties']['extra-property'][2]['property-value']"></td>
	            	<td att-table-body ng-bind="service['extra-properties']['extra-property'][0]['property-value']"></td>
	            	<td att-table-body ng-bind="service['extra-properties']['extra-property'][3]['property-value']"></td>
	            	<td att-table-body ng-bind="service['extra-properties']['extra-property'][1]['property-value']"></td>
	            	<td att-table-body ng-bind="service['extra-properties']['extra-property'][4]['property-value']"></td>
	            	<td att-table-body ng-bind="service['extra-properties']['extra-property'][6]['property-value']"></td>
	            	<td att-table-body ng-show="service['extra-properties']['extra-property'][6]['property-value'] > '1.0' ">
	            		<div class="clickable-text previous-versions-button"
						   ng-click="loadPreviousVersionData(service['extra-properties']['extra-property'][6]['property-value'],service['extra-properties']['extra-property'][4]['property-value'])">
	            			Previous Versions
	            		</div>
	            	</td>
	            	<td att-table-body ng-show="service['extra-properties']['extra-property'][6]['property-value'] <= '1.0' ">&nbsp;</td>
		        </tr>
		    </tbody>	  
		</table>
		<div >	
			<center><button type="submit" class="btn btn-primary" size="small" ng-click="cancelCreateSIType();">Cancel</button></center>
		</div>
		<table width='100%'>
			<tr>
					<td width='33%' valign='middle'>
						<span style="cursor: pointer" ng-if="currentPage>1"><button att-button size="small" ng-click="prevPage();">&lt; prev page</button></span>
					</td>
					<td width='33%' valign='middle'>
						Jump to page:
		          		<input class="fn-ebz-text" type="text" ng-model="currentPage" size="5" style="width: 47px;">
		    			Results per page: <span style="cursor: pointer" ng-click="viewPerPage = 10" ng-style="viewPerPage === 10 && {'textDecoration':'underline','text-color':'black'}">10</span> 
	    				| <span style="cursor: pointer" ng-click="viewPerPage = 25" ng-style="viewPerPage === 25 && {'textDecoration':'underline','text-color':'black'}">25</span> 
	    				| <span style="cursor: pointer" ng-click="viewPerPage = 50" ng-style="viewPerPage === 50 && {'textDecoration':'underline','text-color':'black'}">50</span> 
	    			</td>
	    			<td width='34%' align='right' valign='middle'>
	    			 	<span style="cursor: pointer" ng-if="currentPage<totalPage"><button att-button size="small" ng-click="nextPage();">next page &gt;</button></span>
					</td>
			</tr>
		</table>
		
	</div>
	</div>