formEmployeurView.phtml 1.86 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
    <div class="panel-heading">
        EMPLOYEUR
36
37
38
39
40
        <?php if (!$intervenantDossierCompletude['dossierEmployeur']): ?>
            <small><span class="label label-warning">A compléter</span></small>
        <?php else: ?>
            <small><span class="label label-success">Complet</span></small>
        <?php endif; ?>
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
    </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 {
                    echo 'NON RENSEIGNE';
                }
                ?>
            </div>
56
57
58
59
60
61
62
63
        </div>
    </div>
</div>