forked from commbankoss/waltz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6ca3fe
commit f5aa0f7
Showing
20 changed files
with
352 additions
and
268 deletions.
There are no files selected for viewing
82 changes: 0 additions & 82 deletions
82
waltz-jobs/src/main/java/com/khartec/waltz/jobs/sample/AppGenerator2.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 66 additions & 67 deletions
133
waltz-ng/client/app-capabilities/directives/app-capability-usage-editor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,77 @@ | ||
<div> | ||
<table class="table table-condensed"> | ||
<colgroup> | ||
<col width="5%"/> | ||
<col width="25%"/> | ||
<col width="45%"/> | ||
<col width="25%"/> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Capability</th> | ||
<th>Description</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<div class="container-fluid"> | ||
|
||
<tbody> | ||
<tr class="waltz-visibility-parent" | ||
ng-repeat="usage in ctrl.usedCapabilities | orderBy:'capability.name'"> | ||
<td> | ||
<waltz-icon style="color: goldenrod" | ||
name="star" | ||
ng-if="usage.primary"></waltz-icon> | ||
</td> | ||
<td> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<label>Register new capability:</label> | ||
<waltz-capability-picker capabilities="ctrl.availableCapabilities" | ||
selected-node="ctrl.selectedNode" | ||
on-add="ctrl.addCapability"> | ||
</waltz-capability-picker> | ||
<div class="help-block small" ng-if="ctrl.hasHiddenCapabilities"> | ||
Note, some capabilities are not available unless corresponding traits are selected. | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<hr> | ||
|
||
<div class="row"> | ||
<div class="col-md-12"> | ||
<table class="table table-condensed table-striped"> | ||
<colgroup> | ||
<col width="5%"/> | ||
<col width="25%"/> | ||
<col width="45%"/> | ||
<col width="25%"/> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Capability</th> | ||
<th>Description</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<tr class="waltz-visibility-parent" | ||
ng-repeat="usage in ctrl.usedCapabilities | orderBy:'capability.name'"> | ||
<td> | ||
<waltz-icon style="color: goldenrod" | ||
name="star" | ||
ng-if="usage.primary"></waltz-icon> | ||
</td> | ||
<td> | ||
<span class='wce-name'> | ||
{{ usage.capability.name }} | ||
</span> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
<span class='small'> | ||
{{ usage.capability.description }} | ||
</span> | ||
</td> | ||
<td class="waltz-visibility-child-30"> | ||
<a href ng-click="ctrl.remove(usage.capability)"> | ||
<waltz-icon fixed-width='true' | ||
name="trash"></waltz-icon> | ||
Remove | ||
</a> | ||
</td> | ||
<td class="waltz-visibility-child-30"> | ||
<a href ng-click="ctrl.remove(usage.capability)"> | ||
<waltz-icon fixed-width='true' | ||
name="trash"></waltz-icon> | ||
Remove | ||
</a> | ||
|
||
<br> | ||
<br> | ||
|
||
<waltz-toggle icon-on="star-o" | ||
icon-off="star" | ||
label-on="Un-mark as primary" | ||
label-off="Mark as primary" | ||
on-toggle="ctrl.togglePrimary(usage.capability, !usage.primary)" | ||
state="usage.primary"></waltz-toggle> | ||
</td> | ||
</tr> | ||
<waltz-toggle icon-on="star-o" | ||
icon-off="star" | ||
label-on="Un-mark as primary" | ||
label-off="Mark as primary" | ||
on-toggle="ctrl.togglePrimary(usage.capability, !usage.primary)" | ||
state="usage.primary"></waltz-toggle> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<tr style="background-color: #f5f5f5; border-bottom: 1px solid #ccc;"> | ||
<td></td> | ||
<td><label>Register new capability:</label></td> | ||
<td><waltz-capability-selector capabilities="ctrl.availableCapabilities" | ||
model="ctrl.addForm"></waltz-capability-selector></td> | ||
<td> | ||
<button ng-click="ctrl.add(ctrl.addForm.capability)" | ||
class="btn btn-sm btn-primary" | ||
ng-disabled="!ctrl.addForm.capability"> | ||
<waltz-icon name="plus"></waltz-icon> | ||
Add | ||
</button> | ||
</td> | ||
</tr> | ||
<tr ng-if="ctrl.hasHiddenCapabilities"> | ||
<td></td> | ||
<td colspan="3"> | ||
<span class="small text-muted"> | ||
Note, some capabilities are not available unless corresponding traits are selected. | ||
</span> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
waltz-ng/client/capabilities/directives/capability-picker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<waltz-capability-selector selected-node='ctrl.selectedNode' | ||
capabilities="ctrl.capabilities"></waltz-capability-selector> | ||
<div class="help-block small">Search for a capability by name or browse using the '...' button</div> | ||
</div> | ||
<div class="col-md-4"> | ||
<waltz-capability-selector-modal selected-node='ctrl.selectedNode' | ||
capabilities="ctrl.capabilities"> | ||
</waltz-capability-selector-modal> | ||
<button ng-disabled='!ctrl.selectedNode' | ||
class="btn btn-success" | ||
ng-click="ctrl.onAdd(ctrl.selectedNode)"> | ||
Add | ||
</button> | ||
</div> | ||
</div> |
Oops, something went wrong.