Browse Source

Zobrazení deadlinu doručení

middleware_test
Pavel "LEdoian" Turinsky 4 years ago
parent
commit
08e31a849c
  1. 5
      seminar/templates/seminar/odevzdavatko/detail.html

5
seminar/templates/seminar/odevzdavatko/detail.html

@ -1,5 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load static %} {% load static %}
{% load deadliny %}
{% block content %} {% block content %}
@ -62,7 +63,9 @@ $(document).ready(function(){
<p>Řešitelé: {{ object.resitele.all | join:", " }}</p> <p>Řešitelé: {{ object.resitele.all | join:", " }}</p>
{# https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model.get_FOO_display #} {# https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model.get_FOO_display #}
<p>Forma: {{ object.get_forma_display }}, doručeno {{ object.cas_doruceni }}</p> <p>Forma: {{ object.get_forma_display }}</p>
<p>Doručeno {{ object.cas_doruceni }}, deadline: {{object.cas_doruceni | deadline_html }}</p>
{# Soubory: #} {# Soubory: #}
<h3>Přílohy:</h3> <h3>Přílohy:</h3>

Loading…
Cancel
Save