-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing embedded_workflow to dynamic select box in service dialogs
- Loading branch information
Showing
8 changed files
with
246 additions
and
43 deletions.
There are no files selected for viewing
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
77 changes: 51 additions & 26 deletions
77
src/dialog-editor/components/tree-selector/tree-selector.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,28 +1,53 @@ | ||
<div class="pull-right"> | ||
<button type="button" class="close" ng-click="$ctrl.treeOptions.toggle()" aria-hidden="true"> | ||
<span class="pficon pficon-close"></span> | ||
</button> | ||
</div> | ||
|
||
<div ng-if="!$ctrl.treeOptions.data" class="spinner spinner-lg"></div> | ||
<div ng-if="$ctrl.treeOptions.data"> | ||
<miq-tree-selector | ||
name="tree-selector" | ||
data="$ctrl.treeOptions.data" | ||
selectable="{key: '^aei-'}" | ||
on-select="$ctrl.treeOptions.onSelect(node)" | ||
lazy-load="$ctrl.treeOptions.lazyLoad(node)" | ||
selected="$ctrl.treeOptions.selected" | ||
></miq-tree-selector> | ||
</div> | ||
|
||
<div class="col-sm-4"> | ||
<div class="form-group pull-right"> | ||
<label class="control-label" translate>Include domain prefix in the path:</label> | ||
<input bs-switch | ||
type="checkbox" | ||
ng-model="$ctrl.treeOptions.includeDomain" | ||
switch-on-text="{{'Yes'|translate}}" | ||
switch-off-text="{{'No'|translate}}"/> | ||
<div class="tree_selector_wrapper"> | ||
<div class="tree_selector_title_wrapper"> | ||
<div class="tree_selector_dialog_title"> | ||
<span ng-if="$ctrl.treeOptions.automationType==$ctrl.treeOptions.automationTypes.automate"> | ||
Select Embededded Automate | ||
</span> | ||
<span ng-if="$ctrl.treeOptions.automationType==$ctrl.treeOptions.automationTypes.workflow"> | ||
Select Embededded Workflow | ||
</span> | ||
</div> | ||
<div class="tree_selector_action"> | ||
<div class="pull-right"> | ||
<button type="button" class="close" ng-click="$ctrl.treeOptions.toggle()" aria-hidden="true"> | ||
<span class="pficon pficon-close"></span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tree_selector_content_wrapper"> | ||
<div ng-if="!$ctrl.treeOptions.data" class="spinner spinner-lg"></div> | ||
<div ng-if="$ctrl.treeOptions.automationType==$ctrl.treeOptions.automationTypes.automate"> | ||
<div ng-if="$ctrl.treeOptions.data"> | ||
<miq-tree-selector | ||
name="tree-selector" | ||
data="$ctrl.treeOptions.data" | ||
selectable="{key: '^aei-'}" | ||
on-select="$ctrl.treeOptions.onSelect(node)" | ||
lazy-load="$ctrl.treeOptions.lazyLoad(node)" | ||
selected="$ctrl.treeOptions.selected" | ||
></miq-tree-selector> | ||
</div> | ||
<div class="col-sm-4"> | ||
<div class="form-group pull-right"> | ||
<label class="control-label" translate>Include domain prefix in the path:</label> | ||
<input bs-switch | ||
type="checkbox" | ||
ng-model="$ctrl.treeOptions.includeDomain" | ||
switch-on-text="{{'Yes'|translate}}" | ||
switch-off-text="{{'No'|translate}}"/> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-if="$ctrl.treeOptions.automationType==$ctrl.treeOptions.automationTypes.workflow"> | ||
<div ng-if="$ctrl.treeOptions.data"> | ||
<ul class="nav nav-list workflows_list_wrapper" ng-repeat="workflow in $ctrl.treeOptions.data"> | ||
<li class="workflow_item" ng-click="$ctrl.treeOptions.onSelect(workflow)"> | ||
{{workflow.name}} | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</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
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