Commit f5a9620e authored by PDuarte's avatar PDuarte

adding layout epg fields

parent fce739c5
......@@ -26,7 +26,10 @@ const Tables = () => {
addlayoutEPG({
name: values.name,
slug: values.slug,
platforms: values.platforms
platforms: values.platforms,
epg_interval: values.epg_interval,
onnow_interval: values.onnow_interval,
epg_empty_block_interval: values.epg_empty_block_interval
})
)
......
......@@ -70,7 +70,10 @@ const handleError = (text) => {
const submitElement = {
...dataElement,
name: values.name,
slug: values.slug
slug: values.slug,
epg_interval: values.epg_interval,
onnow_interval: values.onnow_interval,
epg_empty_block_interval: values.epg_empty_block_interval
}
onSubmitHandler(submitElement)
......@@ -146,6 +149,50 @@ return (
/>
</FormGroup>
</Col>
<Col md='4' sm='12'>
<FormGroup>
<Label for='epg_interval'>epg_interval</Label>
<Input
type='text'
name='epg_interval'
id='epg_interval'
innerRef={register({ required: true })}
placeholder='epg_interval'
defaultValue={dataElement && dataElement.epg_interval}
className={classnames({ 'is-invalid': errors['epg_interval'] })}
/>
</FormGroup>
</Col>
<Col md='4' sm='12'>
<FormGroup>
<Label for='onnow_interval'>onnow_interval</Label>
<Input
type='text'
name='onnow_interval'
id='onnow_interval'
innerRef={register({ required: true })}
placeholder='onnow_interval'
defaultValue={dataElement && dataElement.onnow_interval}
className={classnames({ 'is-invalid': errors['onnow_interval'] })}
/>
</FormGroup>
</Col>
<Col md='4' sm='12'>
<FormGroup>
<Label for='epg_empty_block_interval'>epg_empty_block_interval</Label>
<Input
type='text'
name='epg_empty_block_interval'
id='epg_empty_block_interval'
innerRef={register({ required: true })}
placeholder='epg_empty_block_interval'
defaultValue={dataElement && dataElement.epg_empty_block_interval}
className={classnames({ 'is-invalid': errors['epg_empty_block_interval'] })}
/>
</FormGroup>
</Col>
<Col sm='12'>
<ElementPlatform dataElement={dataElement} setElement={setElementData} store={store} />
</Col>
......
......@@ -27,7 +27,10 @@ const ElementEdit = () => {
id: values.id,
name: values.name,
slug: values.slug,
platforms: values.platforms
platforms: values.platforms,
epg_interval: values.epg_interval,
onnow_interval: values.onnow_interval,
epg_empty_block_interval: values.epg_empty_block_interval
})
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment