admin: msgbox can contains lists
This commit is contained in:
parent
33bf5a0f34
commit
31b80a5b2a
3 changed files with 13 additions and 2 deletions
|
@ -47,6 +47,9 @@ 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 }}"}}
|
||||
<ul ng-if="box.list">
|
||||
<li ng-repeat="i in box.list">{{"{{ i }}"}}</li>
|
||||
</ul>
|
||||
<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>
|
||||
|
|
Reference in a new issue