Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
73ffeeae
Commit
73ffeeae
authored
May 25, 2022
by
Charlotte Bataille
Browse files
feat/19663 : work in progress
parent
79f81f50
Pipeline
#18491
failed with stages
in 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Resources/view/dashboard/mainScreen/archiveForm.html
View file @
73ffeeae
...
...
@@ -21,6 +21,7 @@
<div
class=
"col-sm-9"
>
<select
class=
"form-control archiveInput"
name=
"archivalProfileReference"
id=
"archivalProfile"
>
</select>
<input
type=
"hidden"
id=
"archivalProfileToEdit"
/>
</div>
</div>
<div
class=
"form-group"
>
...
...
@@ -568,13 +569,12 @@
}
}
$
(
"
#originatorOrgRegNumber
"
).
on
(
'
change
'
,
changeOriginator
());
function
changeOriginator
()
{
$
(
"
#originatorOrgRegNumber
"
).
on
(
'
change
'
,
function
()
{
var
archivalProfile
=
$
(
'
#archivalProfile
'
);
archivalProfile
.
empty
();
var
option
=
$
(
'
<option/>
'
).
val
(
""
).
text
(
""
).
appendTo
(
archivalProfile
);
var
originatorOrgRegNumber
=
$
(
"
#archiveForm
"
).
find
(
"
[name=originatorOrgRegNumber]
"
).
val
();
var
archivalProfileToEdit
=
$
(
'
#archivalProfileToEdit
'
).
val
();
if
(
originatorOrgRegNumber
&&
!
$
(
'
#parentArchiveId
'
).
val
())
{
$
.
ajax
({
type
:
'
GET
'
,
...
...
@@ -582,14 +582,15 @@
dataType
:
'
json
'
,
contentType
:
'
application/json
'
,
async
:
false
,
success
:
function
(
response
)
{
success
:
function
(
response
)
{
$
.
each
(
response
,
function
(
index
,
profile
){
addSelectProfiles
(
profile
);
})
archivalProfile
.
val
(
archivalProfileToEdit
).
change
();
}
});
}
}
}
;
}
);
function
updateSelectProfilesFromArchivalProfileReference
(
archivalProfileReference
)
{
var
archivalProfile
=
$
(
'
#archivalProfile
'
);
...
...
src/presentation/maarchRM/Resources/view/dashboard/mainScreen/descriptionForm.html
View file @
73ffeeae
...
...
@@ -958,8 +958,10 @@ input:invalid {
if
(
data
.
parentArchiveId
)
{
// console.log("je suis une sous-archive");
}
$
(
'
#archivalProfileToEdit
'
).
val
(
data
.
archivalProfileReference
);
target
.
find
(
"
[name=originatorOrgRegNumber]
"
).
first
().
val
(
data
.
originatorOrgRegNumber
).
change
();
$
(
'
#archivalProfile
'
).
val
(
data
.
archivalProfileReference
).
change
();
// $('#archivalProfile').val(data.archivalProfileReference).change();
}
$
.
each
(
data
,
function
(
property
,
value
)
{
if
(
property
==
"
description
"
)
{
...
...
Write
Preview
Supports
Markdown
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