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
bc1708d0
Commit
bc1708d0
authored
May 01, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding plaform to layout menu
parent
3a84115e
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
307 additions
and
25 deletions
+307
-25
index.js
src/views/screens/layoutmenus/add/index.js
+7
-5
index.js
src/views/screens/layoutmenus/card/index.js
+5
-19
plataform.js
src/views/screens/layoutmenus/card/plataform.js
+292
-0
main.js
src/views/screens/layoutmenus/edit/main.js
+3
-1
No files found.
src/views/screens/layoutmenus/add/index.js
View file @
bc1708d0
...
@@ -25,7 +25,8 @@ const Tables = () => {
...
@@ -25,7 +25,8 @@ const Tables = () => {
dispatch
(
dispatch
(
addlayoutmenu
({
addlayoutmenu
({
name
:
values
.
name
,
name
:
values
.
name
,
slug
:
values
.
slug
slug
:
values
.
slug
,
platforms
:
values
.
platforms
})
})
)
)
...
@@ -46,10 +47,11 @@ const Tables = () => {
...
@@ -46,10 +47,11 @@ const Tables = () => {
<
h4
className
=
"card-title"
>
New
{
moduleSettings
.
mainTitleSingle
}
<
/h4
>
<
h4
className
=
"card-title"
>
New
{
moduleSettings
.
mainTitleSingle
}
<
/h4
>
<
/div
>
<
/div
>
<
div
className
=
"card-body"
>
<
div
className
=
"card-body"
>
<
ElementCard
selected
Projec
t
=
{{
<
ElementCard
selected
Elemen
t
=
{{
id
:
'<generate>'
,
id
:
'<generate>'
,
name
:
''
,
name
:
''
,
slug
:
''
slug
:
''
,
platforms
:
[]
}}
}}
onSubmitHandler
=
{
onSubmitHandler
}
onSubmitHandler
=
{
onSubmitHandler
}
/
>
/
>
...
...
src/views/screens/layoutmenus/card/index.js
View file @
bc1708d0
...
@@ -20,6 +20,8 @@ import classnames from 'classnames'
...
@@ -20,6 +20,8 @@ import classnames from 'classnames'
import
Swal
from
'sweetalert2'
import
Swal
from
'sweetalert2'
import
withReactContent
from
'sweetalert2-react-content'
import
withReactContent
from
'sweetalert2-react-content'
import
ElementPlatform
from
'./plataform'
const
SuccessProgressToast
=
()
=>
(
const
SuccessProgressToast
=
()
=>
(
<
Fragment
>
<
Fragment
>
...
@@ -144,25 +146,9 @@ return (
...
@@ -144,25 +146,9 @@ return (
/
>
/
>
<
/FormGroup
>
<
/FormGroup
>
<
/Col
>
<
/Col
>
{
/* <Col md='4' sm='12'>
<
Col
sm
=
'12'
>
<FormGroup>
<
ElementPlatform
dataElement
=
{
dataElement
}
setElement
=
{
setElementData
}
store
=
{
store
}
/
>
<Label for='email'>Email</Label>
<
/Col
>
<Input disabled='disabled' type='text' id='email' placeholder='Email' defaultValue={ProjectData && ProjectData.email} />
</FormGroup>
</Col> */
}
{
/* <Col md='4' sm='12'>
<FormGroup>
<Label for='name'>Name</Label>
<Input type='select' name='name' id='name' defaultValue={dataElement && dataElement.name} onChange={e => setPlatformName(e.target.value)}>
<option value='Web'>Web</option>
<option value='iOS Phone'>iOS Phone</option>
<option value='iOS Tablet'>iOS Tablet</option>
<option value='Android Phone'>Android Phone</option>
<option value='Android Tablet'>Android Tablet</option>
</Input>
</FormGroup>
</Col> */
}
<
Col
className
=
'd-flex flex-sm-row flex-column mt-2'
sm
=
'12'
>
<
Col
className
=
'd-flex flex-sm-row flex-column mt-2'
sm
=
'12'
>
<
Button
.
Ripple
className
=
'mb-1 mb-sm-0 mr-0 mr-sm-1'
type
=
'submit'
color
=
'primary'
>
<
Button
.
Ripple
className
=
'mb-1 mb-sm-0 mr-0 mr-sm-1'
type
=
'submit'
color
=
'primary'
>
...
...
src/views/screens/layoutmenus/card/plataform.js
0 → 100644
View file @
bc1708d0
This diff is collapsed.
Click to expand it.
src/views/screens/layoutmenus/edit/main.js
View file @
bc1708d0
...
@@ -23,9 +23,11 @@ const ElementEdit = () => {
...
@@ -23,9 +23,11 @@ const ElementEdit = () => {
const
onSubmitHandler
=
values
=>
{
const
onSubmitHandler
=
values
=>
{
dispatch
(
dispatch
(
updateLayoutMenu
({
updateLayoutMenu
({
...
dataElement
,
id
:
values
.
id
,
id
:
values
.
id
,
name
:
values
.
name
,
name
:
values
.
name
,
slug
:
values
.
slug
slug
:
values
.
slug
,
platforms
:
values
.
platforms
})
})
)
)
...
...
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