120 lines
4.3 KiB
HTML
120 lines
4.3 KiB
HTML
{% load i18n static webpack_loader %}
|
|
<!DOCTYPE html>
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
<html lang="{{ LANGUAGE_CODE }}"
|
|
dir="{% if LANGUAGE_CODE == 'ar' %}rtl{% else %}ltr{% endif %}"
|
|
data-bs-theme=""
|
|
data-navigation-type="default"
|
|
data-navbar-horizontal-shape="default"
|
|
{% if request.tenant %}data-tenant-id="{{ request.tenant.id }}"{% endif %}>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
<link rel="icon" type="image/png" href="{% static 'img/logo/favicon-96x96.png' %}" sizes="96x96" />
|
|
<link rel="icon" type="image/svg+xml" href="{% static 'img/logo/favicon.svg'%}" />
|
|
<link rel="shortcut icon" href="{% static 'img/logo/favicon.ico'%}" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'img/logo/apple-touch-icon.png'%}" />
|
|
<link rel="manifest" href="{% static 'img/logo/site.webmanifest'%}" />
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<!-- ================== BEGIN core-css ================== -->
|
|
|
|
{% if LANGUAGE_CODE == 'ar' %}
|
|
<link href="{% static 'css/default/app-rtl.min.css' %}" rel="stylesheet" />
|
|
{# <link href="{% static 'css/apple/app-rtl.min.css' %}" rel="stylesheet" />#}
|
|
<link href="{% static 'css/rtl-fixes.css' %}" rel="stylesheet" />
|
|
{% else %}
|
|
<link href="{% static 'css/default/app.min.css' %}" rel="stylesheet" />
|
|
{# <link href="{% static 'css/apple/app.min.css' %}" rel="stylesheet" />#}
|
|
{% endif %}
|
|
<link href="{% static 'css/vendor.min.css' %}" rel="stylesheet" />
|
|
<link href="{% static 'css/custom.css' %}" rel="stylesheet" />
|
|
<link href="{% static 'plugins/toastr/toastr.css' %}" rel="stylesheet" />
|
|
<!-- Select2 CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" rel="stylesheet" />
|
|
|
|
|
|
<!-- ================== END core-css ================== -->
|
|
|
|
{% block css %}
|
|
|
|
{% endblock %}
|
|
</head>
|
|
<body>
|
|
{% csrf_token %}
|
|
<div id="app" class="app app-without-sidebar">
|
|
|
|
|
|
{% if appHeaderMegaMenu %}
|
|
{% include 'partial/header-mega-menu.html' %}
|
|
{% endif %}
|
|
|
|
<!-- BEGIN header-nav -->
|
|
{% block header %}
|
|
{% include "partial/header.html" %}
|
|
{% endblock %}
|
|
|
|
<div id="content" class="app-content">
|
|
<!-- Main content -->
|
|
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4 main-content">
|
|
{% if messages %}
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
{% for message in messages %}
|
|
{% if message.tags == 'success' %}
|
|
toastr.success('{{ message|escapejs }}');
|
|
{% elif message.tags == 'error' or message.tags == 'danger' %}
|
|
toastr.error('{{ message|escapejs }}');
|
|
{% elif message.tags == 'warning' %}
|
|
toastr.warning('{{ message|escapejs }}');
|
|
{% elif message.tags == 'info' %}
|
|
toastr.info('{{ message|escapejs }}');
|
|
{% else %}
|
|
toastr.info('{{ message|escapejs }}');
|
|
{% endif %}
|
|
{% endfor %}
|
|
});
|
|
</script>
|
|
{% endif %}
|
|
</main>
|
|
|
|
|
|
<div>
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
{% include 'partial/theme-panel.html' %}
|
|
</div>
|
|
{% include 'partial/scroll-top-btn.html' %}
|
|
{% include 'partial/alert_modal.html' %}
|
|
{% block outter_content %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
<!-- ================== BEGIN core-js ================== -->
|
|
<script src="{% static 'js/htmx.min.js' %}"></script>
|
|
<script src="{% static 'js/vendor.min.js' %}"></script>
|
|
<script src="{% static 'js/app.min.js' %}"></script>
|
|
<script src="{% static 'plugins/toastr/toastr.min.js' %}"></script>
|
|
<!-- Select2 JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/js/select2.full.min.js"></script>
|
|
<script src="{% static 'js/select2-init.js' %}"></script>
|
|
|
|
|
|
|
|
<!-- ================== END core-js ================== -->
|
|
|
|
{% block js %}
|
|
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|