Commit 624be9f2 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix menu divers / ajout liens manquants

parent 545d13f9
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -200,13 +200,6 @@ echo getenv('APPLICATION_ENV') ?: 'development' ?>">
                <?php endif; ?>

                <?php
                /**
                 *
                 * @author Stéphane Bouvry<stephane.bouvry@unicaen.fr>
                 * @date: 18-04-26 10:17
                 * @copyright Certic (c) 2018
                 */

                if (
                    $this->grant()->privilege(\Oscar\Provider\Privileges::PROJECT_INDEX) ||
                    $this->grant()->privilege(\Oscar\Provider\Privileges::ACTIVITY_INDEX) ||
@@ -259,6 +252,14 @@ echo getenv('APPLICATION_ENV') ?: 'development' ?>">
                                    </li>
                                <?php endif; ?>

                                <?php if ($this->grant()->privilege(\Oscar\Provider\Privileges::ACTIVITY_DOCUMENT_SHOW)): ?>
                                    <li>
                                        <a class="dropdown-item" href="<?= $this->url('contractdocument') ?>">
                                            <?= $this->oscarText("Documents") ?>
                                        </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("Finance") ?></li>
                                    <li><a class="dropdown-item" href="<?= $this->url('payment/income') ?>"><?= $this->translate("Prochains versements") ?></a></li>
@@ -396,14 +397,15 @@ echo getenv('APPLICATION_ENV') ?: 'development' ?>">
                    </li>
                <?php endif; ?>

            </ul>
            <ul class="navbar-nav navbar-right">
                <?php
                if ($this->grant()->connected()): ?>
                    <p class="navbar-text navbar-right" id="notifications-area">
                        Notifications
                    </p>
                <?php
                endif; ?>
                <p class="navbar-text navbar-right">
                <?php endif;  ?>
                <p class="navbar-text">
                    <a href="<?= $this->url('user_parameters') ?>">
                        <i class="icon-cog"></i></a> |

+89 −0
Original line number Diff line number Diff line
@@ -193,6 +193,95 @@ body > footer {
    }
  }
}

#notifications-area {
  position: relative;

  .notifications-total {
    background: rgba(255, 255, 255, .2);
    font-size: 1.25em;
    line-height: 1em;
    padding: 0 .5em;
    border-radius: 4px;
    &.unread {
      background: $brand-danger;
    }
  }

  footer {
    background: #999;
    text-align: center;
    margin: .2em;
  }

  .list {
    box-shadow: -4px 4px 4px rgba(0, 0, 0, .2);
    background: #efefef;
    position: absolute;
    color: #333;
    max-height: 350px;
    max-height: 80vh;
    width: 450px;
    overflow: hidden;
    overflow-y: scroll;
    right: 0;
    h3 {
      font-weight: 500;
      background: $colorGreyMedium;
      color: white;
      margin: 0;
      padding: .5em;
      font-size: 1em;
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-shadow: -1px 1px 0 rgba(0, 0, 0, .25);

      .intitule {
        flex: 5;
      }

      a {
        flex: 0;
      }
    }
    article {
      border-bottom: thin solid $colorGreyLight;
      padding: 1em;
      font-size: .8em;
      text-shadow: none;
      h4 {
        color: #333;
        margin: 0;
        padding: 0;
        font-size: 1em;
      }
      &.fresh {
        animation-name: fresh;
        animation-duration: 5s;
      }
      p {
        color: #999;
        font-size: 1.25em;
        margin: 0;
        padding: 0;
      }
      &:hover {
        background: white;
        h4 a {
          color: #333;
        }
      }
      a {
        color: $brand-primary;
        &:hover {
          background: transparent;
        }
      }
    }
  }
}

/////////////////////////////////////////////////////////////////////////////////////////////////
// ICONS