Commit 51211b9c authored by Florian Joriot's avatar Florian Joriot
Browse files

Merge branch 'refs/heads/b24'

# Conflicts:
#	module/Intervenant/src/Service/StatutService.php
#	public/css/app.css
#	public/css/app.css.map
#	public/js/mod-ajax.js
parents e1c723aa 9a3b16b7
Loading
Loading
Loading
Loading
Loading
+3 −2
Changes for module/Intervenant/src/Controller/NoteController.php: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -149,8 +149,9 @@ class NoteController extends AbstractController
                $mail->subject($subject);
                $mail->text($content);
                $mail->html($content);
                if (!empty($copy)) {
                    $mail->cc($copy);
                $copies = array_filter(array_map('trim', explode(';', (string)$copy)));
                if (!empty($copies)) {
                    $mail->bcc(...$copies);
                }
                $this->getMailService()->send($mail);
                //Création d'une trace de l'envoi dans les notes de l'intervenant
+4
Changes for module/Intervenant/src/Service/StatutService.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -172,6 +172,10 @@ class StatutService extends AbstractEntityService

        $cacheDriver = $this->getEntityManager()->getConfiguration()->getResultCache();
        $cacheDriver->deleteItem(self::CACHE_KEY.$entity->getAnnee()->getId());
        // Sans mission, pas de candidature possible aux offres d'emploi
        if (!$entity->getMission()) {
            $entity->setOffreEmploiPostuler(false);
        }
        $this->getSessionContainer()->offsetUnset('privileges' . $entity->getAnnee()->getId());

        return parent::save($entity); // TODO: Change the autogenerated stub
+19 −1
Changes for module/Intervenant/view/intervenant/note/envoyer-email.phtml: 19 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ echo $this->form()->openTag($form);

echo $this->formControlGroup($form->get('from'));
echo $this->formControlGroup($form->get('to'));
$form->get('copy')->setAttribute('info_icon', 'Pour plusieurs adresses, séparez-les par des points-virgules (;).');
echo $this->formControlGroup($form->get('copy'));
echo $this->formControlGroup($form->get('subject'));
echo $this->formControlGroup($form->get('content'));
@@ -21,17 +22,34 @@ echo $this->form()->closeTag();

?>

<style>
    #mailer-intervenant .icon-information {
        cursor: help;
    }
</style>

<script type="text/javascript">
    $(function () {
        var selector = "textarea#<?= $form->get('content')->getAttribute('id') ?>";
        var form = $("form#<?= $form->getAttribute('id') ?>");
        var message = "Êtes-vous sûr(e) de vouloir envoyer ce message à l'intervenant ?";
        var copyFormatError = $('<div class="alert alert-danger" role="alert" style="display:none"></div>')
            .prependTo(form);


        installEditor(selector, form);

        //  avant de POSTer
        //  avant le POST verification de la construction des adresse mail
        form.submit(function (e) {
            var copy = form.find('[name="copy"]').val();
            if (copy.includes(',') || copy.includes('/')) {
                e.preventDefault();
                e.stopPropagation();
                copyFormatError.text('Format incorrect : séparez les adresses par des points-virgules (;).').show();
                return;
            }
            copyFormatError.hide();

            if (!confirm(message)) {
                e.preventDefault();
                e.stopPropagation();
+5
Changes for public/css/plafonds.scss: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,3 +12,8 @@
.plafonds .plafond {
  margin-bottom: 10px;
}

.plafonds-config input[data-name="heures"] {
  width: 10ch;
  min-width: 10ch;
}
 No newline at end of file