Fix asset links

This commit is contained in:
Ryan Prather 2024-12-10 23:08:39 -05:00
parent 569e03aab0
commit 809490dc44
2 changed files with 21 additions and 11 deletions

View File

@ -2,8 +2,8 @@
<aside class="sidenav navbar navbar-vertical navbar-expand-xs border-radius-lg fixed-start ms-2 bg-white my-2" id="sidenav-main">
<div class="sidenav-header">
<i class="fas fa-times p-3 cursor-pointer text-dark opacity-5 position-absolute end-0 top-0 d-none d-xl-none" aria-hidden="true" id="iconSidenav"></i>
<a class="navbar-brand px-4 py-3 m-0" href="/index.php/dashboard">
<img src="/assets/img/logo-ct-dark-fede0e8581dd87c5e6217653376c32a4.png" class="navbar-brand-img" width="26" height="26" alt="main_logo">
<a class="navbar-brand px-4 py-3 m-0" href="{{ path('app_dashboard') }}">
<img src="{{ asset('img/logo-ct-dark.png') }}" class="navbar-brand-img" width="26" height="26" alt="main_logo">
<span class="ms-1 text-sm text-dark">CM Tracker</span>
</a>
</div>
@ -18,19 +18,19 @@
<ul class="navbar-nav">
{% if is_granted('ROLE_ADMIN') %}
<li class='nav-item'>
<a class="{{ admin_dashboard }}" href="/index.php/admin-dashboard">
<a class="{{ admin_dashboard }}" href="{{ path('app_admin_dashboard') }}">
<i class="material-symbols-rounded opacity-5">dashboard</i>
<span class="nav-link-text ms-1">Admin Dashboard</span>
</a>
</li>
<li class='nav-item'>
<a class='{{ case_list }}' href='/index.php/list-cases'>
<a class='{{ case_list }}' href='{{ path('app_list_cases') }}'>
<i class='material-symbols-rounded opacity-5'>cases</i>
<span class='nav-link-text ms-1'>Case List</span>
</a>
</li>
<li clas='nav-item'>
<a class='{{ referral_sources }}' href='/index.php/list-referral-sources'>
<a class='{{ referral_sources }}' href='{{ path('app_referral_source') }}'>
<i class='material-symbols-rounded opacity-5'>groups</i>
<span class='nav-link-text ms-1'>Referral Sources</span>
</a>
@ -39,7 +39,7 @@
{% if is_granted('ROLE_CASE_MANAGER') %}
<li class='nav-item'>
<a class='{{ staff_dashboard }}' href='/index.php/staff-dashboard'>
<a class='{{ staff_dashboard }}' href='{{ path('app_staff_dashboard') }}'>
<i class='material-symbols-rounded opacity-5'>dashboard</i>
<span class='nav-link-text ms-1'>Staff Dashboard</span>
</a>
@ -47,7 +47,7 @@
{% endif %}
<li class="nav-item">
<a class="{{ user_dashboard }}" href="/index.php/dashboard">
<a class="{{ user_dashboard }}" href="{{ path('app_dashboard') }}">
<i class="material-symbols-rounded opacity-5">dashboard</i>
<span class="nav-link-text ms-1">Dashboard</span>
</a>
@ -56,21 +56,21 @@
<h6 class="ps-4 ms-2 text-uppercase text-xs text-dark font-weight-bolder opacity-5">Account pages</h6>
</li>
<li class="nav-item">
<a class="{{ profile }}" href="/index.php/profile">
<a class="{{ profile }}" href="{{ path('app_profile') }}">
<i class="material-symbols-rounded opacity-5">person</i>
<span class="nav-link-text ms-1">Profile</span>
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li class="nav-item">
<a class="{{ user_list }}" href="/index.php/list-users">
<a class="{{ user_list }}" href="{{ path('app_list_users') }}">
<i class="material-symbols-rounded opacity-5">assignment</i>
<span class="nav-link-text ms-1">User List</span>
</a>
</li>
{% endif %}
<li class='nav-item'>
<a class='text-dark nav-link' href='/index.php/logout'>
<a class='text-dark nav-link' href='{{ logout_path() }}'>
<i class='material-symbols-rounded opacity-5'>logout</i>
<span class='nav-link-text ms-1'>Logout</span>
</a>

View File

@ -3,6 +3,16 @@
<div class="container-fluid py-1 px-3">
{{ block('breadcrumb', 'internal/libs/breadcrumb.html.twig') }}
<div class="collapse navbar-collapse mt-sm-0 mt-2 me-md-0 me-sm-4" id="navbar">
<div class='ms-md-auto pe-md-3 d-flex align-items-left'>
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="flash-{{ label }}">
{{ message }}
</div>
{% endfor %}
{% endfor %}
</div>
<div class="ms-md-auto pe-md-3 d-flex align-items-center">
<div class="input-group input-group-outline">
<label class="form-label">Case Search...</label>
@ -47,7 +57,7 @@
</ul>
</li>
<li class="nav-item d-flex align-items-center" title="Profile">
<a href="/index.php/profile" class="nav-link text-body font-weight-bold px-0">
<a href="{{ path('app_profile') }}" class="nav-link text-body font-weight-bold px-0">
<i class="material-symbols-rounded">account_circle</i>
</a>
</li>