Commit d326076a authored by Johnny Leveneur's avatar Johnny Leveneur
Browse files

atelier : mise en responsive des tableaux

parent 81748733
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -60,7 +60,8 @@ $urlRetour = $this->url(null, [], ['query' => $params], true);

<?php echo $this->messenger()->addMessagesFromFlashMessenger(); ?>

<table class="table table-condensed datatable" id="ateliers">
<div class="table-responsive">
    <table class="table table-striped table-hover table-sm datatable" id="ateliers" style="width:100%">
        <thead>
        <tr>
            <th> Année(s) Universitaire</th>
@@ -136,6 +137,7 @@ $urlRetour = $this->url(null, [], ['query' => $params], true);
        <?php endforeach; ?>
        </tbody>
    </table>
</div>

<script>
    $(function () {
+3 −1
Original line number Diff line number Diff line
@@ -43,7 +43,8 @@ $this->headTitle("Groupe d'ateliers");

<?php echo $this->messenger()->addMessagesFromFlashMessenger(); ?>

<table class="datatable table table-condensed table-hover" id="groupes">
<div class="table-responsive">
    <table class="table table-striped table-hover table-sm datatable" id="groupes" style="width:100%">
        <thead>
        <tr>
            <th> Libellé</th>
@@ -135,6 +136,7 @@ $this->headTitle("Groupe d'ateliers");
        <?php endforeach; ?>
        </tbody>
    </table>
</div>

<script>
    $(function () {
+22 −3
Original line number Diff line number Diff line
@@ -41,8 +41,8 @@ $canCreerCompte = $this->isAllowed(UtilisateurPrivileges::getResourceId(Utilisat

<?php echo $this->partial('partial/filtre', ['params' => $params]); ?>


<table class="table table-condensed datatable" id="formateur">
<div class="table-responsive">
    <table class="table table-striped table-hover table-sm datatable" id="formateur" style="width:100%">
        <thead>
        <tr>
            <th> Dénomination</th>
@@ -54,7 +54,7 @@ $canCreerCompte = $this->isAllowed(UtilisateurPrivileges::getResourceId(Utilisat
        </thead>
        <tbody>
        <?php foreach ($intervenants as $intervenant): ?>
        <?php if ($canSupprimer OR $intervenant->estNonHistorise()) : ?>
            <?php if ($canSupprimer or $intervenant->estNonHistorise()) : ?>
                <tr class="<?php if ($intervenant->estHistorise()) echo " historise "; ?>">
                    <td>
                        <?php echo $intervenant->getDenomination(); ?>
@@ -152,9 +152,28 @@ $canCreerCompte = $this->isAllowed(UtilisateurPrivileges::getResourceId(Utilisat
        <?php endforeach; ?>
        </tbody>
    </table>
</div>

<script>
    $(function () {
        $('.datatable').dataTable({
            paging: true,
            autoWidth: false,
            columnDefs: [
                {
                    "targets": 4,
                    "orderable": false
                },
            ],
            "language":
                {
                    "url":
                        "/js/datatables_fr.json",
                }
            ,
        })
        ;

        $("body").on("modification", function (event) {
            event.div.modal('hide');
            window.location.reload();
+3 −1
Original line number Diff line number Diff line
@@ -55,7 +55,8 @@ $urlRetour = $this->url(null, [], ['query' => $params], true);
<?php if (empty($programmes)) : ?>
    <em> Aucun programme !</em>
<?php else : ?>
    <table class="table table-condensed datatable">
    <div class="table-responsive">
        <table class="table table-striped table-hover table-sm datatable" id="programme" style="width:100%">
            <thead>
            <tr>
                <th> Libellé</th>
@@ -115,6 +116,7 @@ $urlRetour = $this->url(null, [], ['query' => $params], true);
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>
<?php endif; ?>

<script>
+16 −7
Original line number Diff line number Diff line
@@ -60,8 +60,8 @@ $urlRetour = $this->url(null, [], ['query' => $params], true);
                'params' => $params
        ], [], true); ?>


<table class="table table-condensed datatable" id="actions">
<div class="table-responsive">
    <table class="table table-striped table-hover table-sm datatable" id="actions" style="width:100%">
        <thead>
        <tr>
            <th> Année(s) Universitaire</th>
@@ -92,8 +92,12 @@ $urlRetour = $this->url(null, [], ['query' => $params], true);
                <td>
                    <?php
                    $seances = $session->getSeances();
                $seances = array_filter($seances, function (Seance $seance) {return $seance->estNonHistorise();});
                usort($seances, function (Seance $seance1, Seance $seance2) { return $seance1 <=> $seance2;});
                    $seances = array_filter($seances, function (Seance $seance) {
                        return $seance->estNonHistorise();
                    });
                    usort($seances, function (Seance $seance1, Seance $seance2) {
                        return $seance1 <=> $seance2;
                    });
                    ?>
                    <?php if (empty($seances)): ?>
                        <em>Aucune séance</em>
@@ -113,11 +117,15 @@ $urlRetour = $this->url(null, [], ['query' => $params], true);
                <td>
                    <?php
                    $inscriptions = $session->getInscriptions();
                    $inscriptions = array_filter($inscriptions, function (Inscription $inscription) { return $inscription->estNonHistorise();});
                    $inscriptions = array_filter($inscriptions, function (Inscription $inscription) {
                        return $inscription->estNonHistorise();
                    });
                    ?>
                    Inscription : <?php echo count($inscriptions); ?><br>
                Principale :  <?php echo count($session->getListePrincipale()); ?> /<?php echo $session->getNbPlacePrincipale(); ?><br>
                Complémentaire : <?php echo count($session->getListeComplementaire()); ?>/<?php echo $session->getNbPlaceComplementaire(); ?>
                    Principale : <?php echo count($session->getListePrincipale()); ?>
                    /<?php echo $session->getNbPlacePrincipale(); ?><br>
                    Complémentaire : <?php echo count($session->getListeComplementaire()); ?>
                    /<?php echo $session->getNbPlaceComplementaire(); ?>
                </td>
                <td class="action">
                    <?php if ($canAfficher) : ?>
@@ -167,6 +175,7 @@ $urlRetour = $this->url(null, [], ['query' => $params], true);
        <?php endforeach; ?>
        </tbody>
    </table>
</div>

<script>
    $(function () {
Loading