admin: alert can contains yes/no buttons
This commit is contained in:
parent
070807b485
commit
7b2fdaf0ad
3 changed files with 48 additions and 3 deletions
|
@ -49,6 +49,8 @@ const indextpl = `<!DOCTYPE html>
|
|||
<div ng-repeat="box in boxes" class="alert alert-dismissible alert-{{"{{ box.kind }}"}}" ng-cloak>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<strong ng-if="box.title">{{"{{ box.title }}"}}</strong> {{"{{ box.msg }}"}}
|
||||
<button class="btn btn-sm btn-success" ng-if="box.yes || box.no" ng-click="box.yes()">Yes</button>
|
||||
<button class="btn btn-sm btn-danger" ng-if="box.yes || box.no" ng-click="box.no()">No</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
|
Reference in a new issue