Commit d0b9502a authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fichier template oublié

parent 41bbee6b
Loading
Loading
Loading
Loading
Loading
+150 −17
Original line number Diff line number Diff line
@@ -25,11 +25,12 @@ $this->headScript();

    <!-- Links -->
    <link rel="icon" type="image/png" href="<?= $this->basePath() ?>/favicon.png"/>
    <link rel="stylesheet" href="<?= $this->basePath() . '/css/unicaen.css' ?>">

    <!-- <link rel="stylesheet" href="<?= $this->basePath() . '/css/unicaen.css' ?>"> -->
    <link rel="stylesheet" href="<?= $this->basePath() . '/css/fontello/css/fontello.css' ?>">
    <link rel="stylesheet" href="<?= $this->basePath() . '/css/fontello/css/animation.css' ?>">

    <link rel="stylesheet" href="<?= $this->basePath() . '/css/' . $this->options()->theme() . '.css' ?>">
    <!-- <link rel="stylesheet" href="<?= $this->basePath() . '/css/' . $this->options()->theme() . '.css' ?>"> -->
    <?php
    if (file_exists(__DIR__ . '/../../../../public/custom/custom.css')): ?>
        <link rel="stylesheet" href="<?= $this->basePath() . '/custom/custom.css' ?>">
@@ -68,24 +69,151 @@ $this->headScript();

</head>

<body class="privatize <?php
echo getenv('APPLICATION_ENV') ?: 'development' ?>">
<body class="privatize <?php echo getenv('APPLICATION_ENV') ?: 'development' ?>">

<div id="oscar-core" data-tooltip="on" data-url-person="<?= $this->url('person/info') ?>"></div>
<div id="oscar-errors"></div>
<!--[if lt IE 7]>
<p class="chromeframe">Vous utilisez un navigateur internet hors d'âge. Veuillez le mettre à jour, svp.</p>
<![endif]-->
<div id="navbar" class="navbar navbar-primary navbar-main navbar-fixed-top" role="navigation">
    <div class="container">
