54 lines
2.4 KiB
HTML
54 lines
2.4 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>
|
|
<h4>Agentur: <b>{{ request.user.profile.agency.name }}</b></h4>
|
|
<hr>
|
|
<h5>Neueste Standards</h5>
|
|
<div class="row">
|
|
<hr>
|
|
<div class="col mt-2">
|
|
{% for item in standards_of_agency %}
|
|
{% if item.public or item.created_standard_by == user or perms.users.standard_management %}
|
|
<div class=" mb-4">
|
|
<div class="card">
|
|
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
|
|
<a href="{% url 'standard-single' item.pk%}">
|
|
{% if item.public %}
|
|
<h5><u>{{item.name}}</u></h5>
|
|
{% else %}
|
|
<h5 class="text-warning"><u>{{item.name}}</u></h5>
|
|
{% endif %}
|
|
</a>
|
|
{% if item.created_standard_by == user or perms.users.standard_management %}
|
|
<div class="dropdown no-arrow">
|
|
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
|
|
<!--<div class="dropdown-header">Benutzerdaten</div>-->
|
|
<a class="dropdown-item" href="{% url 'standard-update' item.pk %}">Bearbeiten</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item text-danger" href="{% url 'standard-delete' item.pk %}" >Löschen</a>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="card-body">
|
|
<h6 class="card-title">{{item.created_standard_by.first_name}} {{item.created_standard_by.last_name}} <small>Zuletzt bearbeitet von {{ item.last_modified_by.first_name }} {{ item.last_modified_by.last_name }} am {{ item.last_modified_on }}</small>
|
|
</h6>
|
|
<p class="card-text">{{ item.content|truncatechars:80|safe}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor%}
|
|
</div>
|
|
<div class="col text-right" >
|
|
<img class="img-profile" width="50%" src="{{ request.user.profile.agency.agencypic.url }}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock content %} |