Commit 4ea22acb authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Changement du niveau de warning pour la vérification de l'installation

parent 3c026f30
Loading
Loading
Loading
Loading
+56 −28
Changes for module/Application/view/application/verification/index.phtml: 56 added lines, 28 removed lines.
Original line number Diff line number Diff line
@@ -60,14 +60,18 @@ $this->headTitle("Vérification de l'installation");

    <!-- ROLE --------------------------------------------------------------------------------------------------------->
    <?php $exist =  (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Role')); ?>
    <?php if (!$exist) : ?>
        <div class="alert alert-info">
            <span class="icon icon-information"></span>
            Aucun répertoire Role >>> Pas de rôle associé au module
        </div>
    <?php else : ?>
        <div class="card bg-default ">
            <div class="card-header">
                Role
            </div>
            <div class="card-body">
        <?php if (!$exist) : ?>
            <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Role</code> !</span>
            <?php else : ?>

                <?php
                $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Role'), ['.', '..']);
                foreach ($filenames as $filename) {
@@ -92,21 +96,25 @@ $this->headTitle("Vérification de l'installation");
                }
                ?>
                <?php ?>
        <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>


    <!-- PARAMETRE ---------------------------------------------------------------------------------------------------->
    <?php $path = $installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre'; ?>
    <?php $exist =  (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre')); ?>
        <?php if (!$exist) : ?>
            <div class="alert alert-info">
                <span class="icon icon-information"></span>
                Aucun répertoire Parametre >>> Pas de paramètre associé au module
            </div>
        <?php else : ?>
            <div class="card bg-default ">
                <div class="card-header">
                    Parametres [Path:<code><?php echo $path; ?></code>]
                </div>
                <div class="card-body">
            <?php if (!$exist) : ?>
                <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Parametre</code> !</span>
            <?php else : ?>
                        <?php
                        $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre'), ['.', '..']);

@@ -146,20 +154,23 @@ $this->headTitle("Vérification de l'installation");
                        }
                        ?>
                        <?php ?>
            <?php endif; ?>
                </div>
            </div>
        <?php endif; ?>

    <!-- TEMPLATE ----------------------------------------------------------------------------------------------------->
    <?php $exist =  (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Template')); ?>
    <?php if (!$exist) : ?>
        <div class="alert alert-info">
            <span class="icon icon-information"></span>
            Aucun répertoire Template >>> Pas de template associé au module
        </div>
    <?php else : ?>
        <div class="card bg-default ">
            <div class="card-header">
                Templates : Mail, Pdf, Texte
            </div>
            <div class="card-body">
            <?php if (!$exist) : ?>
                <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Template</code> !</span>
            <?php else : ?>
                <?php
            $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Template'), ['.', '..']);
            foreach ($filenames as $filename) {
@@ -183,19 +194,23 @@ $this->headTitle("Vérification de l'installation");
                }
            }
        ?>
            <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

    <!-- ETAT --------------------------------------------------------------------------------------------------------->
    <?php $exist =  (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Etat')); ?>
    <?php if (!$exist) : ?>
        <div class="alert alert-info">
            <span class="icon icon-information"></span>
            Aucun répertoire Etat >>> Pas de état associé au module
        </div>
    <?php else : ?>
        <div class="card bg-default">
            <div class="card-header">
                États et types d'état
            </div>
            <div class="card-body">
            <?php if (!$exist) : ?>
                <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Etat</code> !</span>
            <?php else : ?>
                <?php
                $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Etat'), ['.', '..']);

@@ -236,19 +251,23 @@ $this->headTitle("Vérification de l'installation");
                    }
                }
            ?>
            <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

    <!-- VALIDATION --------------------------------------------------------------------------------------------------->
    <?php $exist =  (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Validation')); ?>
    <?php if (!$exist) : ?>
        <div class="alert alert-info">
            <span class="icon icon-information"></span>
            Aucun répertoire Validation >>> Pas de validation associée au module
        </div>
    <?php else : ?>
        <div class="card bg-default">
            <div class="card-header">
                Type de validation
            </div>
            <div class="card-body">
            <?php if (!$exist) : ?>
                <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Validation</code> !</span>
            <?php else : ?>
                    <?php
                    $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Validation'), ['.', '..']);

@@ -274,19 +293,23 @@ $this->headTitle("Vérification de l'installation");
                        }
                    }
                    ?>
            <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

    <!-- EVENT -------------------------------------------------------------------------------------------------------->
    <?php $exist =  (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Event')); ?>
    <?php if (!$exist) : ?>
        <div class="alert alert-info">
            <span class="icon icon-information"></span>
            Aucun répertoire Event >>> Pas d'événement associé au module
        </div>
    <?php else : ?>
        <div class="card bg-default">
            <div class="card-header">
                Événements
            </div>
            <div class="card-body">
            <?php if (!$exist) : ?>
                <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Event</code> !</span>
            <?php else : ?>
                <?php
            $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Event'), ['.', '..']);
            foreach ($filenames as $filename) {
@@ -310,19 +333,23 @@ $this->headTitle("Vérification de l'installation");
                }
            }
            ?>
            <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

    <!-- PRIVILEGE ---------------------------------------------------------------------------------------------------->
    <?php $exist =  (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Privilege')); ?>
    <?php if (!$exist) : ?>
        <div class="alert alert-info">
            <span class="icon icon-information"></span>
            Aucun répertoire Privilège >>> Pas de privilège associé au module
        </div>
    <?php else : ?>
    <div class="card bg-default">
        <div class="card-header">
            Privilèges
        </div>
        <div class="card-body">
            <?php if (!$exist) : ?>
                <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Privilege</code> !</span>
            <?php else : ?>
            <?php
        $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Privilege'), ['.', '..']);
        foreach ($filenames as $filename) {
@@ -346,10 +373,11 @@ $this->headTitle("Vérification de l'installation");
            }
        }
    ?>
            <?php endif; ?>

        </div>
    </div>
    <?php endif; ?>

    </div>
<?php endforeach; ?>
</div>