62 lines
1.7 KiB
HTML
62 lines
1.7 KiB
HTML
{% extends "wcs/backoffice/base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block appbar-title %}{% trans "Data Sources" %}{% endblock %}
|
|
|
|
{% block appbar-actions %}
|
|
{% if has_chrono %}
|
|
<a href="sync-agendas">{% trans "Refresh agendas" %}</a>
|
|
{% endif %}
|
|
<a data-popup href="import">{% trans "Import" %}</a>
|
|
<a href="new">{% trans "New Data Source" %}</a>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="section">
|
|
<h2>{% trans "Data Sources from Card Models" %}</h2>
|
|
{% if generated_data_sources %}
|
|
<ul class="objects-list single-links">
|
|
{% for data_source in generated_data_sources %}
|
|
<li><a href="{{ data_source.0.get_url }}{% if data_source.3 %}{{ data_source.3.get_url_slug }}/{% endif %}">{{ data_source.1 }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div>
|
|
{% trans "There are no data sources from card models." %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if has_chrono %}
|
|
<div class="section">
|
|
<h2>{% trans "Agendas" %}</h2>
|
|
{% if agenda_data_sources %}
|
|
<ul class="objects-list single-links">
|
|
{% for data_source in agenda_data_sources %}
|
|
<li><a href="{{ data_source.id }}/">{{ data_source.name }} ({{ data_source.slug }}){% if data_source.external_status == 'not-found' %} - <span class="extra-info">{% trans "not found" %}</span>{% endif %}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div>
|
|
{% trans "There are no agendas." %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="section">
|
|
<h2>{% trans "Manually Configured Data Sources" %}</h2>
|
|
{% if data_sources %}
|
|
<ul class="objects-list single-links">
|
|
{% for data_source in data_sources %}
|
|
<li><a href="{{ data_source.id }}/">{{ data_source.name }} ({{ data_source.slug }})</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div>
|
|
{% trans "There are no data sources defined." %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|