Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pedro-dev_2
cms
Commits
f5a9620e
Commit
f5a9620e
authored
May 02, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding layout epg fields
parent
fce739c5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
3 deletions
+56
-3
index.js
src/views/screens/layoutepgs/add/index.js
+4
-1
index.js
src/views/screens/layoutepgs/card/index.js
+48
-1
main.js
src/views/screens/layoutepgs/edit/main.js
+4
-1
No files found.
src/views/screens/layoutepgs/add/index.js
View file @
f5a9620e
...
@@ -26,7 +26,10 @@ const Tables = () => {
...
@@ -26,7 +26,10 @@ const Tables = () => {
addlayoutEPG
({
addlayoutEPG
({
name
:
values
.
name
,
name
:
values
.
name
,
slug
:
values
.
slug
,
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
})
})
)
)
...
...
src/views/screens/layoutepgs/card/index.js
View file @
f5a9620e
...
@@ -70,7 +70,10 @@ const handleError = (text) => {
...
@@ -70,7 +70,10 @@ const handleError = (text) => {
const
submitElement
=
{
const
submitElement
=
{
...
dataElement
,
...
dataElement
,
name
:
values
.
name
,
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
)
onSubmitHandler
(
submitElement
)
...
@@ -146,6 +149,50 @@ return (
...
@@ -146,6 +149,50 @@ return (
/
>
/
>
<
/FormGroup
>
<
/FormGroup
>
<
/Col
>
<
/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'
>
<
Col
sm
=
'12'
>
<
ElementPlatform
dataElement
=
{
dataElement
}
setElement
=
{
setElementData
}
store
=
{
store
}
/
>
<
ElementPlatform
dataElement
=
{
dataElement
}
setElement
=
{
setElementData
}
store
=
{
store
}
/
>
<
/Col
>
<
/Col
>
...
...
src/views/screens/layoutepgs/edit/main.js
View file @
f5a9620e
...
@@ -27,7 +27,10 @@ const ElementEdit = () => {
...
@@ -27,7 +27,10 @@ const ElementEdit = () => {
id
:
values
.
id
,
id
:
values
.
id
,
name
:
values
.
name
,
name
:
values
.
name
,
slug
:
values
.
slug
,
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
})
})
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment