Standardanzeige angepasst
This commit is contained in:
parent
7b35a8b4b4
commit
e965cd623e
Binary file not shown.
|
|
@ -14,7 +14,7 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% for item in standards_of_agency %}
|
{% for item in standards_of_agency %}
|
||||||
<div class=" mb-2 mr-2 col-5">
|
<div class=" mt-4 col-5">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
|
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
|
||||||
<a href="{% url 'standard-single' item.pk%}"><h4><u>{{item.name}}</u></h4></a>
|
<a href="{% url 'standard-single' item.pk%}"><h4><u>{{item.name}}</u></h4></a>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,17 @@
|
||||||
{% extends "users/base.html" %}
|
{% extends "users/base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="content-section col-12">
|
<div class="content-section col-12">
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li class="breadcrumb-item"><a href="{% url 'standards' %}">Standards</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">{{standard.area.name}}</li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">{{standard.task.name}}</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
<small>
|
||||||
|
Erstellt durch {{standard.created_standard_by.first_name}} {{standard.created_standard_by.last_name}} am {{standard.created_standard_date}} | Zuletzt bearbeitet von {{ standard.last_modified_by.first_name}} {{ standard.last_modified_by.last_name}} am {{ standard.last_modified_on}}</small>
|
||||||
|
<hr>
|
||||||
{{standard.media}}
|
{{standard.media}}
|
||||||
{{standard.content|safe}}
|
{{standard.content|safe}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,7 @@ def StandardAdd(request):
|
||||||
new_standard.created_standard_by = request.user
|
new_standard.created_standard_by = request.user
|
||||||
new_standard.published_by = request.user
|
new_standard.published_by = request.user
|
||||||
new_standard.last_modified_by = request.user
|
new_standard.last_modified_by = request.user
|
||||||
|
new_standard.last_modified_on = datetime.now()
|
||||||
new_standard.task = normalForm.cleaned_data['task']
|
new_standard.task = normalForm.cleaned_data['task']
|
||||||
new_standard.area = normalForm.cleaned_data['area']
|
new_standard.area = normalForm.cleaned_data['area']
|
||||||
new_standard.name = normalForm.cleaned_data['name']
|
new_standard.name = normalForm.cleaned_data['name']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue