Benutzerliste (für Admin) vorbereitet, übersetzungen hinzugefügt
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
let newEmpty = $derived(!/\S/.test(newPass));
|
let newEmpty = $derived(!/\S/.test(newPass));
|
||||||
let mismatch = $derived(newPass != repeat);
|
let mismatch = $derived(newPass != repeat);
|
||||||
|
|
||||||
|
let error = $state("");
|
||||||
|
|
||||||
function abort(){
|
function abort(){
|
||||||
editPassword = false;
|
editPassword = false;
|
||||||
}
|
}
|
||||||
@@ -29,6 +31,8 @@
|
|||||||
if (resp.ok){
|
if (resp.ok){
|
||||||
const json = await resp.json();
|
const json = await resp.json();
|
||||||
console.log(json);
|
console.log(json);
|
||||||
|
} else {
|
||||||
|
error = await resp.text();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -61,4 +65,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<button onclick={submit} disabled={oldEmpty||newEmpty||mismatch}>{t('user.update')}</button>
|
<button onclick={submit} disabled={oldEmpty||newEmpty||mismatch}>{t('user.update')}</button>
|
||||||
<button onclick={abort}>{t('user.abort')}</button>
|
<button onclick={abort}>{t('user.abort')}</button>
|
||||||
|
{#if error}
|
||||||
|
<span class="error">{error}</span>
|
||||||
|
{/if}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@@ -91,4 +91,10 @@
|
|||||||
</table>
|
</table>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
{#if user.permissions.includes('LIST_USERS')}
|
||||||
|
<fieldset>
|
||||||
|
<legend>{t('user.list')}</legend>
|
||||||
|
User list goes here…
|
||||||
|
</fieldset>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
"tutorial": "Tutorial"
|
"tutorial": "Tutorial"
|
||||||
},
|
},
|
||||||
"user" : {
|
"user" : {
|
||||||
|
"abort": "abbrechen",
|
||||||
"CREATE_USERS": "NUTZER ANLEGEN",
|
"CREATE_USERS": "NUTZER ANLEGEN",
|
||||||
"DELETE_USERS": "NUTZER LÖSCHEN",
|
"DELETE_USERS": "NUTZER LÖSCHEN",
|
||||||
"edit_password": "Passwort ändern",
|
"edit_password": "Passwort ändern",
|
||||||
@@ -25,14 +26,21 @@
|
|||||||
"id": "Id",
|
"id": "Id",
|
||||||
"IMPERSONATE": "NUTZER WECHSELN",
|
"IMPERSONATE": "NUTZER WECHSELN",
|
||||||
"language": "Sprache",
|
"language": "Sprache",
|
||||||
|
"list": "Benutzer-Liste",
|
||||||
"LIST_USERS": "NUTZER AUFLISTEN",
|
"LIST_USERS": "NUTZER AUFLISTEN",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"MANAGE_LOGIN_SERVICES": "LOGIN-SERVICES VERWALTEN",
|
"MANAGE_LOGIN_SERVICES": "LOGIN-SERVICES VERWALTEN",
|
||||||
|
"mismatch": "ungleich",
|
||||||
|
"must_not_be_empty": "darf nicht leer sein",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
|
"new_password": "neues Passwort",
|
||||||
|
"old_password": "altes Passwort",
|
||||||
"password": "Passwort",
|
"password": "Passwort",
|
||||||
"permissions": "Berechtigungen",
|
"permissions": "Berechtigungen",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
|
"repeat_new_password": "Wiederholung",
|
||||||
"theme": "Design",
|
"theme": "Design",
|
||||||
|
"update": "aktualisieren",
|
||||||
"user_module" : "Umbrella User-Verwaltung"
|
"user_module" : "Umbrella User-Verwaltung"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,3 +35,9 @@ footer {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
.error {
|
||||||
|
background: red;
|
||||||
|
color: black;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user