Verified Commit 2153f21a authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Add option derogation

parent 125786ac
......@@ -636,3 +636,17 @@ msgctxt "meta-data"
msgid "Default control authority"
msgstr "Autorité de contrôle par défaut"
msgid "Send to derogation"
msgstr "Envoyer en dérogation"
msgid "Derogation for"
msgstr "Dérogation pour"
msgid "A communication can be sent without derogation only in the case where the communication is for the originating service."
msgstr "Une communication peut être envoyé sans dérogation seulement dans le cas où la communication est destiné au service producteur."
msgid "Sent a derogation for"
msgstr "Envoie d'une dérogation pour"
msgid "Service or organization"
msgstr "Service ou organisation"
<script>
var requestCommunication_serialize = function() {
var parameter = {};
parameter.derogation = 0;
if ($('#derogationTr').is(':visible') && $("#derogationTr [name='sendDerogation']").is(':checked')) {
if ($("#derogationTypeahead").val().length !== 0) {
parameter.derogation = 1;
}else {
gritter.show($('#empty_text').html(), false);
return -1;
}
}
return parameter;
};
</script>
\ No newline at end of file
......@@ -122,6 +122,14 @@
this.modal.modal();
}
if (type === 'requestCommunication' && $('#' +archiveId).data('iscommunicable') === 1) {
$('#derogationTr').show();
$('#derogationTypeaheadTr').show();
} else {
$('#derogationTr').hide();
$('#derogationTypeaheadTr').hide();
}
$('#save').data("archiveids", "");
$('#archiveModificationForm').css('display', '');
$('#modal_multipleSelection').css('display', 'none');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment