Skip to content
Snippets Groups Projects
Commit 5ab07d5b authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

view created_on, updated_on and created_by in admin

parent 7c938ee7
No related branches found
No related tags found
No related merge requests found
Pipeline #12126 passed
...@@ -262,8 +262,6 @@ ...@@ -262,8 +262,6 @@
</tbody> </tbody>
</table> </table>
{% with contract.issues.all as issues %}
{% if issues or user.can_view_confidential and contract.notes %}
<table class="table table-auto w-full table--striped table--bordered mb-10"> <table class="table table-auto w-full table--striped table--bordered mb-10">
<tbody> <tbody>
<tr> <tr>
...@@ -272,6 +270,8 @@ ...@@ -272,6 +270,8 @@
</td> </td>
</tr> </tr>
{% if user.can_view_confidential %}
{% with contract.issues.all as issues %}
{% if issues %} {% if issues %}
<tr> <tr>
<td class="w-1/5 !p-2.5">{% if not user.can_view_confidential %}Poznámky{% else %}Problémy{% endif %}</td> <td class="w-1/5 !p-2.5">{% if not user.can_view_confidential %}Poznámky{% else %}Problémy{% endif %}</td>
...@@ -286,8 +286,9 @@ ...@@ -286,8 +286,9 @@
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% endwith %}
{% if user.can_view_confidential and contract.notes %} {% if ontract.notes %}
<tr> <tr>
<td class="w-1/5 !p-2.5 !bg-red-100"> <td class="w-1/5 !p-2.5 !bg-red-100">
<div class="flex items-center"> <div class="flex items-center">
...@@ -302,10 +303,22 @@ ...@@ -302,10 +303,22 @@
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% endif %}
<tr>
<td class="w-1/5 !p-2.5">Čas vytvoření</td>
<td class="w-4/5 !p-2.5">{{ contract.created_on }}</td>
</tr>
<tr>
<td class="w-1/5 !p-2.5">Čas poslední aktualizace</td>
<td class="w-4/5 !p-2.5">{{ contract.updated_on }}</td>
</tr>
<tr>
<td class="w-1/5 !p-2.5">Nahráno uživatelem</td>
<td class="w-4/5 !p-2.5">{{ contract.created_by }}</td>
</tr>
</tbody> </tbody>
</table> </table>
{% endif %}
{% endwith %}
<h2 class="text-xl font-bold mb-5"><i class="ico--pencil mr-3"></i>Podpisy</h2> <h2 class="text-xl font-bold mb-5"><i class="ico--pencil mr-3"></i>Podpisy</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment