mirror of
				https://github.com/StefBuwalda/WebTech.git
				synced 2025-10-31 11:49:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			59 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="en">
 | |
| 
 | |
| <head>
 | |
|     <meta charset="UTF-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
 | |
|         integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
 | |
|     <link href="{{url_for('static', filename='style.css')}}" rel="stylesheet">
 | |
|     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
 | |
|         integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
 | |
|         crossorigin="anonymous"></script>
 | |
|     <title>{% block title %}{% endblock %}</title>
 | |
| </head>
 | |
| 
 | |
| <body>
 | |
|     <nav class="navbar sticky-top navbar-expand-lg bg-body-tertiary" data-bs-theme="dark">
 | |
|         <div class="container-fluid">
 | |
|             <a class="navbar-brand" href="{{url_for('index')}}">ServiceHUB</a>
 | |
|             <div class="collapse navbar-collapse" id="navbarSupportedContent">
 | |
|                 <ul class="navbar-nav me-auto mb-2 mb-lg-0">
 | |
|                     {% if current_user.is_authenticated %}
 | |
|                     <li class="nav-item">
 | |
|                         <a class="nav-link {% if active_page == 'dashboard' %}active{% endif %}" aria-current=" page"
 | |
|                             href="{{url_for('dash.index')}}">Dashboard</a>
 | |
|                     </li>
 | |
|                     <li class="nav-item">
 | |
|                         <a class="nav-link {% if active_page == 'service' %}active{% endif %}"
 | |
|                             href="{{url_for('dash.service')}}">Add service</a>
 | |
|                     </li>
 | |
|                     {% endif %}
 | |
|                     {% if current_user.is_admin %}
 | |
|                     <li class="nav-item">
 | |
|                         <a class="nav-link {% if active_page == 'register' %}active{% endif %}"
 | |
|                             href="{{url_for('auth.register')}}">Add user</a>
 | |
|                     </li>
 | |
|                     {% endif %}
 | |
|                 </ul>
 | |
|                 {% if current_user.is_authenticated %}
 | |
|                 <div class="dropstart">
 | |
|                     <button class="btn btn-outline-info" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
 | |
|                         Profile
 | |
|                     </button>
 | |
|                     <ul class="dropdown-menu dropdown-menu-end dropdown-menu-lg-start" aria-labelledby="dropdownMenuButton1">
 | |
|                         <li><a class="dropdown-item">Username: {{current_user.username}}</a></li>
 | |
|                         <li><a class="dropdown-item {% if active_page == 'update' %}active{% endif %}" href="{{url_for('auth.update')}}">Change password</a></li>
 | |
|                         <li><hr class="dropdown-divider"></li>
 | |
|                         <li><a class="dropdown-item" style="color: tomato;" data-bs-theme="dark" href="{{url_for('auth.logout')}}">Logout</a></li>
 | |
|                     </ul>
 | |
|                 </div>
 | |
|                 {% endif %}
 | |
|             </div>
 | |
|         </div>
 | |
|     </nav>
 | |
|     {% block content %}
 | |
|     {% endblock %}
 | |
| </body>
 | |
| 
 | |
| </html> | 
