Add auto-import fields to the UI

This commit is contained in:
Deluan 2020-07-17 19:56:19 -04:00 committed by Deluan Quintão
parent 8f512a40f7
commit 38c3013ddf
3 changed files with 9 additions and 2 deletions

View File

@ -97,7 +97,9 @@
"public": "Pública",
"updatedAt": "Últ. Atualização",
"createdAt": "Data de Criação ",
"songCount": "Músicas"
"songCount": "Músicas",
"sync": "Auto-importar",
"path": "Importar de"
},
"actions": {
"selectPlaylist": "Selecione a playlist:",

View File

@ -65,6 +65,8 @@
"songCount": "Songs",
"owner": "Owner",
"public": "Public",
"sync": "Auto-import",
"path": "Import from",
"updatedAt":"Updated at",
"createdAt": "Created at"
},

View File

@ -3,6 +3,7 @@ import {
Edit,
SimpleForm,
TextInput,
TextField,
BooleanInput,
required,
} from 'react-admin'
@ -11,8 +12,10 @@ const PlaylistEdit = (props) => (
<Edit {...props}>
<SimpleForm redirect="list">
<TextInput source="name" validate={required()} />
<TextInput source="comment" />
<TextInput multiline source="comment" />
<BooleanInput source="public" />
<BooleanInput source="sync" />
<TextField source="path" />
</SimpleForm>
</Edit>
)