* adds modal_generic.html template for generic usage
* adds M2M field log to BaseObject
* adds show log button to controls.html
* adds logging on adding related objects
* adds render log table using generic modal
* adds tooltip to missing values in detail views
* adds/updates translations
This commit is contained in:
mipel
2021-08-05 12:54:28 +02:00
parent 718d5acde5
commit 71bbb3921a
18 changed files with 368 additions and 146 deletions

33
templates/log.html Normal file
View File

@@ -0,0 +1,33 @@
{% load i18n %}
<div class="table-container scroll-300">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">
{% trans 'Timestamp' %}
</th>
<th scope="col">
{% trans 'Action' %}
</th>
<th scope="col">
{% trans 'User' %}
</th>
</tr>
</thead>
<tbody>
{% for entry in log %}
<tr>
<td>
{{entry.timestamp}}
</td>
<td>
{{ entry.action_humanize}}
</td>
<td>
{{entry.user}}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>