formEmployeurView.phtml 1.98 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

use Application\Assertion\IntervenantDossierAssertion;

/**
 * @var $this               \Application\View\Renderer\PhpRenderer
 * @var $form               \Application\Form\Intervenant\Dossier
 * @var $intervenantDossier \Application\Entity\Db\IntervenantDossier
 * @var $canValider         boolean
 * @var $canDevalider       boolean
 * @var $canSupprimer       boolean
 * @var $dossier            Dossier
 */
$viewEmployeur = $this->isAllowed($intervenant, IntervenantDossierAssertion::PRIV_VIEW_EMPLOYEUR);
$form->prepare();
$dossierEmployeur = $form->get('DossierEmployeur');

?>

<style>
    div.rib-part {
        display: inline-block;
        vertical-align: top;
    }

    div.rib-part input {
        width: auto;
    }
</style>


<!-- Fiedlset Employeur -->
<div class="col-md-6">
34
35
36
37
    <div class="panel panel-default ">
        <div class="panel-heading">
            EMPLOYEUR
            <?php if (!$intervenantDossierCompletude['dossierEmployeur']): ?>
38
                <span class="label label-warning">A compléter</span>
39
            <?php else: ?>
40
                <span class="label label-success">Complet</span>
41
42
43
44
45
46
47
48
49
50
51
52
            <?php endif; ?>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <?= $this->formLabel($dossierEmployeur->get('employeur')); ?>
                <div class="input-group cold-md-6" style="display:block;background-color:#eee;padding:5px;">
                    <?php
                    if (!empty($intervenantDossier->getEmployeur())) {
                        $employeur = $intervenantDossier->getEmployeur()->getRaisonSociale();
                        $siren     = $intervenantDossier->getEmployeur()->getSiren();
                        echo ($viewEmployeur) ? $employeur . '(SIRET : ' . $siren . ')' : '***************';
                    } else {
53
                        echo '- NON RENSEIGNÉ -';
54
55
56
                    }
                    ?>
                </div>
57
            </div>
58
59
60
61
62
63
64
        </div>
    </div>
</div>