Add auto-import fields to the UI
This commit is contained in:
@@ -97,7 +97,9 @@
|
|||||||
"public": "Pública",
|
"public": "Pública",
|
||||||
"updatedAt": "Últ. Atualização",
|
"updatedAt": "Últ. Atualização",
|
||||||
"createdAt": "Data de Criação ",
|
"createdAt": "Data de Criação ",
|
||||||
"songCount": "Músicas"
|
"songCount": "Músicas",
|
||||||
|
"sync": "Auto-importar",
|
||||||
|
"path": "Importar de"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"selectPlaylist": "Selecione a playlist:",
|
"selectPlaylist": "Selecione a playlist:",
|
||||||
|
|||||||
@@ -65,6 +65,8 @@
|
|||||||
"songCount": "Songs",
|
"songCount": "Songs",
|
||||||
"owner": "Owner",
|
"owner": "Owner",
|
||||||
"public": "Public",
|
"public": "Public",
|
||||||
|
"sync": "Auto-import",
|
||||||
|
"path": "Import from",
|
||||||
"updatedAt":"Updated at",
|
"updatedAt":"Updated at",
|
||||||
"createdAt": "Created at"
|
"createdAt": "Created at"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import {
|
|||||||
Edit,
|
Edit,
|
||||||
SimpleForm,
|
SimpleForm,
|
||||||
TextInput,
|
TextInput,
|
||||||
|
TextField,
|
||||||
BooleanInput,
|
BooleanInput,
|
||||||
required,
|
required,
|
||||||
} from 'react-admin'
|
} from 'react-admin'
|
||||||
@@ -11,8 +12,10 @@ const PlaylistEdit = (props) => (
|
|||||||
<Edit {...props}>
|
<Edit {...props}>
|
||||||
<SimpleForm redirect="list">
|
<SimpleForm redirect="list">
|
||||||
<TextInput source="name" validate={required()} />
|
<TextInput source="name" validate={required()} />
|
||||||
<TextInput source="comment" />
|
<TextInput multiline source="comment" />
|
||||||
<BooleanInput source="public" />
|
<BooleanInput source="public" />
|
||||||
|
<BooleanInput source="sync" />
|
||||||
|
<TextField source="path" />
|
||||||
</SimpleForm>
|
</SimpleForm>
|
||||||
</Edit>
|
</Edit>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user