cdb6de9033c93a6dcdb4f5b5c9a60c781e159779
[validation.git] / ui / src / main / webapp / app / BluvalUI / CommittedSubmissions / CommittedSubmissionsTemplate.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 <div id="page-content" class="content" style="padding: 25px;">
17
18     <style>
19 body {
20     font-size: 13px;
21 }
22
23 .box {
24     overflow-x: scroll;
25     overflow-y: scroll;
26 }
27 </style>
28
29     <div class="box">
30         <h1 class="heading-page">Committed Submissions</h1>
31         <div>
32             <button
33                 style="margin-left: 25px; margin-top: 4px; float: right; background-color: #337ab7;"
34                 type="submit" class="btn-alt btn-small"
35                 ng-click="refreshCommittedSubmissions()">Refresh</button>
36         </div>
37         <table ng-table="tableParams" class="table" show-filter="true">
38             <tr ng-repeat="submissionData in $data">
39                 <td title="'Id'" filter="{ submissionId: 'text'}"
40                     sortable="'submissionId'">{{
41                     submissionData.submissionId }}</td>
42                 <td title="'Timeslot'" filter="{ timeslot: 'text'}"
43                     sortable="'timeslot'">Lab: {{
44                     submissionData.timeslot.lab.lab }} Start date and
45                     time: {{ submissionData.timeslot.startDateTime }} <!-- duration(in sec) :
46                                 {{submission.timeslot.duration}}-->
47                 </td>
48                 <td title="'Blueprint Name'">{{
49                     submissionData.validationNexusTestResult.blueprintName
50                     }}</td>
51                 <td title="'Version'">{{
52                     submissionData.validationNexusTestResult.version }}</td>
53                 <td title="'Layer(s)'">{{
54                     getLayer(submissionData.validationNexusTestResult)
55                     }}</td>
56                 <td title="'Optional Test Cases'">{{
57                     submissionData.validationNexusTestResult.optional}}</td>
58                 <td title="'Status'" filter="{ status: 'text'}"
59                     sortable="'status'">{{ submissionData.status }}</td>
60                 <td title="'Nexus URL result'"><a
61                     href="{{getResultUrl(submissionData)}}">{{getResultUrl(submissionData)}}</a></td>
62                 <td title="'Result'">
63                     <button
64                         style="margin-left: 25px; margin-top: 4px; float: right; background-color: #337ab7;"
65                         type="submit" class="btn-alt btn-small"
66                         ng-click="getValidationResults(submissionData);">{{
67                         mapResult(submissionData.validationNexusTestResult)}}</button>
68                 </td>
69             </tr>
70         </table>
71     </div>
72
73 </div>