-
-
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.
SearchKit - Add column for scheduled reminders to savedSearch listing
- Loading branch information
Showing
2 changed files
with
40 additions
and
7 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
20 changes: 20 additions & 0 deletions
20
ext/search_kit/ang/crmSearchAdmin/searchListing/schedule.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,20 @@ | ||
<div class="btn-group"> | ||
<button type="button" ng-click="row.openScheduleMenu = true" class="btn btn-xs dropdown-toggle btn-primary-outline" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
{{:: row.data.schedule_id.length === 1 ? ts('1 Message') : ts('%1 Messages', {1: row.data.schedule_id ? row.data.schedule_id.length : 0}) }} <span class="caret"></span> | ||
</button> | ||
<ul class="dropdown-menu" ng-if=":: row.openScheduleMenu"> | ||
<li ng-repeat="schedule_id in row.data.schedule_id" title="{{:: ts('Edit Scheduled Reminder') }}"> | ||
<a ng-href="{{ crmUrl('civicrm/admin/scheduleReminders/edit?reset=1&action=update&mapping_id=saved_search&id=' + schedule_id + '&entity_value=' + row.data.id) }}" target="crm-popup"> | ||
<i class="crm-i fa-pencil"></i> | ||
{{ row.data.schedule_title[$index] }} | ||
</a> | ||
</li> | ||
<li class="divider" role="separator"></li> | ||
<li title="{{:: ts('Add Scheduled Reminder') }}"> | ||
<a ng-href="{{ crmUrl('civicrm/admin/scheduleReminders/edit?reset=1&action=add&mapping_id=saved_search&entity_value=' + row.data.id) }}" target="crm-popup"> | ||
<i class="crm-i fa-plus"></i> | ||
{{:: ts('New Message') }} | ||
</a> | ||
</li> | ||
</ul> | ||
</div> |