2023-04-17 21:08:18 +02:00
|
|
|
{% extends 'generic/object.html' %}
|
|
|
|
{% load buttons %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load perms %}
|
2023-07-28 22:30:25 +02:00
|
|
|
{% load i18n %}
|
2023-04-17 21:08:18 +02:00
|
|
|
|
2024-01-17 22:25:42 +01:00
|
|
|
{% block control-buttons %}
|
|
|
|
{% if request.user|can_delete:object %}
|
|
|
|
{% delete_button object %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock control-buttons %}
|
2023-04-17 21:08:18 +02:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
2023-07-28 22:30:25 +02:00
|
|
|
<h5 class="card-header">{% trans "Job" %}</h5>
|
2024-01-17 22:25:42 +01:00
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Object Type" %}</th>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'core:job_list' %}?object_type={{ object.object_type_id }}">{{ object.object_type }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Name" %}</th>
|
|
|
|
<td>{{ object.name|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Status" %}</th>
|
|
|
|
<td>{% badge object.get_status_display object.get_status_color %}</td>
|
|
|
|
</tr>
|
|
|
|
{% if object.error %}
|
2023-04-17 21:08:18 +02:00
|
|
|
<tr>
|
2024-01-17 22:25:42 +01:00
|
|
|
<th scope="row">{% trans "Error" %}</th>
|
|
|
|
<td>{{ object.error }}</td>
|
2023-04-17 21:08:18 +02:00
|
|
|
</tr>
|
2024-01-17 22:25:42 +01:00
|
|
|
{% endif %}
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Created By" %}</th>
|
|
|
|
<td>{{ object.user|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2023-04-17 21:08:18 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
2023-07-28 22:30:25 +02:00
|
|
|
<h5 class="card-header">{% trans "Scheduling" %}</h5>
|
2024-01-17 22:25:42 +01:00
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Created" %}</th>
|
2024-04-17 17:46:47 +02:00
|
|
|
<td>{{ object.created|isodatetime }}</td>
|
2024-01-17 22:25:42 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Scheduled" %}</th>
|
|
|
|
<td>
|
2024-04-17 17:46:47 +02:00
|
|
|
{{ object.scheduled|isodatetime|placeholder }}
|
2024-01-17 22:25:42 +01:00
|
|
|
{% if object.interval %}
|
2024-03-15 17:32:54 +01:00
|
|
|
({% blocktrans with interval=object.interval %}every {{ interval }} minutes{% endblocktrans %})
|
2024-01-17 22:25:42 +01:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Started" %}</th>
|
2024-04-17 17:46:47 +02:00
|
|
|
<td>{{ object.started|isodatetime|placeholder }}</td>
|
2024-01-17 22:25:42 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Completed" %}</th>
|
2024-04-17 17:46:47 +02:00
|
|
|
<td>{{ object.completed|isodatetime|placeholder }}</td>
|
2024-01-17 22:25:42 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
2023-04-17 21:08:18 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-12">
|
|
|
|
<div class="card">
|
2023-07-28 22:30:25 +02:00
|
|
|
<h5 class="card-header">{% trans "Data" %}</h5>
|
2023-04-17 21:08:18 +02:00
|
|
|
<div class="card-body">
|
|
|
|
<pre>{{ object.data|json }}</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|