-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22790 from colemanw/searchKitTaskButtons
SearchKit - Use crmDialogButtons for task popups
- Loading branch information
Showing
5 changed files
with
19 additions
and
51 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
18 changes: 5 additions & 13 deletions
18
ext/search_kit/ang/crmSearchTasks/crmSearchTaskDelete.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 |
---|---|---|
@@ -1,21 +1,13 @@ | ||
<div id="bootstrap-theme"> | ||
<div id="bootstrap-theme" crm-dialog="crmSearchTask"> | ||
<form ng-controller="crmSearchTaskDelete as $ctrl"> | ||
<p><strong>{{:: ts('Are you sure you want to delete %1 %2?', {1: model.ids.length, 2: $ctrl.entityTitle}) }}</strong></p> | ||
<hr /> | ||
<div ng-if="$ctrl.run" class="crm-search-task-progress"> | ||
<h5>{{:: ts('Deleting %1 %2...', {1: model.ids.length, 2: $ctrl.entityTitle}) }}</h5> | ||
<crm-search-batch-runner entity="model.entity" action="Delete" params="$ctrl.run" ids="model.ids" success="$ctrl.onSuccess()" error="$ctrl.onError()" ></crm-search-batch-runner> | ||
</div> | ||
<hr /> | ||
<div class="buttons text-right"> | ||
<button type="button" ng-click="$ctrl.cancel()" class="btn btn-danger" ng-hide="$ctrl.run"> | ||
<i class="crm-i fa-times"></i> | ||
{{:: ts('Cancel') }} | ||
</button> | ||
<button ng-click="$ctrl.start()" class="btn btn-primary" ng-disabled="$ctrl.run"> | ||
<i class="crm-i fa-{{ $ctrl.run ? 'spin fa-spinner' : 'trash' }}"></i> | ||
{{:: ts('Delete %1', {1: $ctrl.entityTitle}) }} | ||
</button> | ||
<crm-search-batch-runner entity="model.entity" action="delete" params="$ctrl.run" ids="model.ids" success="$ctrl.onSuccess()" error="$ctrl.onError()" ></crm-search-batch-runner> | ||
</div> | ||
|
||
<crm-dialog-button text="ts('Cancel')" icons="{primary: 'fa-times'}" on-click="$ctrl.cancel()" disabled="$ctrl.run" ></crm-dialog-button> | ||
<crm-dialog-button text="ts('Delete %1', {1: $ctrl.entityTitle})" icons="{primary: $ctrl.run ? 'fa-spin fa-spinner' : 'fa-trash'}" on-click="$ctrl.start()" disabled="$ctrl.run" ></crm-dialog-button> | ||
</form> | ||
</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
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