Skip to content

Commit

Permalink
feat: add crontask link
Browse files Browse the repository at this point in the history
AntoineLemarchand committed Jan 8, 2025
1 parent 3a01506 commit 276ae3b
Showing 3 changed files with 14 additions and 2 deletions.
8 changes: 6 additions & 2 deletions inc/config.class.php
Original file line number Diff line number Diff line change
@@ -457,7 +457,8 @@ public function showConfigForm() {
$groups = self::getGroups();

$key = Toolbox::sodiumDecrypt($fields['key']);

$cronTask = new CronTask();
$cronTask->getFromDBByCrit(['name' => 'ImportOktaUsers']);
?>
<div class='first-bloc'>
<form method="post" action="<?php echo $action ?>">
@@ -560,12 +561,15 @@ public function showConfigForm() {
<input type="hidden" name="full_import" value='0' >
<input type="checkbox" name="full_import" value='1' <?php echo $fields['full_import'] ? 'checked' : '' ?>>
</td>
<td><?php echo __('Deactivate non imported users', 'okta') ?></td>
<td><?php echo __('Deactivate unlisted users', 'okta') ?></td>
<td>
<input type="hidden" name="deactivate" value='0' >
<input type="checkbox" name="deactivate" value='1' <?php echo $fields['deactivate'] ? 'checked' : '' ?>>
</td>
</tr>
<tr class="center">
<td colspan="5">
<a href="<?php echo $cronTask->getLinkURL() ?>"><?php echo CronTask::getTypeName() ?></a>
<tr>
<td class="center" colspan="3">
<input type="submit" name="update" class="submit" value="<?php echo __('Save')?>">
4 changes: 4 additions & 0 deletions locales/fr_FR.po
Original file line number Diff line number Diff line change
@@ -83,3 +83,7 @@ msgstr "Utilisateurs importés avec succès"
#: inc/config.form.php: 67
msgid "Config updated successfully"
msgstr "Configuration mise à jour avec succès"

#: inc/config.form.php: 563
msgid "Deactivate unlisted users"
msgstr "Désactiver les utilisateurs non listés"
4 changes: 4 additions & 0 deletions locales/okta.pot
Original file line number Diff line number Diff line change
@@ -83,3 +83,7 @@ msgstr ""
#: inc/config.form.php: 67
msgid "Config updated successfully"
msgstr ""

#: inc/config.form.php: 563
msgid "Deactivate unlisted users"
msgstr ""

0 comments on commit 276ae3b

Please sign in to comment.