Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ui test page/controller as a sandbox for ui stuff
- Loading branch information
Showing
5 changed files
with
63 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div ng-controller="UI.UITestController"> | ||
|
||
<div> | ||
Confirmation Dialog | ||
<div class="row-fluid"> | ||
<button class="btn" ng-click="showDeleteOne = true">Delete Stuff</button> | ||
<button class="btn" ng-click="showDeleteTwo = true">Delete Other Stuff</button> | ||
|
||
<div hawtio-confirm-dialog="showDeleteOne" | ||
title="Delete Stuff?" | ||
ok-button-text="Yes, Delete the Stuff" | ||
cancel-button-text="No, Keep the Stuff" | ||
on-cancel="onCancelled('One')" | ||
on-ok="onOk('One')"> | ||
<div class="dialog-body"> | ||
<p> | ||
Are you sure you want to delete all the stuff? | ||
</p> | ||
</div> | ||
</div> | ||
<!-- Use more defaults --> | ||
<div hawtio-confirm-dialog="showDeleteTwo" | ||
on-cancel="onCancelled('Two')" | ||
on-ok="onOk('Two')"> | ||
<div class="dialog-body"> | ||
<p> | ||
Are you sure you want to delete all the other stuff? | ||
</p> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module UI { | ||
|
||
export function UITestController($scope, workspace) { | ||
|
||
$scope.showDeleteOne = false; | ||
$scope.showDeleteTwo = false; | ||
|
||
$scope.onCancelled = (number) => { | ||
notification('info', 'cancelled ' + number); | ||
} | ||
|
||
$scope.onOk = (number) => { | ||
notification('info', number + ' ok!'); | ||
} | ||
|
||
|
||
} | ||
|
||
} |
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