Skip to content
Snippets Groups Projects

full plugin mod for multiselection

Compare and Show latest version
4 files
+ 66
66
Preferences
Compare changes
Files
4
@@ -32,7 +32,7 @@ $actions = [['url' => $build_url('editmembers', 'usergroup'),
$actions = function($group) use($actions) {
return $this->modelActions($group, $actions);
return $this->renderModelActions($group, $actions);
};
echo $this->tagModelTable($this->groups,
@@ -63,14 +63,14 @@ $actions = function($model) use ($build_url, $no_mail_action) {
$is_blacklisted = $this->newsletter->isBlackListed($model);
if (!$is_recipient)
return $this->modelActions($model,
[['url' => $build_url('subscribe'),
'icon' => 'add',
'label' => $this->_('Inscrire')]
]);
return $this->renderModelActions($model,
[['url' => $build_url('subscribe'),
'icon' => 'add',
'label' => $this->_('Inscrire')]
]);
if ($is_blacklisted)
return $this->modelActions($model,
return $this->renderModelActions($model,
[['url' => $build_url('subscribe'),
'icon' => 'back',
'label' => $this->_('Réinscrire')]
@@ -79,11 +79,11 @@ $actions = function($model) use ($build_url, $no_mail_action) {
if (! $model->hasMail())
return $no_mail_action;
return $this->modelActions($model,
[['url' => $build_url('unsubscribe'),
'icon' => 'cancel',
'label' => $this->_('Désinscrire')]
]);
return $this->renderModelActions($model,
[['url' => $build_url('unsubscribe'),
'icon' => 'cancel',
'label' => $this->_('Désinscrire')]
]);
};
echo '<br><br>'