formEmployeurView.phtml 1.51 KB
Newer Older
1
2
<?php

3
4
5
6
7
/**
 * @var $this                \Application\View\Renderer\PhpRenderer
 * @var $intervenantDossier  \Application\Entity\Db\IntervenantDossier
 */

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