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