Skip to content

Commit

Permalink
Added new feature .... RdP and Admin can copy or link an attachment t…
Browse files Browse the repository at this point in the history
…o the call in the it's child
  • Loading branch information
mspasiano committed Jan 30, 2024
1 parent 86a80ce commit 894b719
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,28 +593,32 @@ define(['jquery', 'cnr/cnr', 'i18n', 'cnr/cnr.actionbutton', 'json!common', 'han
{
linkcallfile : (common.User.admin || isConcorsi() || isRdP(callMetadata['jconon_call:rdp'])) &&
callMetadata['cmis:secondaryObjectTypeIds'].indexOf('P:jconon_call:aspect_macro_call') != -1 ? function () {
var close = UI.progress();
jconon.Data.call.linkcallfile({
type: 'POST',
data: [{name: 'callId', value: callMetadata['cmis:objectId']},{name: 'id', value: el.id}],
success: function (data) {
UI.info("Il file è stato LINKATO in " + data.result + " bandi.");
},
complete: close,
error: URL.errorFn
UI.confirm(i18n.prop('label.call.confirm.link.file', el.name, callMetadata['jconon_call:codice']), function () {
var close = UI.progress();
jconon.Data.call.linkcallfile({
type: 'POST',
data: [{name: 'callId', value: callMetadata['cmis:objectId']},{name: 'id', value: el.id}],
success: function (data) {
UI.info(i18n.prop('label.call.confirmed.link.file',data.result));
},
complete: close,
error: URL.errorFn
});
});
} : false,
copycallfile : (common.User.admin || isConcorsi() || isRdP(callMetadata['jconon_call:rdp'])) &&
callMetadata['cmis:secondaryObjectTypeIds'].indexOf('P:jconon_call:aspect_macro_call') != -1 ? function () {
var close = UI.progress();
jconon.Data.call.copycallfile({
type: 'POST',
data: [{name: 'callId', value: callMetadata['cmis:objectId']},{name: 'id', value: el.id}],
success: function (data) {
UI.info("Il file è stato COPIATO in " + data.result + " bandi.");
},
complete: close,
error: URL.errorFn
UI.confirm(i18n.prop('label.call.confirm.copy.file', el.name, callMetadata['jconon_call:codice']), function () {
var close = UI.progress();
jconon.Data.call.copycallfile({
type: 'POST',
data: [{name: 'callId', value: callMetadata['cmis:objectId']},{name: 'id', value: el.id}],
success: function (data) {
UI.info(i18n.prop('label.call.confirmed.copy.file',data.result));
},
complete: close,
error: URL.errorFn
});
});
} : false,
sendcallfile : function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -747,4 +747,9 @@ label.commission-gender.4=For further information and insights, the dedicated pa

message.performed.commission.register=Registration in the Researchers Register is confirmed.

actions.scarica_curriculum=Download Curriculum
actions.scarica_curriculum=Download Curriculum

label.call.confirm.link.file=Are you sure you want to create the link to the <b>{0}</b> file, in all the sub calls of the <b>{1}</b> call?
label.call.confirmed.link.file=The file has been <b>LINKED</b> in {0} calls.
label.call.confirm.copy.file=Are you sure you want to copy the <b>{0}</b> file, in all the sub calls of the <b>{1}</b> call?
label.call.confirmed.copy.file=The file has been <b>COPIED</b> in {0} calls.
Original file line number Diff line number Diff line change
Expand Up @@ -927,4 +927,9 @@ message.performed.commission.register=Si conferma l’iscrizione all’Albo Rice
actions.scarica_curriculum=Scarica Curriculum
actions.valorizza_data_iscrizione=Iscrivi nell'Albo
actions.rimuovi_data_iscrizione=Rimuovi dall'Albo
page.my-manage-commission-register.nousers=Nessun risultato trovato
page.my-manage-commission-register.nousers=Nessun risultato trovato

label.call.confirm.link.file=Sei sicuro di voler creare il collegamento al file <b>{0}</b>, in tutti i sotto bandi del bando <b>{1}</b>?
label.call.confirmed.link.file=Il file è stato <b>LINKATO</b> in {0} bandi.
label.call.confirm.copy.file=Sei sicuro di voler copiare il file <b>{0}</b>, in tutti i sotto bandi del bando <b>{1}</b>?
label.call.confirmed.copy.file=Il file è stato <b>COPIATO</b> in {0} bandi.

0 comments on commit 894b719

Please sign in to comment.