-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making Websites With October CMS - Part 32 - Groups and Permissions
- Loading branch information
Ivan Dorić
committed
Mar 11, 2017
1 parent
ec8e55b
commit fee7b4d
Showing
4 changed files
with
65 additions
and
130 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
33 changes: 18 additions & 15 deletions
33
plugins/watchlearn/movies/controllers/movies/_list_toolbar.htm
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,18 +1,21 @@ | ||
<div data-control="toolbar"> | ||
<a href="<?= Backend::url('watchlearn/movies/movies/create') ?>" class="btn btn-primary oc-icon-plus"><?= e(trans('backend::lang.form.create')) ?></a> | ||
<button | ||
class="btn btn-default oc-icon-trash-o" | ||
disabled="disabled" | ||
onclick="$(this).data('request-data', { | ||
checked: $('.control-list').listWidget('getChecked') | ||
})" | ||
data-request="onDelete" | ||
data-request-confirm="<?= e(trans('backend::lang.list.delete_selected_confirm')) ?>" | ||
data-trigger-action="enable" | ||
data-trigger=".control-list input[type=checkbox]" | ||
data-trigger-condition="checked" | ||
data-request-success="$(this).prop('disabled', true)" | ||
data-stripe-load-indicator> | ||
<?= e(trans('backend::lang.list.delete_selected')) ?> | ||
</button> | ||
|
||
<?php if($this->user->hasAccess('delete_movies')): ?> | ||
<button | ||
class="btn btn-default oc-icon-trash-o" | ||
disabled="disabled" | ||
onclick="$(this).data('request-data', { | ||
checked: $('.control-list').listWidget('getChecked') | ||
})" | ||
data-request="onDelete" | ||
data-request-confirm="<?= e(trans('backend::lang.list.delete_selected_confirm')) ?>" | ||
data-trigger-action="enable" | ||
data-trigger=".control-list input[type=checkbox]" | ||
data-trigger-condition="checked" | ||
data-request-success="$(this).prop('disabled', true)" | ||
data-stripe-load-indicator> | ||
<?= e(trans('backend::lang.list.delete_selected')) ?> | ||
</button> | ||
<?php endif ?> | ||
</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