Allow to set a usertype
Change-Id: Ibfaa383b95dc5acc3b4dcd61f3f506f7c81f7dea
This commit is contained in:
parent
fb8cff3e3e
commit
c604b47adc
@ -26,6 +26,7 @@ import {
|
|||||||
SearchInput,
|
SearchInput,
|
||||||
ReferenceField,
|
ReferenceField,
|
||||||
ReferenceManyField,
|
ReferenceManyField,
|
||||||
|
SelectField,
|
||||||
SelectInput,
|
SelectInput,
|
||||||
BulkDeleteButton,
|
BulkDeleteButton,
|
||||||
DeleteButton,
|
DeleteButton,
|
||||||
@ -149,6 +150,13 @@ export const UserList = props => {
|
|||||||
<TextField source="displayname" />
|
<TextField source="displayname" />
|
||||||
<BooleanField source="is_guest" sortable={false} />
|
<BooleanField source="is_guest" sortable={false} />
|
||||||
<BooleanField source="admin" sortable={false} />
|
<BooleanField source="admin" sortable={false} />
|
||||||
|
<SelectField
|
||||||
|
source="user_type"
|
||||||
|
choices={[
|
||||||
|
{ id: null, name: "resources.users.type.default" },
|
||||||
|
{ id: "free", name: "resources.users.type.free" },
|
||||||
|
]}
|
||||||
|
/>
|
||||||
<BooleanField source="deactivated" sortable={false} />
|
<BooleanField source="deactivated" sortable={false} />
|
||||||
</Datagrid>
|
</Datagrid>
|
||||||
</List>
|
</List>
|
||||||
@ -261,6 +269,13 @@ export const UserCreate = props => (
|
|||||||
<TextInput source="displayname" />
|
<TextInput source="displayname" />
|
||||||
<PasswordInput source="password" autoComplete="new-password" />
|
<PasswordInput source="password" autoComplete="new-password" />
|
||||||
<BooleanInput source="admin" />
|
<BooleanInput source="admin" />
|
||||||
|
<SelectInput
|
||||||
|
source="user_type"
|
||||||
|
choices={[
|
||||||
|
{ id: null, name: "resources.users.type.default" },
|
||||||
|
{ id: "free", name: "resources.users.type.free" },
|
||||||
|
]}
|
||||||
|
/>
|
||||||
<ArrayInput source="threepids">
|
<ArrayInput source="threepids">
|
||||||
<SimpleFormIterator>
|
<SimpleFormIterator>
|
||||||
<SelectInput
|
<SelectInput
|
||||||
@ -307,6 +322,14 @@ export const UserEdit = props => {
|
|||||||
<TextInput source="id" disabled />
|
<TextInput source="id" disabled />
|
||||||
<TextInput source="displayname" />
|
<TextInput source="displayname" />
|
||||||
<PasswordInput source="password" autoComplete="new-password" />
|
<PasswordInput source="password" autoComplete="new-password" />
|
||||||
|
<SelectInput
|
||||||
|
source="user_type"
|
||||||
|
choices={[
|
||||||
|
{ id: null, name: "resources.users.type.default" },
|
||||||
|
{ id: "free", name: "resources.users.type.free" },
|
||||||
|
]}
|
||||||
|
emptyText="resources.users.type.default"
|
||||||
|
/>
|
||||||
<BooleanInput source="admin" />
|
<BooleanInput source="admin" />
|
||||||
<BooleanInput
|
<BooleanInput
|
||||||
source="deactivated"
|
source="deactivated"
|
||||||
|
@ -64,12 +64,17 @@ export default {
|
|||||||
address: "Adresse",
|
address: "Adresse",
|
||||||
creation_ts_ms: "Zeitpunkt der Erstellung",
|
creation_ts_ms: "Zeitpunkt der Erstellung",
|
||||||
consent_version: "Zugestimmte Geschäftsbedingungen",
|
consent_version: "Zugestimmte Geschäftsbedingungen",
|
||||||
|
user_type: "Kontotyp",
|
||||||
// Devices:
|
// Devices:
|
||||||
device_id: "Geräte-ID",
|
device_id: "Geräte-ID",
|
||||||
display_name: "Gerätename",
|
display_name: "Gerätename",
|
||||||
last_seen_ts: "Zeitstempel",
|
last_seen_ts: "Zeitstempel",
|
||||||
last_seen_ip: "IP-Adresse",
|
last_seen_ip: "IP-Adresse",
|
||||||
},
|
},
|
||||||
|
type: {
|
||||||
|
default: "Standard",
|
||||||
|
free: "Basic",
|
||||||
|
},
|
||||||
helper: {
|
helper: {
|
||||||
deactivate: "Deaktivierte Nutzer können nicht wieder aktiviert werden.",
|
deactivate: "Deaktivierte Nutzer können nicht wieder aktiviert werden.",
|
||||||
erase: "DSGVO konformes Löschen der Benutzerdaten",
|
erase: "DSGVO konformes Löschen der Benutzerdaten",
|
||||||
|
@ -70,6 +70,10 @@ export default {
|
|||||||
last_seen_ts: "Timestamp",
|
last_seen_ts: "Timestamp",
|
||||||
last_seen_ip: "IP address",
|
last_seen_ip: "IP address",
|
||||||
},
|
},
|
||||||
|
type: {
|
||||||
|
default: "Standard",
|
||||||
|
free: "Basic",
|
||||||
|
},
|
||||||
helper: {
|
helper: {
|
||||||
deactivate: "Deactivated users cannot be reactivated",
|
deactivate: "Deactivated users cannot be reactivated",
|
||||||
erase: "Mark the user as GDPR-erased",
|
erase: "Mark the user as GDPR-erased",
|
||||||
|
Loading…
Reference in New Issue
Block a user