UI initial implementation.
[validation.git] / ui / src / main / webapp / views / committedSubmissions.html
1 <!--
2 Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8        http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 -->
16
17 <!DOCTYPE script PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
18 <html ng-app="BlueprintValidationUIManagement">
19 <head>
20 <style>
21 .formfield * {
22         vertical-align: top;
23 }
24
25 .pagination {
26         display: inline-block;
27         float: right;
28 }
29
30 .pagination li {
31         list-style-type: none;
32         color: white;
33         float: left;
34         padding: 8px 16px;
35         text-decoration: none;
36         transition: background-color .3s;
37         border: 1px solid #ddd;
38 }
39
40 .pagination li.active {
41         background-color: #DCDCDC;
42         color: white;
43         border: 1px solid #ddd;
44 }
45
46 input[type="file"] {
47         display: inline-block;
48 }
49
50 .md-backdrop {
51         display: none;
52 }
53 /*.md-sidenav-right .md-theme-indigo, .md-sidenav-right .nav-theme {
54          background-color: #cccccc;
55          }*/
56 /*.md-sidenav-backdrop md-opaque{
57          opacity:0;
58          }*/
59 md-backdrop.md-opaque.md-default-theme, md-backdrop.md-opaque {
60         background-color: rgba(0, 0, 0, 0);
61 }
62
63 md-content.md-default-theme, md-content {
64         background-color: #cccccc;
65 }
66
67 md-sidenav.md-default-theme, md-sidenav {
68         background-color: #cccccc;
69 }
70
71 .vertical-menu {
72         width: 200px;
73         height: 150px;
74         overflow-y: auto;
75 }
76
77 input[type=text], select, textarea {
78         width: 40%;
79         padding: 3px;
80         border: 0.5px solid #ccc;
81         border-radius: 4px;
82         box-sizing: border-box;
83         margin-top: 3px;
84         margin-bottom: 3px;
85         resize: vertical;
86 }
87
88 pre {
89         font-size: 15px;
90         color: black;
91 }
92 </style>
93 </head>
94 <body ng-controller="AECCommittedSubmissionsController">
95  <div id="akrainocontent"
96   style="padding-left: 20px; padding-right: 20px; float: left; width: 90%;">
97   <div>
98    <h1>Committed Submissions</h1>
99   </div>
100   <!-- <label>Select Submissions: </label> -->
101   <br>
102   <div class="selectStyle">
103    <select class="exampleTable" style="width: 200px; height: 40px;">
104     <option value="">All submissions</option>
105    </select>
106   </div>
107   <div id="commandTable" style="padding-bottom: 1px; padding-top: 30px">
108    <form>
109     <div class="form-group">
110      <div class="input-group">
111       <div class="input-group-addon">
112        <i class="fa fa-search"> </i>
113       </div>
114       <input type="text" style="width: 300px" class="form-control"
115        placeholder="Search Committed Submissions" ng-model="q">
116       <div style="float: right;">
117        <a
118         style="padding-left: 5px; font-size: 16px; cursor: pointer; margin-top: 20px; color: #4d4d4d"
119         ng-click="refreshCommittedSubmissions()"> Refresh </a>
120        <button class="refreshbutton" style="margin-left: 5px;"
121         ng-click="deleteSubmissions()">Delete selected
122         submissions</button>
123        <button class="refreshbutton" style="margin-left: 5px;">Delete
124         all submissions</button>
125       </div>
126      </div>
127     </div>
128    </form>
129   </div>
130   <table cellspacing="0" cellpadding="10" class="siteStatusTable">
131    <thead>
132     <tr>
133      <th>&nbsp;</th>
134      <th>Id&nbsp;</th>
135      <th>Status&nbsp;</th>
136      <th>Blueprint&nbsp;</th>
137      <th>Version</th>
138      <th>Layer&nbsp;</th>
139      <th>Desired Timeslot&nbsp;</th>
140      <th>Url of result&nbsp;</th>
141     </tr>
142    </thead>
143    <tbody>
144     <tr class="border_bottom" ng-repeat="submission in submissions">
145      <td><input type="checkbox" name="name1" ng-model="temp"
146       ng-change="modifySubmissionIdList(submission.submissionId)" />&nbsp;</td>
147      <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
148       submission.submissionId }}</td>
149      <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
150       submission.submissionStatus }}</td>
151      <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
152       submission.blueprintInstance.blueprint.blueprintName }}</td>
153      <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
154       submission.blueprintInstance.version }}</td>
155      <td style="padding-left: 10px; font-size: 15px; width: 13%;">
156       <a href="#" data-toggle="tooltip"
157       title="{{submission.blueprintInstance.layer_description }}">{{
158        submission.blueprintInstance.layer }}</a>
159      </td>
160      <td style="padding-left: 10px; font-size: 15px; width: 13%;">Lab:
161       {{ submission.blueprintInstance.timeslot.lab }} Start date and
162       time: {{ submission.blueprintInstance.timeslot.startDateTime }}
163       duration(in sec) :
164       {{submission.blueprintInstance.timeslot.duration}}</td>
165      <td style="padding-left: 10px; font-size: 15px; width: 13%;">
166       <a href="{{submission.nexusResultUrl }}">{{
167        submission.nexusResultUrl }}</a>
168      </td>
169     </tr>
170    </tbody>
171   </table>
172   <p></p>
173   <div class="pagination">
174    <ul>
175     <li ng-class="{disabled: currentPage == 0}"><a href
176      ng-click="prevPage()"> Prev </a></li>
177     <li ng-repeat="n in range(pagedItems.length)"
178      ng-class="{active: n == currentPage}" ng-click="setPage()"><a
179      href ng-bind="n + 1">1 </a></li>
180     <li ng-class="{disabled: currentPage == pagedItems.length - 1}">
181      <a href ng-click="nextPage()">Next </a>
182     </li>
183    </ul>
184   </div>
185  </div>
186
187  <script>
188         $(document).ready(function(){
189                 $('[data-toggle="tooltip"]').tooltip(); 
190         });
191         </script>
192
193 </body>
194
195
196 </html>