-
Notifications
You must be signed in to change notification settings - Fork 21
/
usecase.html
executable file
·99 lines (89 loc) · 4.67 KB
/
usecase.html
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
<!-- scenarioo-client
Copyright (C) 2014, scenarioo.org Development Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<sc-breadcrumb></sc-breadcrumb>
<h2 class="sc-pageTitle">{{useCase.description}}</h2>
<div class="row sc-space-top sc-space-bottom">
<div class="col-lg-3">
<div class="input-group">
<input type="text" class="ng-pristine ng-valid tableSearch form-control" data-toggle="tooltip"
title="type words separated by spaces to search for" ng-model="table.search.searchTerm"
placeholder="Search scenario..."/>
<span class="input-group-btn">
<button type="button" ng-click="resetSearchField()" class="btn btn-default">reset</button>
</span>
</div>
</div>
<div class="col-lg-9">
<sc-meta-data-button class="pull-right" linking-variable="useCaseShowMetadata" local-storage-key="usecase" ></sc-meta-data-button>
</div>
</div>
<sc-meta-data-panel linking-variable="useCaseShowMetadata">
<div>
<table class="table table-bordered scenario-table" sc-navigator-table="filtered">
<thead>
<tr>
<th sc-sortable-column="status">Status</th>
<th sc-sortable-column="name">Scenario name</th>
<th>Actions</th>
<th>Description</th>
<th ng-repeat="property in propertiesToShow" sc-sortable-column="details.properties.{{property}}">
{{property | scHumanReadable}}
</th>
<th sc-sortable-column="calculatedData.numberOfSteps"># Steps</th>
</tr>
</thead>
<tbody>
<tr ng-class="{'selected':$index==selectedRowIndex}" ng-click="goToScenario(useCase.name, scenarioSummary.scenario.name)"
class="link"
ng-repeat="scenarioSummary in filtered=(scenarios | scFilterArray: table.search.searchTerm | orderBy: table.sort.column: table.sort.reverse)">
<td>
<span class="label state" ng-class="getStatusStyleClass(scenarioSummary.scenario.status)">{{scenarioSummary.scenario.status}}</span>
</td>
<td>
{{scenarioSummary.scenario.name | scHumanReadable }}
<span ng-repeat="label in scenarioSummary.scenario.labels.labels" class="label label-info sc-label" ng-style="getLabelStyle(label)">{{label}}</span>
</td>
<td>
<a><i class="icon-list-ul icon-with-padding" tooltip="Go to scenario overview"
tooltip-placement="bottom"></i></a>
<a ng-click="goToFirstStep(useCase.name, scenarioSummary.scenario.name)" tooltip="Go to first step"
tooltip-placement="bottom"><i class="icon-tablet icon-with-padding"></i></a>
</td>
<td>{{scenarioSummary.scenario.description}}</td>
<td ng-repeat="property in propertiesToShow">{{scenarioSummary.scenario.details[property]}}</td>
<td>{{scenarioSummary.numberOfSteps}}</td>
</tr>
</tbody>
</table>
</div>
<div>
<!-- usecase -->
<sc-collapsable-panel title="Use Case" key="useCaseView-useCase" initially-expanded="true">
<sc-tree data='usecaseInformationTree'></sc-tree>
</sc-collapsable-panel>
<!-- labels -->
<sc-collapsable-panel title="Labels" key="stepView-labels" initially-expanded="false" ng-show="hasAnyLabels">
<div class="sc-tree">
<ul>
<li>
Use case:
<span ng-repeat="label in useCase.labels.labels" class="label label-info sc-label" ng-style="getLabelStyle(label)">{{label}}</span>
</li>
</ul>
</div>
</sc-collapsable-panel>
<!-- Metadata -->
<sc-metadata-tree metadata-tree="metadataTree"></sc-metadata-tree>
</div>
</sc-meta-data-panel>