diff options
| author | Arne Schröder, M. A. <schroeder@data-quest.de> | 2024-12-19 13:38:22 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2024-12-19 13:38:22 +0000 |
| commit | 7cbba1ec8a0de90e02632fe06beebb2e672a07a2 (patch) | |
| tree | 07c203bcfa1f022b105940b34191c797251ae7fd /app/views/admin | |
| parent | 147a30d22cad9f074a2f2a968a156e021ae59f33 (diff) | |
Resolve "Accountmanagement für verknüpfte ILIAS-Accounts in Stud.IP"
Closes #4263
Merge request studip/studip!3368
Diffstat (limited to 'app/views/admin')
| -rw-r--r-- | app/views/admin/ilias_interface/edit_content.php | 4 | ||||
| -rw-r--r-- | app/views/admin/user/edit.php | 37 |
2 files changed, 39 insertions, 2 deletions
diff --git a/app/views/admin/ilias_interface/edit_content.php b/app/views/admin/ilias_interface/edit_content.php index d0eb47e..77c76eb 100644 --- a/app/views/admin/ilias_interface/edit_content.php +++ b/app/views/admin/ilias_interface/edit_content.php @@ -39,6 +39,10 @@ <span><?= _('Beim Löschen von Stud.IP-Accounts ILIAS-Accounts ebenfalls löschen (alle zugehörigen Objekte werden gelöscht!)') ?></span> </label> <label> + <input type="checkbox" name="ilias_reconnect_accounts" value="1" <?= $ilias_config['reconnect_accounts'] ? 'checked' : '' ?>> + <span><?= _('Externe User-Accounts automatisch verbinden, wenn sie den passenden Loginnamen haben') ?></span> + </label> + <label> <span><?= _('Prefix für automatisch angelegte Usernamen') ?></span> <? if ($ilias_config['is_active']) : ?> <div><?=$ilias_config['user_prefix'] ? htmlReady($ilias_config['user_prefix']) : _('Kein Präfix')?></div> diff --git a/app/views/admin/user/edit.php b/app/views/admin/user/edit.php index 47596a9..3313e6a 100644 --- a/app/views/admin/user/edit.php +++ b/app/views/admin/user/edit.php @@ -232,8 +232,6 @@ use Studip\Button, Studip\LinkButton; <? endif ?> </fieldset> - - <fieldset> <legend> <?= _('Registrierungsdaten') ?> @@ -368,6 +366,41 @@ use Studip\Button, Studip\LinkButton; </section> </fieldset> + <? if ($GLOBALS['perm']->have_perm('root') && Config::get()->ILIAS_INTERFACE_ENABLE) : ?> + <? foreach ($ilias_list as $ilias_index => $ilias) : ?> + <fieldset> + <legend> + <?= htmlReady(sprintf(_('Account in %s'), htmlReady($ilias->getName()))) ?> + </legend> + + <? if ($ilias_user[$ilias_index]->isConnected()) : ?> + <label> + <?= _('Loginname des verknüpften Accounts:') ?> + <?= htmlReady($ilias_user[$ilias_index]->getUsername()) ?> + </label> + <label> + <?= LinkButton::create( + _('Verknüpfung bearbeiten'), + $controller->url_for('my_ilias_accounts/administrate_account/' . $ilias_user[$ilias_index]->studip_id . '/' . $ilias_index . '/edit'), + ['data-dialog' => 'reload-on-close'] + ) ?> + </label> + <? else : ?> + <label> + <?= _('Kein Account verknüpft') ?> + </label> + <label> + <?= LinkButton::create( + _('Verknüpfung erstellen'), + $controller->url_for('my_ilias_accounts/administrate_account/' . $ilias_user[$ilias_index]->studip_id . '/' . $ilias_index . '/edit'), + ['data-dialog' => 'reload-on-close'] + ) ?> + </label> + <? endif ?> + </fieldset> + <? endforeach ?> + <? endif ?> + <? if (in_array($user->perms, ['autor', 'tutor', 'dozent'])): ?> <fieldset> <legend> |
