Skip to content
Snippets Groups Projects
Select Git revision
  • 87b97db14a67f0d6a1dd8659bebef582b7ef26e0
  • master default protected
  • update-min-openvox-version-07f8cb2
  • cleanup_fixtures
  • add-openvox
  • freebsd-14
  • remove-legacy-top-scope-syntax
  • rel430
  • tests
  • revert-363-augeas-module-cleanup
  • release-4.1.0
  • puppet8
  • relax-dependencies
  • rel400
  • mode
  • puppet7
  • release-3.1.0
  • freebsd13
  • freebsd11
  • stdlib
  • centos
  • v6.0.0
  • v5.1.0
  • v5.0.0
  • v4.5.0
  • v4.4.0
  • v4.3.0
  • v4.2.1
  • v4.2.0
  • v4.1.0
  • v4.0.0
  • v3.1.0
  • v3.0.0
  • v2.0.0
  • 1.12.0
  • 1.11.0
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.0
  • 1.6.0
41 results

postfix_virtual_spec.rb

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    index.phtml 3.48 KiB
    <?php
    /**
     * @var $this \Application\View\Renderer\PhpRenderer
     * @var $motifModificationServices \Application\Entity\Db\MotifModificationService[]
     */
    
    use Application\Provider\Privilege\Privileges;
    
    function affBooleen($flg)
    {
        // affiche booléen avec des glypheIcon
        return ($flg ? '<span class="glyphicon glyphicon-ok text-success"></span>' : '<span class="glyphicon glyphicon-remove text-danger refuse"></span>');
    }
    
    $this->headTitle()->append("Motifs de modification de service dû");
    
    $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::MOTIFS_MODIFICATION_SERVICE_DU_EDITION));
    
    ?>
        <h1 class="page-header">Motifs de modification de service dû</h1>
    
        <table class="table table-bordered table-sort">
            <thead>
                        <th style="word-wrap: break-word ; ">Code</th>
                        <th style="word-wrap: break-word ; ">Libelle</th>
                        <th style="word-wrap: break-word ; ">Multiplicateur</th>
                        <th style="word-wrap: break-word ; ">Décharge</th>
    <?php if ($canEdit) echo '<th>Actions</th>' ?>
            </thead>
            <tbody>
            <?php foreach ($motifModificationServices as $fr): ?>
                <tr>
                         <td style="word-wrap: break-word ; "><?= $fr->getCode() ?></td>
                         <td style="word-wrap: break-word ; "><?= $fr->getLibelle() ?></td>
                         <td style="word-wrap: break-word ; "><?= $fr->getMultiplicateur() ?></td>
                         <td style="word-wrap: break-word ; "><?= affBooleen($fr->getDecharge()) ?></td>
                        <?php if ($canEdit) { ?>
                        <td style="text-align:center;width:1px;white-space: nowrap">
                            <a class="ajax-modal" data-event="motif-modification-service-saisie"
                               href="<?= $this->url('motif-modification-service/saisie', ['motif-modification-service' => $fr->getId()]) ?>"
                               title="Modifier le Motif de Modificationde Service dû">
                                <span class="glyphicon glyphicon-edit"></span></a>
                            <a class="pop-ajax"
                               href="<?= $this->url('motif-modification-service/delete', ['motif-modification-service' => $fr->getId()]) ?>"
                               title="Supprimer le Motif de Modificationde Service dû"
                               data-content="<p class='lead text-danger'><strong>Attention!</strong> Confirmez-vous cette suppression ?</p>"
                               data-confirm="true"
                               data-confirm-button="Oui"
                               data-cancel-button="Non"
                               data-submit-reload="true"
                            >
                                <span class="glyphicon glyphicon-remove"></span>
                            </a>
                        </td>
                    <?php } ?>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
        <?php if ($canEdit): ?>
        <a class="btn btn-primary ajax-modal" data-event="motif-modification-service-saisie"
           href="<?= $this->url('motif-modification-service/saisie') ?>"
           title="Ajouter un motif de modification du service dû">
            <span class="glyphicon glyphicon-edit"></span>
            Ajouter un motif de modification du service dû</a>
    
        <script type="text/javascript">
            $(function () {
                $("body").on("motif-modification-service-saisie", function (event, data) {
                    window.location.reload();
                });
            });
        </script>
    <?php endif ?>