Skip to content
Snippets Groups Projects
Commit bcbe8beb authored by Philipp Schüttlöffel's avatar Philipp Schüttlöffel Committed by Jan-Hendrik Willms
Browse files

Resolve "Sichtbarkeitseinstellungen in Benutzerverwaltung verwirrend"

Closes #2983

Merge request studip/studip!2000
parent 2ebb832c
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ use Studip\Button, Studip\LinkButton;
<select name="global_visibility" aria-describedby="global_vis_description" id="global_vis">
<?php
if (count($user_domains)) {
printf("<option %s value=\"global\">" . _('sichtbar für alle Nutzer') . "</option>", $global_visibility === 'global' ? 'selected="selected"' : '');
printf("<option %s value=\"global\">" . _('sichtbar für alle Nutzenden') . "</option>", $global_visibility === 'global' ? 'selected="selected"' : '');
$visible_text = _('sichtbar für eigene Nutzerdomäne');
} else {
$visible_text = _('sichtbar');
......@@ -38,11 +38,11 @@ use Studip\Button, Studip\LinkButton;
</select>
<? else: ?>
<? if ($global_visibility === 'never'): ?>
<em><?= _('Ihre Kennung wurde von einem Administrator unsichtbar geschaltet.') ?></em>
<em><?= _('Sie sind unsichtbar (durch Administrator/in eingestellt).') ?></em>
<? elseif ($user_perm == 'dozent' && Config::get()->DOZENT_ALWAYS_VISIBLE): ?>
<em><?= _('Sie haben Lehrendenrechte und sind daher immer global sichtbar.') ?></em>
<? else: ?>
<em><?= _('Sie sind immer global sichtbar.') ?></em>
<em><?= _('Sie sind immer global sichtbar (durch Administrator/in eingestellt).') ?></em>
<? endif; ?>
<input type="hidden" name="global_visibility" value="<?= $global_visibility ?>">
<? endif; ?>
......
......@@ -207,12 +207,12 @@ function vis_chooser($vis, $new = false, $id = false) {
}
$txt = [];
$txt[] = sprintf('<select name="visible"%s>', $id ? 'id="' . htmlReady($id) . '"' : '');
$txt[] = '<option value="global"'.($vis === "global" ? " selected" : "").'>'._("global").'</option>';
$txt[] = '<option value="always"'.($vis === "always" ? " selected" : "").'>'._("immer").'</option>';
$txt[] = '<option value="yes"'.($vis === "yes" ? " selected" : "").'>'._("ja").'</option>';
$txt[] = '<option value="unknown"'.(($new || $vis === "unknown") ? ' selected="selected"':'').'>'._("unbekannt").'</option>';
$txt[] = '<option value="no"'.($vis === "no" ? " selected" : "").'>'._("nein").'</option>';
$txt[] = '<option value="never"'.($vis === "never" ? " selected" : "").'>'._("niemals").'</option>';
$txt[] = '<option value="unknown"'.(($new || $vis === "unknown") ? ' selected="selected"':'').'>'._("Standardeinstellung").'</option>';
$txt[] = '<option value="global"'.($vis === "global" ? " selected" : "").'>'._("sichtbar für alle Nutzenden").'</option>';
$txt[] = '<option value="yes"'.($vis === "yes" ? " selected" : "").'>'._("sichtbar für eigene Nutzerdomäne").'</option>';
$txt[] = '<option value="no"'.($vis === "no" ? " selected" : "").'>'._("unsichtbar").'</option>';
$txt[] = '<option value="always"'.($vis === "always" ? " selected" : "").'>'._("Sichtbarkeit erzwingen").'</option>';
$txt[] = '<option value="never"'.($vis === "never" ? " selected" : "").'>'._("Unsichtbarkeit erzwingen").'</option>';
$txt[] = '</select>';
return implode("\n", $txt);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment