95 lines
3.6 KiB
HTML
95 lines
3.6 KiB
HTML
{% extends "users/base.html" %}
|
|
{% block content %}
|
|
<div class="content-section col-12">
|
|
<h3>Willkommen, {{request.user.first_name}} {{request.user.last_name}}!</h3>
|
|
<small>Letzter Login: {{ request.user.last_login }}</small>
|
|
<hr>
|
|
<h5>Agentur: <b>{{ request.user.profile.agency.name }}</b></h5>
|
|
<hr>
|
|
|
|
<div class="row" style="float: left;">
|
|
{% if request.user.profile.agency.module_news %}
|
|
<div class="card d-block mb-3 mr-3 " style="width: 60%" >
|
|
<div class="card-body" >
|
|
<h5 class="card-title">News
|
|
{% if perms.users.modulenews %}
|
|
<a class="btn btn-primary btn-sm ml-1" href="{% url 'news-add' %} " style="float: right;" data-toggle="tooltip" data-placement="top" title="Neue News für Ihre Agentur erstellen"><i class="fas fa-plus"></i></a>
|
|
{% endif %}
|
|
<a class="btn btn-secondary btn-sm" href="{% url 'news-management' %} " style="float: right;" data-toggle="tooltip" data-placement="top" title="Alle News und das News-Archiv betrachten"><i class="fas fa-list"></i></a>
|
|
</h5>
|
|
<div class="table-responsive">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Titel</th>
|
|
<th scope="col">Veröffentlicht von</th>
|
|
<th scope="col">Veröffentlicht am</th>
|
|
</tr>
|
|
</thead>
|
|
{% for news_single in news %}
|
|
<tr>
|
|
<td><a href="{% url 'news-single' news_single.pk %}">{{news_single.name }}</a></td>
|
|
<td>{{ news_single.created_by.first_name }} {{ news_single.created_by.last_name }}</td>
|
|
<td>{{ news_single.go_online_on|date:"d.m.Y, H:i" }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if request.user.profile.agency.module_news %}
|
|
<div class="card d-block mb-3" style="width: 34.8%">
|
|
<div class="card-body">
|
|
<img style="max-height: 400px; max-width: 100%" src="{{ request.user.profile.agency.get_photo_url }}">
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if not request.user.profile.agency.module_news %}
|
|
<div class="card d-block mb-3 mr-3 " style="width: 60%" >
|
|
{% else %}
|
|
<div class="card d-block mb-3" style="width: 96%">
|
|
{% endif %}
|
|
|
|
<div class="card-body">
|
|
<h5 class="card-title">Neueste Standards</h5>
|
|
<div class="table-responsive">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Titel</th>
|
|
<th scope="col">Erstellt von</th>
|
|
<th scope="col">Zuletzt bearbeitet am</th>
|
|
</tr>
|
|
</thead>
|
|
{% for standard in standards_of_agency %}
|
|
<tr>
|
|
<td><a href="{% url 'standard-single' standard.pk %}">{{standard.name}}</a></td>
|
|
<td>{{standard.created_standard_by.first_name}} {{standard.created_standard_by.last_name}}</td>
|
|
<td>{{standard.last_modified_on|date:"d.m.Y, H:i"}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% if not request.user.profile.agency.module_news %}
|
|
<div class="card d-block mb-3" style="width: 34.8%">
|
|
<div class="card-body">
|
|
<img style="max-height: 400px; max-width: 100%" src="{{ request.user.profile.agency.get_photo_url }}">
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
{% endblock content %}
|
|
|
|
|
|
|
|
|
|
|
|
|