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
8a204f82
Commit
8a204f82
authored
Jul 14, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding external url
parent
0e3e8103
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
index.js
src/views/assets/projectassets/add/index.js
+2
-0
index.js
src/views/assets/projectassets/card/index.js
+17
-2
main.js
src/views/assets/projectassets/edit/main.js
+1
-0
No files found.
src/views/assets/projectassets/add/index.js
View file @
8a204f82
...
...
@@ -30,6 +30,7 @@ const Tables = () => {
parentid
:
values
.
parentid
,
parenttype
:
values
.
parenttype
,
external_id
:
values
.
external_id
,
external_url
:
values
.
external_url
,
textual
:
values
.
textual
,
availability
:
values
.
availability
,
genres
:
values
.
genres
,
...
...
@@ -64,6 +65,7 @@ const Tables = () => {
parentid
:
null
,
parenttype
:
null
,
external_id
:
''
,
external_url
:
''
,
textual
:
[],
genres
:
[],
subgenres
:
[],
...
...
src/views/assets/projectassets/card/index.js
View file @
8a204f82
...
...
@@ -94,7 +94,8 @@ const handleError = (text) => {
title
:
values
.
title
,
parentid
:
values
.
parentid
,
parenttype
:
values
.
parenttype
,
external_id
:
values
.
external_id
external_id
:
values
.
external_id
,
external_url
:
values
.
external_url
}
onSubmitHandler
(
submitElement
,
uploadFiles
)
...
...
@@ -361,13 +362,27 @@ return (
type
=
'text'
name
=
'external_id'
id
=
'external_id'
innerRef
=
{
register
({
required
:
tru
e
})}
innerRef
=
{
register
({
required
:
fals
e
})}
placeholder
=
'external_id'
defaultValue
=
{
dataElement
&&
dataElement
.
external_id
}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'external_id'
]
})}
/
>
<
/FormGroup
>
<
/Col
>
<
Col
md
=
'4'
sm
=
'12'
>
<
FormGroup
>
<
Label
for
=
'external_id'
>
External
Url
<
/Label
>
<
Input
type
=
'text'
name
=
'external_url'
id
=
'external_url'
innerRef
=
{
register
({
required
:
false
})}
placeholder
=
'external_url'
defaultValue
=
{
dataElement
&&
dataElement
.
external_url
}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'external_url'
]
})}
/
>
<
/FormGroup
>
<
/Col
>
<
/Row
>
<
Row
>
<
Col
className
=
'mb-1'
md
=
'6'
sm
=
'12'
>
...
...
src/views/assets/projectassets/edit/main.js
View file @
8a204f82
...
...
@@ -33,6 +33,7 @@ const ElementEdit = () => {
parentid
:
values
.
parentid
,
parenttype
:
values
.
parenttype
,
external_id
:
values
.
external_id
,
external_url
:
values
.
external_url
,
genres
:
values
.
genres
,
subgenres
:
values
.
subgenres
,
data
:
uploadFile
...
...
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