add link to company documents if in company editor and replace links with path calls to route name

This commit is contained in:
Ryan Prather 2025-01-10 15:07:59 +00:00
parent 5f0ce69a47
commit acee114ccf

View File

@ -2,7 +2,7 @@
<!-- Navbar --> <!-- Navbar -->
<nav class="navbar navbar-expand-lg blur border-radius-xl top-0 z-index-3 shadow position-absolute my-3 py-2 start-0 end-0 mx-4"> <nav class="navbar navbar-expand-lg blur border-radius-xl top-0 z-index-3 shadow position-absolute my-3 py-2 start-0 end-0 mx-4">
<div class="container-fluid ps-2 pe-0"> <div class="container-fluid ps-2 pe-0">
<a class="navbar-brand font-weight-bolder ms-lg-0 ms-3 " href="/index.php/dashboard"> <a class="navbar-brand font-weight-bolder ms-lg-0 ms-3 " href="{{ path('app_dashboard') }}">
CM Tracker CM Tracker
</a> </a>
<button class="navbar-toggler shadow-none ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler shadow-none ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
@ -15,16 +15,23 @@
<div class="collapse navbar-collapse" id="navigation"> <div class="collapse navbar-collapse" id="navigation">
<ul <ul
class="navbar-nav mx-auto"> class="navbar-nav mx-auto">
<!-- @todo only display when logged in --> {% if company is defined %}
<li class='nav-item'>
<a class='nav-link d-flex align-items-center me-2' href='{{ path('app_list_documents') }}'>
<i class='material-symbols-rounded opacity-5'>content_copy</i>
Company Documents
</a>
</li>
{% endif %}
{% if app.user %} {% if app.user %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link d-flex align-items-center me-2 active" aria-current="page" href="/index.php/dashboard"> <a class="nav-link d-flex align-items-center me-2 active" aria-current="page" href="{{ path('app_dashboard') }}">
<i class="fa fa-chart-pie opacity-6 text-dark me-1"></i> <i class="fa fa-chart-pie opacity-6 text-dark me-1"></i>
Dashboard Dashboard
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link me-2" href="/index.php/profile"> <a class="nav-link me-2" href="{{ path('app_profile') }}">
<i class="fa fa-user opacity-6 text-dark me-1"></i> <i class="fa fa-user opacity-6 text-dark me-1"></i>
Profile Profile
</a> </a>
@ -32,13 +39,13 @@
{% endif %} {% endif %}
{% if not app.user %} {% if not app.user %}
<li class='nav-item'> <li class='nav-item'>
<a class='nav-link me-2' href='/index.php/register'> <a class='nav-link me-2' href='{{ path('app_register') }}'>
<i class='fas fa-key opacity-6 text-dark me-1'></i> <i class='fas fa-key opacity-6 text-dark me-1'></i>
Register Register
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link me-2" href="/index.php/"> <a class="nav-link me-2" href="{{ path('app_login') }}">
<i class="fas fa-key opacity-6 text-dark me-1"></i> <i class="fas fa-key opacity-6 text-dark me-1"></i>
Sign In Sign In
</a> </a>