123 lines
5.1 KiB
PHTML
123 lines
5.1 KiB
PHTML
<%
|
|
|
|
from parameciofast.modules.fastadmin.libraries.config import modules_admin, modules_admin_icons
|
|
from parameciofast.libraries.i18n import I18n
|
|
|
|
i18n=I18n('fastadmin')
|
|
|
|
%>
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>${title}</title>
|
|
<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 rel="stylesheet" href="${make_media_url('css/layout.css', 'fastadmin')}" type="text/css" media="all" />
|
|
<%block name="css">
|
|
</%block>
|
|
<%block name="header_js">
|
|
</%block>
|
|
</head>
|
|
<body data-bs-theme="dark">
|
|
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
<symbol id="home" viewBox="0 0 16 16">
|
|
<path d="M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146zM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4H2.5z"/>
|
|
</symbol>
|
|
%for module_icon in modules_admin_icons:
|
|
|
|
${module_icon|n}
|
|
|
|
%endfor
|
|
</svg>
|
|
<div class="loader-div" id="loader-div" style="display:none;">
|
|
<span class="loader">
|
|
<span></span>
|
|
<span></span>
|
|
</span>
|
|
</div>
|
|
<main>
|
|
<div class="container-fluid">
|
|
<div id="header_dashboard" class="row pt-3 pb-3">
|
|
<div class="col-sm-6 m-0 d-flex align-content-center flex-wrap align-self-center">
|
|
<h2 class="text-left ms-4 mt-0 mt-0 p-0" id="form_title">${tlang('Dashboard')}</h2>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2 p-3 m-0 text-white bg-dark" style="height:91vh;">
|
|
<!--<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
|
|
<svg class="bi me-2" width="40" height="32"><use xlink:href="#bootstrap"></use></svg>
|
|
<span class="fs-4">Sidebar</span>
|
|
</a>-->
|
|
<hr>
|
|
<!--<ul class="nav nav-pills flex-column mb-auto">
|
|
<li>
|
|
<a href="#" class="nav-link active text-white">
|
|
<svg class="bi me-2" width="16" height="16"><use xlink:href="#speedometer2"></use></svg>
|
|
${tlang('Dashboard')}
|
|
</a>
|
|
</li>
|
|
</ul>-->
|
|
% for module in modules_admin:
|
|
<ul class="nav nav-pills flex-column mb-auto">
|
|
<li>
|
|
<a href="${url_for(module[0])}" class="nav-link text-white menu_item ${'active' if module[0]==module_selected else ''}" id="menu_${module[0]}">
|
|
<svg class="bi me-2" width="16" height="16"><use xlink:href="#${module[1]}"></use></svg>
|
|
${i18n.clang('fastadmin', module[0], module[0])}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
% endfor
|
|
<hr>
|
|
|
|
</div>
|
|
<div class="col-sm m-2 pt-3" style="">
|
|
<%block name="content">
|
|
<div class="card">
|
|
<div class="card-header bg-primary bg-gradient">
|
|
${tlang('Welcome to admin')}
|
|
</div>
|
|
<div class="card-body">
|
|
<p>${tlang('This is the admin section of your site.')}</p>
|
|
</div>
|
|
</div>
|
|
</%block>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<footer class="footer m-0 p-0">
|
|
|
|
</footer>
|
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy" crossorigin="anonymous"></script>
|
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
|
<script>
|
|
document.documentElement.setAttribute('data-bs-theme','dark');
|
|
|
|
setTimeout(function () {
|
|
|
|
$('#loader-div').fadeOut(2000);
|
|
|
|
|
|
}, 1000);
|
|
|
|
$('.menu_item').hover( function (e) {
|
|
|
|
if($(this).hasClass('active')) {
|
|
|
|
$(this).removeClass('active');
|
|
|
|
} else {
|
|
|
|
$(this).addClass('active');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
<%block name="js">
|
|
</%block>
|
|
</body>
|
|
</html>
|