<nav id="navbar" class="navbar navbar-expand-lg navbar-dark bg-primary" role="navigation">
    <div class="container-fluid">

        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".bs-navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
        <a class="navbar-brand" href="<?php echo $this->url('home') ?>">
            OSCAR
            <?php /*
            echo $this->appLink(
                '<img src="/images/oscar-white.png" alt="" style="height: 32px; margin-right: 4px; position: relative; top: -3px; opacity: .5" />' . $this->appInfos(
                )->nom
            ) */?>
        </a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <?php if ($this->grant()->connected()): ?>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                        <i class="icon-wristwatch"></i> <?= $this->translate('Accueil') ?>
                    </a>
                    <ul class="dropdown-menu">
                        <li role="presentation" class="dropdown-header"><i class="icon-cube"></i> Mes recherches
                        </li>

                        <li class="dropdown-item"><a href="<?= $this->url('project/mine') ?>"><i
                                        class="icon-cubes"></i> <?= $this->translate('Mes projets') ?></a></li>
                        <?php
                        if ($this->grant()->isBoss()): ?>
                        <li class="dropdown-item">
                            <a href="<?= $this->url('project/structure') ?>">
                                <i class="icon-building-filled"></i> <?= $this->translate('Mes structures') ?>
                            </a>
                        </li>
                        <?php endif; ?>
                        <?php
                        if ($this->grant()->hasPersonnelAccess()): ?>
                            <li class="dropdown-item"><a href="<?= $this->url('person/personnel') ?>"><i
                                            class="icon-group"></i> <?= $this->translate('Personnel') ?></a></li>
                        <?php
                        endif; ?>

                        <?php
                        if ($this->grant()->hasSignaturePersonalAccess()): ?>
                            <li class="dropdown-item">
                                <a href="<?= $this->url('unicaen-signature/my-documents') ?>"><i
                                            class="icon-edit"></i> <?= $this->translate('Mes visas de document') ?>
                                </a>
                            </li>

                            <li class="dropdown-item">
                                <a href="<?= $this->url('contractdocument/documents-observed') ?>"><i
                                            class="icon-eye"></i> <?= $this->translate(
                                        'Suivi des circuits de signature'
                                    ) ?></a>
                            </li>
                        <?php
                        endif; ?>

                        <?php
                        if ($this->grant()->privilege(\Oscar\Provider\Privileges::ACTIVITY_REQUEST) || $this->grant(
                            )->hasPrivilegeInOrganizations(\Oscar\Provider\Privileges::ACTIVITY_REQUEST)): ?>
                            <li><a href="<?= $this->url('requestactivity') ?>"><i
                                            class="icon-cube"></i> <?= $this->translate("Demande d'activité") ?></a>
                            </li>
                        <?php
                        endif; ?>

                        <?php
                        if ($this->grant()->hasPrivilegeInOrganizations(
                                \Oscar\Provider\Privileges::ACTIVITY_CREATE
                            ) || $this->grant()->hasPrivilegeInOrganizations(
                                \Oscar\Provider\Privileges::PROJECT_CREATE
                            )) : ?>
                            <li role="presentation" class="dropdown-header"><i class="icon-cog"></i> Gestions des
                                activités
                            </li>
                        <?php
                        endif; ?>
                        <?php
                        if ($this->grant()->hasPrivilegeInOrganizations(
                            \Oscar\Provider\Privileges::ACTIVITY_CREATE
                        )) : ?>
                            <li><a href="<?= $this->url('contract/new') ?>"><i
                                            class="icon-cube"></i> <?= $this->translate("Nouvelle activité") ?></a>
                            </li>
                        <?php
                        endif; ?>
                        <?php
                        if ($this->grant()->hasPrivilegeInOrganizations(
                            \Oscar\Provider\Privileges::PROJECT_CREATE
                        )) : ?>
                            <li><a href="<?= $this->url('project/new') ?>"><i
                                            class="icon-cubes"></i> <?= $this->translate("Nouveau projet") ?></a>
                            </li>
                        <?php
                        endif; ?>

                        <li role="presentation" class="dropdown-header"><i class="icon-cube"></i> Divers</li>
                        <li class="dropdown-item">
                            <a href="<?= $this->url('administrativedocument') ?>"><i
                                        class="icon-book"></i> <?= $this->translate('Documents pratiques') ?></a>
                        </li>
                    </ul>
                </li>
                <?php include __DIR__ . '/../partials/menu-project-activity.phtml' ?>
                <?php endif; ?>

                <?php
                // include __DIR__ . '/../partials/menu-administration.phtml' ?>

                <?php
                if ($this->usurpation()->isEnabled()): ?>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle"
                           data-toggle="dropdown" role="button"
                           aria-expanded="false">
                            <i class="icon-wristwatch"></i> <?= $this->translate('Usurpation') ?><span
                                    class="caret"></span>
                        </a>
                        <ul class="dropdown-menu" role="menu">
                            <li>
                                <?php
                                echo $this->usurpation()->renderAsTextfield(); ?>
                            </li>
                        </ul>
                    </li>
                <?php endif; ?>

            </ul>
            <span class="navbar-text">
        Navbar text with an inline element
      </span>
        </div>


        <?php /***
            <?php
            echo $this->appLink(
                '<img src="/images/oscar-white.png" alt="" style="height: 32px; margin-right: 4px; position: relative; top: -3px; opacity: .5" />' . $this->appInfos(
@@ -99,11 +227,15 @@ echo getenv('APPLICATION_ENV') ?: 'development' ?>">
            endif; ?>
        </div>

        <div class="navbar-collapse bs-navbar-collapse collapse">
            <ul class="nav navbar-nav">
        <div class="navbar-collapse collapse">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="#">Home</a>
                </li>

                <?php
                if ($this->grant()->connected()): ?>
                    <li class="dropdown">
                    <li class="nav-item dropdown">
                        <a href="#" class="dropdown-toggle"
                           data-toggle="dropdown" role="button"
                           aria-expanded="false">
@@ -237,8 +369,9 @@ echo getenv('APPLICATION_ENV') ?: 'development' ?>">
                echo $this->appConnection(); ?>
            </p>
        </div><!--/.nav-collapse -->
 ****/ ?>
    </div>
</div>
</nav>

<div class="container flash-messages" id="flash-messages" style="opacity: 0"><?php
    $types = ['error', 'info', 'default', 'success', 'warning'];
+15 −16
Original line number Diff line number Diff line
@@ -13,46 +13,45 @@ if(
):
?>

