Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 17, 2024
2 parents fb9d61c + 2e550d9 commit 9da2861
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions application/views/userManagement/partial/confirmuseractivation.php
@@ -1,12 +1,25 @@
<?php
Yii::app()->getController()->renderPartial(
'/layouts/partial_modals/modal_header',
['modalTitle' => sprintf(gT('%s user'), ucfirst($action))]
);

if ($action == 'activate') {
Yii::app()->getController()->renderPartial(
'/layouts/partial_modals/modal_header',
['modalTitle' => gT('Activate user')]
);
} else {
Yii::app()->getController()->renderPartial(
'/layouts/partial_modals/modal_header',
['modalTitle' => gT('Deactivate user')]
);
}

?>

<div class="modal-body">
<p class='modal-body-text'><?= sprintf(gT('Do you want to %s this user?'), $action); ?></p>
<?php if ($action == 'activate') : ?>
<p class='modal-body-text'><?= gT('Do you want to activate this user?'); ?></p>
<?php else : ?>
<p class='modal-body-text'><?= gT('Do you want to deactivate this user?'); ?></p>
<?php endif; ?>
</div>
<div class="modal-footer">
<?=TbHtml::formTb(null, App()->createUrl('userManagement/userActivateDeactivate'), 'post', ["id"=>"UserManagement--modalform"])?>
Expand Down

0 comments on commit 9da2861

Please sign in to comment.