formEmployeurView.phtml 1.81 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
    <div class="panel panel-default ">
        <div class="panel-heading">
22
            EMPLOYEUR PRINCIPAL
23
24
25
26
27
28
            <?php if (!empty($tblDossier)): ?>
                <?php if (!$intervenantDossier->getTblDossier()->getCompletudeEmployeur()): ?>
                    <span class="label label-warning">A compléter</span>
                <?php else: ?>
                    <span class="label label-success">Complet</span>
                <?php endif; ?>
29
            <?php endif; ?>
30

31
32
33
34
        </div>
        <div class="panel-body">
            <div class="form-group">
                <?= $this->formLabel($dossierEmployeur->get('employeur')); ?>
35
                <div class="input-group cold-md-6 readonly">
36
37
38
39
40
41
42
43
                    <?php
                    if (!empty($intervenantDossier->getEmployeur())) {
                        $employeur = $intervenantDossier->getEmployeur()->getRaisonSociale();
                        $siren     = $intervenantDossier->getEmployeur()->getSiren();
                        echo ($viewEmployeur) ? $employeur . '(SIRET : ' . $siren . ')' : '***************';
                    }
                    ?>
                </div>
44
            </div>
45
46
47
48
49
50
51
        </div>
    </div>
</div>