<li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
<li class="dropdown nav-item">
    <a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
        <i class="icon-cube"></i> <?= $this->translate("Activités") ?><span class="caret"></span>
    </a>
    <ul class="dropdown-menu" role="menu">

    <ul class="dropdown-menu">
        <?php if($this->grant()->privilege(\Oscar\Provider\Privileges::PROJECT_INDEX)): ?>
            <li role="presentation" class="dropdown-header"><i class="icon-cubes"></i> <?= $this->translate("Projets") ?></li>
            <li><a href="<?= $this->url('contract/advancedsearch') ?>?projectview=on"><?= $this->translate("Liste des projets") ?></a></li>
            <li class="dropdown-item"><a href="<?= $this->url('contract/advancedsearch') ?>?projectview=on"><?= $this->translate("Liste des projets") ?></a></li>
            <?php if($this->grant()->privilege(\Oscar\Provider\Privileges::PROJECT_CREATE)): ?>
                <li><a href="<?= $this->url('project/new') ?>?projectview=on"><?= $this->translate("Créer un projet") ?></a></li>
                <li class="dropdown-item"><a href="<?= $this->url('project/new') ?>?projectview=on"><?= $this->translate("Créer un projet") ?></a></li>
            <?php endif; ?>
        <?php endif; ?>

        <?php if($this->grant()->privilege(\Oscar\Provider\Privileges::ACTIVITY_INDEX)): ?>
        <li role="presentation" class="dropdown-header"><i class="icon-cube"></i> <?= $this->translate("Activités") ?></li>
        <li><a href="<?= $this->url('contract/advancedsearch') ?>"><?= $this->translate("Liste des activités") ?></a></li>
        <li class="dropdown-item"><a href="<?= $this->url('contract/advancedsearch') ?>"><?= $this->translate("Liste des activités") ?></a></li>

        <?php if($this->grant()->privilege(\Oscar\Provider\Privileges::ACTIVITY_DOCUMENT_SHOW)): ?>
        <li><a href="<?= $this->url('contractdocument') ?>"><?= $this->translate("Documents téléversés") ?></a></li>
        <li class="dropdown-item"><a href="<?= $this->url('contractdocument') ?>"><?= $this->translate("Documents téléversés") ?></a></li>
        <?php endif; ?>

        <?php if( $this->grant()->privilege(\Oscar\Provider\Privileges::ACTIVITY_EDIT) ):?>
        <li><a href="<?= $this->url('contract/new') ?>"><?= $this->translate("Nouvelle activité") ?></a></li>
        <li class="dropdown-item"><a href="<?= $this->url('contract/new') ?>"><?= $this->translate("Nouvelle activité") ?></a></li>
        <?php endif; ?>
        <li><a href="<?= $this->url('contract/almostdone') ?>"><?= $this->translate("Bientôt terminés") ?></a></li>
        <li><a href="<?= $this->url('contract/almoststart') ?>"><?= $this->translate("Débutant prochainement") ?></a></li>
        <li class="dropdown-item"><a href="<?= $this->url('contract/almostdone') ?>"><?= $this->translate("Bientôt terminés") ?></a></li>
        <li class="dropdown-item"><a href="<?= $this->url('contract/almoststart') ?>"><?= $this->translate("Débutant prochainement") ?></a></li>
        <?php endif; ?>

        <?php if ($this->grant()->privilege(\Oscar\Provider\Privileges::ACTIVITY_PAYMENT_SHOW)): ?>
            <li role="presentation" class="dropdown-header"><i class="icon-bank"></i> <?= $this->translate("Versements") ?></li>
            <li><a href="<?= $this->url('payment/income') ?>"><?= $this->translate("Prochains versements") ?></a></li>
            <li><a href="<?= $this->url('payment/late') ?>"><?= $this->translate("Versements en retard") ?></a></li>
            <li><a href="<?= $this->url('payment/difference') ?>"><?= $this->translate("Écarts de paiement") ?></a></li>
            <li><a href="<?= $this->url('payment') ?>"><?= $this->translate("Tous les versements") ?></a></li>
            <li class="dropdown-item"><a href="<?= $this->url('payment/income') ?>"><?= $this->translate("Prochains versements") ?></a></li>
            <li class="dropdown-item"><a href="<?= $this->url('payment/late') ?>"><?= $this->translate("Versements en retard") ?></a></li>
            <li class="dropdown-item"><a href="<?= $this->url('payment/difference') ?>"><?= $this->translate("Écarts de paiement") ?></a></li>
            <li class="dropdown-item"><a href="<?= $this->url('payment') ?>"><?= $this->translate("Tous les versements") ?></a></li>
        <?php endif; ?>

        <?php if ($this->grant()->privilege(\Oscar\Provider\Privileges::ACTIVITY_MILESTONE_SHOW)): ?>
            <li role="presentation" class="dropdown-header"><i class="icon-calendar"></i> <?= $this->translate("Jalons") ?></li>
            <li><a href="<?= $this->url('milestones') ?>"><?= $this->translate("Tous les jalons") ?></a></li>
            <li class="dropdown-item"><a href="<?= $this->url('milestones') ?>"><?= $this->translate("Tous les jalons") ?></a></li>
        <?php endif; ?>

    </ul>