add user-info hint

This commit is contained in:
Xu 2023-11-17 12:26:41 +01:00 committed by Igor Scheller
parent e9b8977728
commit 3ffb0a38e8
3 changed files with 20 additions and 8 deletions

View File

@ -85,8 +85,14 @@ function admin_user()
. '</td></tr>' . "\n";
}
// User info
if ($user_info_edit) {
$html .= ' <tr><td>' . __('user.info') . '</td><td>'
$html .= ' <tr><td>'
. __('user.info')
. ' <span class="bi bi-info-circle-fill text-info" data-bs-toggle="tooltip" title="'
. __('user.info.hint')
. '"></span>'
. '</td><td>'
. '<textarea cols="40" rows="" name="userInfo" class="form-control">'
. htmlspecialchars((string) $user_source->state->user_info)
. '</textarea>'
@ -98,7 +104,7 @@ function admin_user()
'0' => __('No'),
];
// Gekommen?
// Arrived?
$html .= ' <tr><td>' . __('user.arrived') . '</td><td>' . "\n";
if ($user_source->state->arrived) {
$html .= __('Yes');
@ -107,11 +113,11 @@ function admin_user()
}
$html .= '</td></tr>' . "\n";
// Aktiv?
// Active?
$html .= ' <tr><td>' . __('user.active') . '</td><td>' . "\n";
$html .= html_options('eAktiv', $options, $user_source->state->active) . '</td></tr>' . "\n";
// Aktiv erzwingen
// Forced active?
if (auth()->can('admin_active')) {
$html .= ' <tr><td>' . __('Force active') . '</td><td>' . "\n";
$html .= html_options('force_active', $options, $user_source->state->force_active) . '</td></tr>' . "\n";

View File

@ -1998,3 +1998,6 @@ msgstr "Ende"
msgid "user.info"
msgstr "Benutzer Info"
msgid "user.info.hint"
msgstr "Wird auf der Benutzer Seite für Schichtkoordinatoren und Admins angezeigt."

View File

@ -701,3 +701,6 @@ msgstr "End"
msgid "user.info"
msgstr "User info"
msgid "user.info.hint"
msgstr "Is displayed for shift coordinators and admins in the user view."