-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1821 Add case bulk flag/unflag and delete
- Loading branch information
Showing
3 changed files
with
125 additions
and
5 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
32 changes: 32 additions & 0 deletions
32
frontend/app/views/partials/case/case.bulk.delete.confirm.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<form name="removeForm" ng-submit="$dialog.confirm()"> | ||
<div class="modal-header bg-danger"> | ||
<h3 class="modal-title">Permanently remove selected cases</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<p>Are you sure you want to permanently delete the following <b>{{$dialog.selection.length}}</b> case(s)?</p> | ||
|
||
<div class="mt-xs"> | ||
<table class="table table-striped"> | ||
<tr ng-repeat="item in $dialog.selection"> | ||
<td>#{{item.number}} - {{item.title}}</td> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
<div class="mt-xs"> | ||
<p><b>To confirm, please type the number of cases to delete.</b></p> | ||
|
||
<input class="form-control input-lg" name="count" type="number" placeholder="{{$dialog.count}}" | ||
ng-required ng-model="$dialog.typedCount"> | ||
|
||
<p><b class="text-danger">This action might take a while and cannot be undone.</b></p> | ||
</div> | ||
</div> | ||
<div class="modal-footer text-left"> | ||
<button class="btn btn-default" ng-click="$dialog.cancel()" ng-disabled="$dialog.loading" type="button">Cancel</button> | ||
<button class="btn btn-danger pull-right" type="submit" | ||
ng-disabled="$dialog.loading || removeForm.$invalid || ($dialog.count != $dialog.typedCount)"> | ||
Yes, confirm. | ||
</button> | ||
</div> | ||
</form> |
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