forked from darylrowland/inline-confirm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinline-confirm.tpl.html
45 lines (41 loc) · 1.52 KB
/
inline-confirm.tpl.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
<span ng-show="show" class="inline-confirm" >
<!-- icon -->
<span class="{{mainClass}}" title="{{text}}" ng-click="showConfirmOptions()" ng-if="type == 'icon'">
<span class="{{actionClass}}" ng-hide="showConfirm && hideOnConfirm">
</span>
<span ng-show="showConfirm">
<button class="{{confirmClass}} confirm-yes" ng-click="yesClick($event)">{{yesText}}
</button>
<button class="{{confirmClass}} confirm-no" ng-click="noClick($event)">{{noText}}
</button>
</span>
</span>
<!-- text -->
<span class="{{mainClass}}" ng-if="type == 'text'">
<i ng-click="showConfirmOptions()" ng-if="actionClass" class="{{actionClass}}" ng-hide="showConfirm && hideOnConfirm">
</i>
<a href="" ng-click="showConfirmOptions()" ng-hide="showConfirm && hideOnConfirm">
{{text}}
</a>
<span ng-show="showConfirm">
<a href="" ng-click="yesClick($event)" class="{{confirmClass}} confirm-yes">
{{yesText}}
</a>
<a href="" ng-click="noClick($event)" class="{{confirmClass}} confirm-no">
{{noText}}
</a>
</span>
</span>
<!-- button -->
<span class="{{mainClass}}" ng-if="type == 'button'">
<button ng-click="showConfirmOptions()" ng-hide="showConfirm && hideOnConfirm">
{{text}}
</button>
<span ng-show="showConfirm">
<button class="{{confirmClass}} confirm-yes" ng-click="yesClick($event)">{{yesText}}
</button>
<button class="{{confirmClass}} confirm-no" ng-click="noClick($event)">{{noText}}
</button>
</span>
</span>
</span>