mirror of
				https://github.com/StefBuwalda/WebTech.git
				synced 2025-10-31 11:49:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			85 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			4.1 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.add_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>
 | |
| 
 | |
|     <svg xmlns="http://www.w3.org/2000/svg" class="d-none">
 | |
|         <symbol id="check-circle-fill" viewBox="0 0 16 16">
 | |
|             <path
 | |
|                 d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z" />
 | |
|         </symbol>
 | |
|     </svg>
 | |
| 
 | |
|     <div class="position-fixed bottom-0 end-0 p-3" style="z-index: 1050;">
 | |
|         {% for message in get_flashed_messages() %}
 | |
|         <div class="alert alert-success alert-dismissible fade show" role="alert">
 | |
|             <svg class="bi flex-shrink-0 me-2" width="15" height="15" role="img" aria-label="Success:">
 | |
|                 <use xlink:href="#check-circle-fill" />
 | |
|             </svg>
 | |
|             {{message}}
 | |
|             <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
 | |
|         </div>
 | |
|         {% endfor %}
 | |
|     </div>
 | |
| 
 | |
|     {% block content %}
 | |
|     {% endblock %}
 | |
| </body>
 | |
| 
 | |
| </html> |