Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / fusion / scripts / view-models / workflows / workflow-listing.html
1 <!--
2   ================================================================================
3   eCOMP Portal SDK
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   -->
20 <br/>
21 <div>
22         <div>
23                 <div align="right">
24                         <h3>
25                                 <button ng-click="createWorkflow('lg')" class="btn btn-primary">Create Workflow</button></h3>
26                 </div>
27                 <div>
28                         <form>
29                                 <div class="form-group">
30                                         <input type="text" ng-model="search" placeholder = "Current Workflows - Search one"/>
31                                 </div>
32                         </form>
33                 </div>
34         </div>
35 </div>
36         
37 <!-- <table att-table table-data="tableData" view-per-page="viewPerPage" 
38         current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage" ng-show="workflows.length > 0">
39         <thead  att-table-row type="header"> -->
40
41
42 <table att-table table-data="tableData" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
43     <thead att-table-row type="header"> 
44                 <tr class="info">
45                         <th att-table-header>Id</th>
46                         <th att-table-header>Name</th>
47                         <th>Key</th>
48                         <th>Description</th>
49                         <th>Workflow Server URL</th>
50                         <!-- <th>Suspend Link</th> -->
51                         <th>View</th>
52                         <th>Active</th>
53                         <th>Created </th>
54                         <th>Created By</th>
55                         <th>Action</th>
56                         <th>Schedule</th>                       
57                         <th>Edit</th>
58                         <th>Delete?</th>
59                         
60                         
61                 </tr>
62         </thead>
63           
64
65         <tbody att-table-row type="body">
66                 <tr ng-repeat="workflow in workflows | filter: search">         
67                         <td>{{workflow.id}}</td>
68                         <td>{{workflow.name}}</td>
69                         <td>{{workflow.workflowKey}}</td>
70                         <td>{{workflow.description}}</td>
71                         <td>{{workflow.runLink}}</td>
72                         <td><div ng-click="previewWorkflow(workflow,'lg');" style="font-size:20px;"><a href="javascript:void(0)" class="ion-eye"></a></div></td>                        
73                         <!-- <td>{{workflow.suspendLink}}</td> -->
74                         <td >{{workflow.active}}</td>
75                         <td>{{workflow.created}}</td>
76                         <td>{{workflow.createdBy}}</td>
77                         <td><div ng-show="workflow.active ==='false'" ng-click="activateWorkflow(workflow)" style="font-size:20px;"><a href="javascript:void(0)" class="ion-play"></a></div>
78                         <div ng-show="workflow.active ==='true'" ng-click="suspendWorkflow(workflow)" style="font-size:20px;"><a href="javascript:void(0)" class="ion-pause"></a></div></td>
79                         <td><div ng-click="scheduleWorkflow(workflow);" style="font-size:20px;"><a href="javascript:void(0)" class="ion-ios-time"></a></div></td>                       
80                         <td><div ng-click="updateWorkflow(workflow);" style="font-size:20px;"><a href="javascript:void(0)" class="ion-edit"></a></div></td>
81                         <td><div ng-click="removeWorkflow(workflow);" style="font-size:20px;"><a href="javascript:void(0)" class="ion-trash-b"></a></div></td>
82                 </tr>
83         </tbody>
84 </table>
85