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

evenemtiel : mise en responsive des tableaux

parent 29dd0e3e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -43,7 +43,8 @@ $this->headTitle("Categories");

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

<table class="table table-condensed datatable" id="strtolower(Categorie)">
<div class="table-responsive">
    <table class="table table-striped table-hover table-sm datatable" id="ategorie" style="width:100%">
        <thead>
        <tr>
            <th> Libellé</th>
@@ -114,6 +115,7 @@ $this->headTitle("Categories");
        <?php endforeach; ?>
        </tbody>
    </table>
</div>

<script>
    $(function () {
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ $this->headTitle("Evenements");
<?php echo $this->messenger()->addMessagesFromFlashMessenger(); ?>

<div class="table-responsive">
    <table class="table table-condensed datatable" id="evenements">
    <table class="table table-striped table-hover table-sm datatable" id="evenements" style="width:100%" >
        <thead>
        <tr>
            <th> Libellé</th>
+6 −6
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ $canModifierInscription = $this->isAllowed(EvenementielinscriptionPrivileges::ge

<?php echo $this->messenger()->addMessagesFromFlashMessenger(); ?>
<div class="table-responsive">
    <table class="table table-condensed datatable" id="inscriptions">
    <table class="table table-striped table-hover table-sm datatable" id="inscriptions" style="width:100%">
        <thead>
        <tr>
            <th data-type="string"> Participant·e</th>
@@ -82,7 +82,8 @@ $canModifierInscription = $this->isAllowed(EvenementielinscriptionPrivileges::ge
                    <td data-order="<?php echo $participant->getDenomination(false); ?>">
                        <?php echo $participant->getDenomination() ?>
                    </td>
<!--                    <td data-order="--><?php //echo $inscription->getHistoCreation()->format('Y/m/d H:i:s'); ?><!--">-->
                    <!--                    <td data-order="-->
                    <?php //echo $inscription->getHistoCreation()->format('Y/m/d H:i:s'); ?><!--">-->
                    <!--                        --><?php //echo $inscription->getHistoCreation()->format('d/m/Y H:i:s'); ?>
                    <!--                    </td>-->
                    <!--                    <td> --><?php //echo $participant->getTypeParticipant(); ?><!--</td>-->
@@ -166,7 +167,7 @@ $canModifierInscription = $this->isAllowed(EvenementielinscriptionPrivileges::ge
    <div class="alert alert-info"> Aucune inscription dans la liste principale.</div>
<?php else : ?>
    <div class="table-responsive">
        <table id="liste_principale" class="datatable table table-condensed table-hover">
        <table class="table table-striped table-hover table-sm datatable" id="liste_principale" style="width:100%">
            <thead>
            <tr>
                <th data-type="string"> Dénomination</th>
@@ -186,7 +187,6 @@ $canModifierInscription = $this->isAllowed(EvenementielinscriptionPrivileges::ge
                    </td>
                    <td class="action">
                        <?php if ($canModifierInscription) : ?>
                            <br>
                            <?php /** @see \Evenementiel\Controller\InscriptionController::envoyerListeComplementaireAction() */ ?>
                            <a href="<?php echo $this->url('evenementiel/inscription/envoyer-liste-complementaire'
                                    , ['entity' => $inscription->getId()]
@@ -212,7 +212,7 @@ $canModifierInscription = $this->isAllowed(EvenementielinscriptionPrivileges::ge
    <div class="alert alert-info"> Aucune inscription dans la liste complémentaire.</div>
<?php else : ?>
    <div class="table-responsive">
        <table id="liste_complementaire" class="datatable table table-condensed table-hover">
        <table class="table table-striped table-hover table-sm datatable" id="liste_complementaire" style="width:100%">
            <thead>
            <tr>
                <th data-type="string"> Dénomination</th>
@@ -259,7 +259,7 @@ $canModifierInscription = $this->isAllowed(EvenementielinscriptionPrivileges::ge
    <div class="alert alert-info"> Aucune inscription historisée.</div>
<?php else : ?>
    <div class="table-responsive">
        <table id="liste_historisee" class="datatable table table-condensed table-hover">
        <table class="table table-striped table-hover table-sm datatable" id="liste_historisee" style="width:100%">
            <thead>
            <tr>
                <th data-type="string"> Dénomination</th>
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ $canInscrire = $this->isAllowed(EvenementPrivileges::getResourceId(EvenementPriv
    <div class="alert alert-info"> Aucune inscription dans la liste principale.</div>
<?php else : ?>
    <div class="table-responsive">
        <table id="liste_pointage" class="datatable table table-condensed table-hover">
        <table class="table table-striped table-hover table-sm datatable" id="liste_pointage" style="width:100%">
            <thead>
            <tr>
                <th data-type="string"> Dénomination</th>
+11 −9
Original line number Diff line number Diff line
@@ -43,7 +43,8 @@ $this->headTitle("Inscriptions");

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

<table class="table table-condensed datatable" id="strtolower(Inscription)">
<div class="table-responsive">
    <table class="table table-striped table-hover table-sm datatable" id="inscription" style="width:100%">
        <thead>
        <tr>
            <th> Evenement</th>
@@ -65,28 +66,28 @@ $this->headTitle("Inscriptions");
                                href="<?php echo $this->url('evenementiel/inscription/afficher', ['entity' => $entity->getId()], [], true); ?>"
                                class="ajax-modal">
                            <span class="icon icon-voir"></span>
<!--                        Afficher-->
                            Afficher
                        </a>
                    <?php endif; ?>
                    <?php if ($canModifier): ?>
<!--                    <br>-->
                        <br>
                        <?php /** @see InscriptionController::modifierAction() */ ?>
                        <a href="<?php echo $this->url('evenementiel/inscription/modifier', ['entity' => $entity->getId()], [], true); ?>"
                           class="ajax-modal" data-event="modification">
                            <span class="icon icon-modifier"></span>
<!--                        Modifier-->
                            Modifier
                        </a>
                    <?php endif; ?>

                    <?php if ($canHistoriser) : ?>
<!--                    <br>-->
                        <br>
                        <?php if ($entity->estNonHistorise()) : ?>
                            <a
                                    <?php /** @see InscriptionController::historiserAction() */ ?>
                                    href="<?php echo $this->url('evenementiel/inscription/historiser', ['entity' => $entity->getId()], [], true); ?>"
                            >
                                <span class="icon icon-historiser" title="Historiser"></span>
<!--                            Historiser-->
                                Historiser
                            </a>
                        <?php else : ?>
                            <a
@@ -94,12 +95,12 @@ $this->headTitle("Inscriptions");
                                    href="<?php echo $this->url('evenementiel/inscription/restaurer', ['entity' => $entity->getId()], [], true); ?>"
                            >
                                <span class="icon icon-restaurer" title="Restaurer"></span>
<!--                            Restaurer-->
                                Restaurer
                            </a>
                        <?php endif; ?>
                    <?php endif; ?>
                    <?php if ($canDetruire) : ?>
<!--                    <br>-->
                        <br>
                        <a
                                <?php /** @see InscriptionController::supprimerAction() */ ?>
                                href="<?php echo $this->url('evenementiel/inscription/supprimer', ['entity' => $entity->getId()], [], true); ?>"
@@ -107,7 +108,7 @@ $this->headTitle("Inscriptions");
                        >
                        <span class=" text-danger">
                            <span class="icon icon-unchecked" title="Supprimer"></span>
<!--                            Supprimer-->
                                                        Supprimer
                        </span>
                        </a>
                    <?php endif; ?>
@@ -116,6 +117,7 @@ $this->headTitle("Inscriptions");
        <?php endforeach; ?>
        </tbody>
    </table>
</div>

<script>
    $(function () {
Loading