Обновить templates/base.html

This commit is contained in:
Alex55 2025-04-23 18:23:51 +03:00
parent 2ffa171e48
commit ebf5962926
1 changed files with 129 additions and 129 deletions

View File

@ -1,130 +1,130 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<!-- BEGIN: Head --> <!-- BEGIN: Head -->
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link href="/static/dist/images/logo_main.png" rel="shortcut icon"> <link href="/static/dist/images/logo_main.png" rel="shortcut icon">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content=""> <meta name="description" content="">
<meta name="keywords" content=""> <meta name="keywords" content="">
<meta name="author" content=""> <meta name="author" content="">
<title>Dashboard - TurboАpply</title> <title>Dashboard - TurboАpply</title>
<!-- BEGIN: CSS Assets--> <!-- BEGIN: CSS Assets-->
<link rel="stylesheet" href="/static/dist/css/app.css" /> <link rel="stylesheet" href="/static/dist/css/app.css" />
<!-- END: CSS Assets--> <!-- END: CSS Assets-->
</head> </head>
<!-- END: Head --> <!-- END: Head -->
<body class="app"> <body class="app">
<!-- BEGIN: Mobile Menu --> <!-- BEGIN: Mobile Menu -->
<!-- END: Mobile Menu --> <!-- END: Mobile Menu -->
<div class="flex"> <div class="flex">
<!-- BEGIN: Side Menu --> <!-- BEGIN: Side Menu -->
<nav class="side-nav"> <nav class="side-nav">
<a href="/product" class="intro-x flex items-center pl-5 pt-4"> <a href="/product" class="intro-x flex items-center pl-5 pt-4">
<img alt="Midone Tailwind HTML Admin Template" class="w-6" src="/static/dist/images/logo_main.png"> <img alt="Midone Tailwind HTML Admin Template" class="w-6" src="/static/dist/images/logo_main.png">
<span class="hidden xl:block text-white text-lg ml-3"> Turbo<span class="font-medium">Аpply</span> </span> <span class="hidden xl:block text-white text-lg ml-3"> Turbo<span class="font-medium">Аpply</span> </span>
</a> </a>
<div class="side-nav__devider my-6"></div> <div class="side-nav__devider my-6"></div>
<ul> <ul>
<li> <li>
<a href="/product" class="side-menu {% if current_path.startswith('/product') %}side-menu--active{% endif %}"> <a href="/product" class="side-menu {% if current_path.startswith('/product') %}side-menu--active{% endif %}">
<div class="side-menu__icon"> <i data-feather="credit-card"></i> </div> <div class="side-menu__icon"> <i data-feather="credit-card"></i> </div>
<div class="side-menu__title"> Work </div> <div class="side-menu__title"> Work </div>
</a> </a>
</li> </li>
{% if role == "admin" %} {% if role == "admin" %}
<li> <li>
<a href="/users" class="side-menu {% if current_path.startswith('/users') %}side-menu--active{% endif %}"> <a href="/users" class="side-menu {% if current_path.startswith('/users') %}side-menu--active{% endif %}">
<div class="side-menu__icon"> <i data-feather="users"></i> </div> <div class="side-menu__icon"> <i data-feather="users"></i> </div>
<div class="side-menu__title"> Users </div> <div class="side-menu__title"> Users </div>
</a> </a>
<ul class=""> <ul class="">
</li> </li>
{% endif %} {% endif %}
</ul> </ul>
</nav> </nav>
<!-- END: Side Menu --> <!-- END: Side Menu -->
<!-- BEGIN: Content --> <!-- BEGIN: Content -->
<div class="content"> <div class="content">
<div class="top-bar"> <div class="top-bar" style="z-index: 40;">
<!-- BEGIN: Breadcrumb --> <!-- BEGIN: Breadcrumb -->
<div class="-intro-x breadcrumb mr-auto hidden sm:flex"> </div> <div class="-intro-x breadcrumb mr-auto hidden sm:flex"> </div>
<!-- END: Breadcrumb --> <!-- END: Breadcrumb -->
<h2 class="text-lg font-medium mr-auto"> <h2 class="text-lg font-medium mr-auto">
{{size}} {{size}}
</h2> </h2>
{% set current_path = request.url.path %} {% set current_path = request.url.path %}
{% if size == "Work" %} {% if size == "Work" %}
<a href="/productuj"> <a href="/productuj">
<button class="button text-white shadow-md mr-2 {% if current_path == '/productuj' %}bg-red-700{% else %}bg-theme-1{% endif %}"> <button class="button text-white shadow-md mr-2 {% if current_path == '/productuj' %}bg-red-700{% else %}bg-theme-1{% endif %}">
Unassigned Jobs Unassigned Jobs
</button> </button>
</a> </a>
<a href="/productmj"> <a href="/productmj">
<button class="button text-white shadow-md mr-2 {% if current_path == '/productmj' %}bg-red-700{% else %}bg-theme-1{% endif %}"> <button class="button text-white shadow-md mr-2 {% if current_path == '/productmj' %}bg-red-700{% else %}bg-theme-1{% endif %}">
My Jobs My Jobs
</button> </button>
</a> </a>
<a href="/product"> <a href="/product">
<button class="button text-white shadow-md mr-2 {% if current_path == '/product' %}bg-red-700{% else %}bg-theme-1{% endif %}"> <button class="button text-white shadow-md mr-2 {% if current_path == '/product' %}bg-red-700{% else %}bg-theme-1{% endif %}">
All Jobs All Jobs
</button> </button>
</a> </a>
<a href="/productoj"> <a href="/productoj">
<button class="button text-white shadow-md mr-2 {% if current_path == '/productoj' %}bg-red-700{% else %}bg-theme-1{% endif %}"> <button class="button text-white shadow-md mr-2 {% if current_path == '/productoj' %}bg-red-700{% else %}bg-theme-1{% endif %}">
Outstanding Jobs Outstanding Jobs
</button> </button>
</a> </a>
{% endif %} {% endif %}
<!-- BEGIN: Account Menu --> <!-- BEGIN: Account Menu -->
<div class="intro-x dropdown w-8 h-8 relative"> <div class="intro-x dropdown w-8 h-8 relative">
<div class="dropdown-toggle w-8 h-8 rounded-full overflow-hidden shadow-lg image-fit zoom-in"> <div class="dropdown-toggle w-8 h-8 rounded-full overflow-hidden shadow-lg image-fit zoom-in">
<img alt="Midone Tailwind HTML Admin Template" src="/static/dist/images/333.png"> <img alt="Midone Tailwind HTML Admin Template" src="/static/dist/images/333.png">
</div> </div>
<div class="dropdown-box mt-10 absolute w-56 top-0 right-0 z-20"> <div class="dropdown-box mt-10 absolute w-56 top-0 right-0 z-20">
<div class="dropdown-box__content box bg-theme-38 text-white"> <div class="dropdown-box__content box bg-theme-38 text-white">
<div class="p-4 border-b border-theme-40"> <div class="p-4 border-b border-theme-40">
<div class="font-medium">{{username}}</div> <div class="font-medium">{{username}}</div>
<div class="text-xs text-theme-41">{{role}}</div> <div class="text-xs text-theme-41">{{role}}</div>
</div> </div>
<!-- --> <!-- -->
<!-- <div class="p-2"> <!-- <div class="p-2">
<a href="" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="user" class="w-4 h-4 mr-2"></i> Profile </a> <a href="" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="user" class="w-4 h-4 mr-2"></i> Profile </a>
<a href="" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="edit" class="w-4 h-4 mr-2"></i> Add Account </a> <a href="" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="edit" class="w-4 h-4 mr-2"></i> Add Account </a>
<a href="" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="lock" class="w-4 h-4 mr-2"></i> Reset Password </a> <a href="" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="lock" class="w-4 h-4 mr-2"></i> Reset Password </a>
<a href="" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="help-circle" class="w-4 h-4 mr-2"></i> Help </a> <a href="" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="help-circle" class="w-4 h-4 mr-2"></i> Help </a>
</div>--> </div>-->
<div class="p-2 border-t border-theme-40"> <div class="p-2 border-t border-theme-40">
<a href="/logout" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="toggle-right" class="w-4 h-4 mr-2"></i> Logout </a> <a href="/logout" class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1 rounded-md"> <i data-feather="toggle-right" class="w-4 h-4 mr-2"></i> Logout </a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- END: Account Menu --> <!-- END: Account Menu -->
</div> </div>
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
<!-- END: Content --> <!-- END: Content -->
</div> </div>
<!-- BEGIN: JS Assets--> <!-- BEGIN: JS Assets-->
<script src="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js"></script> <script src="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=["your-google-map-api"]&libraries=places"></script> <script src="https://maps.googleapis.com/maps/api/js?key=["your-google-map-api"]&libraries=places"></script>
<script src="/static/dist/js/app.js"></script> <script src="/static/dist/js/app.js"></script>
<!-- END: JS Assets--> <!-- END: JS Assets-->
</body> </body>
</html> </html>