formEmployeurView.phtml 1.71 KB
Newer Older
1
<?php
2
/**
3
4
5
6
7
 * @var $this               \Application\View\Renderer\PhpRenderer
 * @var $form               \Application\Form\Intervenant\IntervenantDossierForm
 * @var $intervenant        \Application\Entity\Db\Intervenant
 * @var $intervenantDossier \Application\Entity\Db\IntervenantDossier
 * @var $tblDossier         \Application\Entity\Db\TblDossier
8
9
 */

10
11
12
13
14
15
16
17
18
19
use Application\Assertion\IntervenantDossierAssertion;

$viewEmployeur = $this->isAllowed($intervenant, IntervenantDossierAssertion::PRIV_VIEW_EMPLOYEUR);
$form->prepare();
$dossierEmployeur = $form->get('DossierEmployeur');

?>

<!-- Fiedlset Employeur -->
<div class="col-md-6">
20
21
22
    <div class="panel panel-default ">
        <div class="panel-heading">
            EMPLOYEUR
23
            <?php if (!$intervenantDossier->getTblDossier()->getCompletudeEmployeur()): ?>
24
                <span class="label label-warning">A compléter</span>
25
            <?php else: ?>
26
                <span class="label label-success">Complet</span>
27
28
29
30
31
            <?php endif; ?>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <?= $this->formLabel($dossierEmployeur->get('employeur')); ?>
32
                <div class="input-group cold-md-6 readonly">
33
34
35
36
37
38
39
40
                    <?php
                    if (!empty($intervenantDossier->getEmployeur())) {
                        $employeur = $intervenantDossier->getEmployeur()->getRaisonSociale();
                        $siren     = $intervenantDossier->getEmployeur()->getSiren();
                        echo ($viewEmployeur) ? $employeur . '(SIRET : ' . $siren . ')' : '***************';
                    }
                    ?>
                </div>
41
            </div>
42
43
44
45
46
47
48
        </div>
    </div>
</div>