Skip to content
Snippets Groups Projects
Commit 4f11aa72 authored by Andreas Hubel's avatar Andreas Hubel Committed by Roang
Browse files

chore(scheduleimport): improve detail view

parent 63a25241
Branches
Tags
No related merge requests found
......@@ -40,7 +40,7 @@
<p>
Configuration:
<br>
<pre class="border"><code>{{ object.import_configuration_masked }}</code></pre>
<pre class="border"><code>{{ object.import_configuration_masked|json_indent }}</code></pre>
</p>
</div>
</div>
......
......@@ -4,6 +4,13 @@
{% block content %}
{% if object.data %}
<div class="float-end">
<a href="{% url 'backoffice:schedulesourceimport-detail-data' pk=object.pk %}"
class="btn btn-outline-primary">data as JSON</a>
</div>
{% endif %}
<h1>
ScheduleSourceImport for "<span title="{{ object.schedule_source.assembly.name }}">{{ object.schedule_source.assembly.slug }}</span>"
</h1>
......@@ -14,6 +21,9 @@
Source <a href="{% url 'backoffice:schedulesource-detail' pk=object.schedule_source_id %}"><code>{{ object.schedule_source_id }}</code></a>
</div>
<div class="card-body">
<p>
URL: <strong><a href="{{ object.schedule_source.import_url }}">{{ object.schedule_source.import_url }}</a></strong>
</p>
<p>
State: <strong class="{{ object.text_color_class }}">{{ object.state }}</strong>
</p>
......@@ -95,11 +105,4 @@
</div>
{% endif %}
{% if object.data %}
<div class="text-center">
<a href="{% url 'backoffice:schedulesourceimport-detail-data' pk=object.pk %}"
class="btn btn-outline-primary">data as JSON</a>
</div>
{% endif %}
{% endblock content %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment