577 lines
19 KiB
HTML
577 lines
19 KiB
HTML
{% load static %}
|
|
{% load counter_tag %}
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
<link rel="shortcut icon" type="image/x-icon" href="{% static 'users/img/favicon.png' %}">
|
|
<title>Digitale Agentur</title>
|
|
|
|
<!-- Custom fonts for this template-->
|
|
|
|
<link rel="canonical" href="https://www.digitale-agentur.com">
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
|
|
|
|
|
|
<link href="{%static 'users/vendor/fontawesome-free/css/all.min.css' %}" rel="stylesheet" type="text/css">
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
|
|
|
|
|
|
<!--<link href="{%static 'users/css/bootstrap.min.css' %}" rel="stylesheet">-->
|
|
<link href='https://fonts.googleapis.com/css?family=Roboto&display=swap' rel='stylesheet' type='text/css'>
|
|
|
|
<!-- include summernote css/js -->
|
|
<!--<link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote.min.css" rel="stylesheet">
|
|
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote.min.js"></script>-->
|
|
|
|
{% if request.user_agent.browser.family == "IE" %}
|
|
<link href="https://cdn.jsdelivr.net/npm/summernote@0.8.12/dist/summernote.min.css" rel="stylesheet">
|
|
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.12/dist/summernote.min.js"></script>
|
|
{% else %}
|
|
<link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote.min.css" rel="stylesheet">
|
|
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote.min.js"></script>
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
|
<script src="{% static 'users/js/jsLists.js' %}"></script>
|
|
<link href="{% static 'users/css/jsLists.css' %}" rel="stylesheet">
|
|
<!-- CROPPER -->
|
|
<link href="{% static 'users/css/cropper.min.css' %}" rel="stylesheet">
|
|
|
|
<!-- TABLE SORT -->
|
|
<!--<link rel="stylesheet" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css">-->
|
|
|
|
<!-- DATATABLES -->
|
|
<!--<link href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css" rel="stylesheet">
|
|
<link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet">-->
|
|
|
|
<!-- Custom styles for this template-->
|
|
<link href="{% static 'users/css/sb-admin-2.css' %}" rel="stylesheet">
|
|
|
|
<link href="{% static 'users/css/theme.css' %}" rel="stylesheet">
|
|
<link href="{% static 'users/css/custom.css' %}" rel="stylesheet">
|
|
|
|
</head>
|
|
<body>
|
|
<!-- Page Wrapper -->
|
|
<div id="wrapper">
|
|
<!-- Sidebar -->
|
|
|
|
<ul class=" bg-gray-900 sidebar sidebar-dark accordion fixed-top" id="accordionSidebar">
|
|
|
|
<!-- Sidebar - Brand -->
|
|
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{% url 'users-dashboard' %}">
|
|
<i class="fas fa-laptop"></i>
|
|
<div class="sidebar-brand-text mx-2" style="">Digitale Agentur</div>
|
|
</a>
|
|
|
|
<!-- Divider -->
|
|
<hr class="sidebar-divider my-0">
|
|
|
|
<!-- Nav Item - Dashboard -->
|
|
{% if active_link == 'dashboard' %}
|
|
<li class="nav-item active">
|
|
{% else %}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link" href="{% url 'users-dashboard' %}">
|
|
<i class="fas fa-fw fa-tachometer-alt"></i>
|
|
<span>Dashboard</span></a>
|
|
</li>
|
|
|
|
<!-- Divider -->
|
|
<hr class="sidebar-divider">
|
|
|
|
<!-- Heading -->
|
|
<div class="sidebar-heading">
|
|
Agentur
|
|
</div>
|
|
|
|
{% if active_link == 'standards' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="{% url 'standards' %}" aria-expanded="true">
|
|
<i class="fas fa-fw fa-lightbulb"></i>
|
|
<span>Standards</span>
|
|
</a>
|
|
</li>
|
|
|
|
{% if active_link == 'orga' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="{% url 'orga-main' %}" aria-expanded="true">
|
|
<i class="fas fa-fw fa-sitemap"></i>
|
|
<span>Organigramm</span>
|
|
</a>
|
|
</li>
|
|
<!--
|
|
{% if active_link == 'agencyinfo' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="#" aria-expanded="true">
|
|
<i class="fas fa-fw fa-info"></i>
|
|
<span>Agentur</span>
|
|
</a>
|
|
</li>
|
|
-->
|
|
{% if request.user.profile.agency.module_quicklinks %}
|
|
{% if active_link == 'quicklinks' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="{% url 'ql-management' %}" aria-expanded="true">
|
|
<i class="fas fa-external-link-alt"></i>
|
|
<span>Quicklinks</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if request.user.profile.agency.module_files and request.user|usergperm:"filesviewer" %}
|
|
{% if active_link == 'cloud' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="{% url 'cloud-main' 'first' %}" aria-expanded="true">
|
|
<i class="fas fa-file"></i>
|
|
<span>Dateien</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if request.user.profile.agency.module_messages %}
|
|
{% if active_link == 'messages' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="{% url 'messages' %}" aria-expanded="true">
|
|
<i class="fas fa-envelope"></i>
|
|
<span>Mitteilungen</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<!--
|
|
{% if perms.users.users_usermanagement %}
|
|
{% if active_link == 'usersmanagement' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link" href="{% url 'users-management' %}">
|
|
<i class="fas fa-fw fa-users"></i>
|
|
<span>Benutzer</span></a>
|
|
</li>
|
|
{%endif%}
|
|
-->
|
|
|
|
<!--
|
|
{% if perms.users.news_management %}
|
|
{% if active_link == 'newsmanagement' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="{% url 'news-management' %}" aria-expanded="true">
|
|
<i class="far fa-newspaper"></i>
|
|
<span>News</span>
|
|
</a>
|
|
</li>
|
|
{%endif%}
|
|
-->
|
|
<!-- Divider -->
|
|
|
|
|
|
<!-- Sidebar Toggler (Sidebar) -->
|
|
<!--
|
|
<div class="text-center d-none d-md-inline">
|
|
<button class="rounded-circle border-0" id="sidebarToggle"></button>
|
|
</div>
|
|
-->
|
|
<style scoped>
|
|
#bottom_info {
|
|
position: absolute;
|
|
bottom: 0;
|
|
}
|
|
</style>
|
|
<div id="bottom_info">
|
|
<hr class="sidebar-divider d-none d-md-block">
|
|
{% if active_link == 'dasettings' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="{% url 'dasettings' %}" aria-expanded="true" style="margin-top: -15px">
|
|
<i class="fas fa-cog"></i>
|
|
<span>Einstellungen</span>
|
|
</a>
|
|
</li>
|
|
{% if active_link == 'support' %}
|
|
<li class="nav-item active">
|
|
{% else%}
|
|
<li class="nav-item">
|
|
{%endif%}
|
|
<a class="nav-link " href="{% url 'supportda' %}" aria-expanded="true" style="margin-top: -15px">
|
|
<i class="fas fa-question"></i>
|
|
<span>Support</span>
|
|
</a>
|
|
</li>
|
|
|
|
<div style="" class="sidebar-heading">
|
|
<a style="color: #999; text-decoration: none;" href="{% url 'datenschutzda' %}">Datenschutz</a><br />
|
|
<a style="color: #999; text-decoration: none;" href="{% url 'impressumda' %}">Impressum</a>
|
|
</div>
|
|
<div style="margin-top: 10px; margin-bottom: 5px;" class="sidebar-heading">
|
|
Version 0.8.1
|
|
</div>
|
|
</div>
|
|
</ul>
|
|
<!-- End of Sidebar -->
|
|
|
|
<!-- Content Wrapper -->
|
|
<style scoped>
|
|
#content-wrapper {
|
|
margin-left: 212px;
|
|
margin-top: -72px;
|
|
}
|
|
@media screen and (max-width: 768px) {
|
|
#content-wrapper {
|
|
margin-left: 105px;
|
|
}
|
|
}
|
|
</style>
|
|
<div id="content-wrapper">
|
|
<!-- Main Content -->
|
|
<!-- Topbar -->
|
|
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
|
|
|
|
<!-- Sidebar Toggle (Topbar) -->
|
|
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" onclick="javascript:toggleSidebar()">
|
|
<i class="fa fa-bars"></i>
|
|
</button>
|
|
|
|
<!-- Topbar Search -->
|
|
<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
|
|
<div class="input-group">
|
|
<input list="searchres" placeholder="Agenturweite Suche..." id="search_string" onkeyup="javascript:startSearch(this.value)" class="form-control bg-light border-0 small" >
|
|
<!--
|
|
<input type="text" onkeyup="javascript:startSearch(this.value)" class="form-control bg-light border-0 small" placeholder="Suche..." aria-label="Suche" aria-describedby="basic-addon2" id="searchfield">
|
|
-->
|
|
<div class="input-group-append">
|
|
<button class="btn btn-primary" type="button" onclick="javascript:clearSF()">
|
|
<i class="fas fa-times fa-sm"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<!-- Topbar Navbar -->
|
|
<ul class="navbar-nav ml-auto ">
|
|
|
|
<!-- ALERT_AREA -->
|
|
<!-- Nav Item - Alerts -->
|
|
<li class="nav-item dropdown no-arrow mx-1">
|
|
<a class="nav-link dropdown-toggle" onclick="changeNewNotToViewed()" id="alertsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<i class="fas fa-bell fa-fw"></i>
|
|
<!-- Counter - Alerts -->
|
|
<span class="badge badge-danger badge-counter" id="notificationcounter"></span>
|
|
</a>
|
|
<!-- Dropdown - Alerts -->
|
|
<div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="alertsDropdown" id="allnotificationsarea">
|
|
<h6 class="dropdown-header bg-success text-white">
|
|
Benachrichtigungen
|
|
</h6>
|
|
<!-- ITEMS -->
|
|
<span id="notification_items"></span>
|
|
<!-- ITEMS END -->
|
|
<a class="dropdown-item text-center small text-gray-500" href="{% url 'showallnotificaions' %}">Alle Benachrichtigungen ansehen</a>
|
|
</div>
|
|
</li>
|
|
|
|
|
|
<div class="topbar-divider d-none d-sm-block"></div>
|
|
<!-- Nav Item - User Information -->
|
|
<li class="nav-item dropdown no-arrow">
|
|
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<span class="mr-2 d-none d-lg-inline text-gray-600 small">{{request.user.first_name}} {{request.user.last_name}}</span>
|
|
<img class="img-profile " src="{{ user.profile.get_photo_url }}">
|
|
</a>
|
|
<!-- Dropdown - User Information -->
|
|
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="userDropdown">
|
|
<a class="dropdown-item" href="{% url 'orga-single' user.pk %}">
|
|
<i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
|
|
Orga-Profil
|
|
</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="{% url 'users-logout' %}">
|
|
<i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
|
|
Abmelden
|
|
</a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
<!-- End of Topbar -->
|
|
<!-- Begin Page Content -->
|
|
<div class="container-fluid" >
|
|
<!-- MESSAGES -->
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div class="alert alert-{{ message.tags }} alert-dismissible fade show col-6" role="alert" id="message_{{forloop.counter}}">
|
|
{{ message }}
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
<div id="searchcontent">
|
|
</div>
|
|
<div id="maincontent" styl="min-height: 100%">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</div>
|
|
<div style="height: 300px"> </div>
|
|
</div> <!-- End of Main Content CONTAINER FLUID-->
|
|
<!-- End of Content Wrapper -->
|
|
</div>
|
|
</div>
|
|
<!-- End of Page Wrapper -->
|
|
<!--
|
|
<footer class="sticky-footer bg-white" style="width: 86.2%;position: absolute;
|
|
bottom: 0; margin-top: 80px; padding-top: 20px; padding-bottom: 20px;
|
|
">
|
|
<div class="container my-auto">
|
|
<div class="copyright text-center my-auto">
|
|
<span>Copyright © digitale-agentur.com für <b>{{ user.profile.agency.name }}</b></span><br /><small>Version 0.0.5</small>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
-->
|
|
<!-- Scroll to Top Button-->
|
|
<a class="scroll-to-top rounded" href="#page-top">
|
|
<i class="fas fa-angle-up"></i>
|
|
</a>
|
|
<!-- Bootstrap core JavaScript-->
|
|
<!--<script src="{%static 'users/vendor/jquery/jquery.min.js' %}"></script>-->
|
|
<script src="{%static 'users/vendor/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
|
|
<!-- Core plugin JavaScript-->
|
|
<script src="{%static 'users/vendor/jquery-easing/jquery.easing.min.js' %}"></script>
|
|
<!-- DATABLES JS -->
|
|
<script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
|
|
<script src="https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js"></script>
|
|
|
|
<!-- Custom scripts for all pages-->
|
|
<script src="{%static 'users/js/sb-admin-2.js' %}"></script>
|
|
<!-- CUSTOM FONT -->
|
|
<link href="{% static 'users/css/custom.css' %}" rel="stylesheet">
|
|
|
|
<!-- TABLE SORT -->
|
|
<!--<script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>-->
|
|
|
|
<!-- Page level plugins -->
|
|
<!--<script src="vendor/chart.js/Chart.min.js"></script>-->
|
|
|
|
<!-- Page level custom scripts -->
|
|
<!--<script src="js/demo/chart-area-demo.js"></script>-->
|
|
<!--<script src="js/demo/chart-pie-demo.js"></script>-->
|
|
|
|
</body>
|
|
</html>
|
|
|
|
{% if request.user.profile.showtooltips %}
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
});
|
|
</script>
|
|
{% endif %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
function clearSF(){
|
|
$("#searchcontent").empty();
|
|
$("#searchcontent").hide();
|
|
$("#maincontent").show();
|
|
$("#search_string").val("");
|
|
}
|
|
|
|
function startSearch(searchstring){
|
|
if(searchstring.length > 2){
|
|
$.ajax(
|
|
{
|
|
type: "GET",
|
|
url: "/dashboard/globalsearch",
|
|
data:{
|
|
searchstring: searchstring
|
|
},
|
|
success: function( data )
|
|
{
|
|
console.log(data);
|
|
$("#maincontent").hide();
|
|
$("#searchcontent").show();
|
|
$("#searchcontent").html(data);
|
|
}
|
|
});
|
|
} else {
|
|
$("#searchcontent").empty();
|
|
$("#searchcontent").hide();
|
|
$("#maincontent").show();
|
|
}
|
|
}
|
|
|
|
sidebar_toggled = false;
|
|
|
|
// Toggle the side navigation
|
|
function toggleSidebar(){
|
|
$("#accordionSidebar").toggleClass("sidebar-toggled");
|
|
if($("#accordionSidebar").hasClass("sidebar-toggled"))
|
|
{
|
|
$("#content-wrapper").css("margin-left" , "0px");
|
|
sidebar_toggled = true;
|
|
}
|
|
else{
|
|
$("#content-wrapper").css("margin-left" , "105px");
|
|
sidebar_toggled = false;
|
|
}
|
|
}
|
|
|
|
delay = 250;
|
|
throttled = false;
|
|
function getDimensions() {
|
|
width = window.innerWidth;
|
|
|
|
if(width >= 768){
|
|
$("#content-wrapper").css("margin-left" , "212px");
|
|
}
|
|
else{
|
|
$("#content-wrapper").css("margin-left" , "105px");
|
|
}
|
|
}
|
|
|
|
// window.resize event listener
|
|
window.addEventListener('resize', function() {
|
|
if (!throttled) { // nur wenn throttled nicht gesetzt ist
|
|
getDimensions(); // Callback-Aktion
|
|
throttled = true; // Jetzt wird wieder ausgebremst
|
|
setTimeout(function() { // Timeout
|
|
throttled = false;
|
|
}, delay);
|
|
}
|
|
});
|
|
|
|
getDimensions();
|
|
|
|
/*
|
|
AJAX CALL FOR NOTIFICATIONS
|
|
|
|
*/
|
|
newunknownotificationscounter = 0;
|
|
|
|
|
|
|
|
function loadUnsendNotifications(){
|
|
$.ajax(
|
|
{
|
|
type: "GET",
|
|
url: "/notifications/checknotifications",
|
|
data : {
|
|
action : "checknotifications"
|
|
},
|
|
success: function( data )
|
|
{
|
|
notifications = data['unknownnotification'];
|
|
var i = 0;
|
|
for (var key in notifications) {
|
|
$("#notification_items").append('<a href="/'+notifications[i]['elelink']+'" id="notifyid_'+notifications[i]['not_id']+'" class="dropdown-item d-flex align-items-center"><div><div class="small text-gray-500">'+notifications[i]['date']+'</div>'+notifications[i]['text']+'</div></a>')
|
|
i = i + 1;
|
|
newunknownotificationscounter = newunknownotificationscounter + 1;
|
|
}
|
|
$("#notificationcounter").html("");
|
|
|
|
if(i > 0){$("#notificationcounter").html(i);}
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function loadUnviewnNotifications(){
|
|
$.ajax(
|
|
{
|
|
type: "GET",
|
|
url: "/notifications/getnotifications",
|
|
data : {
|
|
action : "oldnotifications"
|
|
},
|
|
success: function( data )
|
|
{
|
|
notifications = data['oldnotifications'];
|
|
i = 0;
|
|
for (var key in notifications) {
|
|
if(newunknownotificationscounter <= 5){
|
|
$("#notification_items").append('<a href="/'+notifications[i]['elelink']+'" id="notifyid_'+notifications[i]['not_id']+'" class="dropdown-item d-flex align-items-center"><div><div class="small text-gray-500">'+notifications[i]['date']+'</div>'+notifications[i]['text']+'</div></a>')
|
|
i = i + 1;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function changeNewNotToViewed(){
|
|
$.ajax(
|
|
{
|
|
type: "GET",
|
|
url: "/notifications/newnotificationsviewed",
|
|
data : {
|
|
action : "newnotificationsviewed"
|
|
},
|
|
success: function( data )
|
|
{
|
|
$("#notificationcounter").html("");
|
|
}
|
|
});
|
|
}
|
|
|
|
function removeNotification(notifyid){
|
|
//$("#notifyid_" + notifyid).remove()
|
|
//$("#allnotificationsarea").show();
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
console.log();
|
|
$("#notification_items").html("");
|
|
loadUnsendNotifications();
|
|
loadUnviewnNotifications();
|
|
});
|
|
|
|
$(window).click(function() {
|
|
$("#notification_items").html("");
|
|
loadUnsendNotifications();
|
|
loadUnviewnNotifications();
|
|
});
|
|
</script>
|
|
|