Code for importing data from pretalx
This commit is contained in:
parent
1001c51bc1
commit
e48acab387
5 changed files with 392 additions and 5 deletions
40
confarchive/templates/import/start.html
Normal file
40
confarchive/templates/import/start.html
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Import – Conference archive{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Import</h1>
|
||||
|
||||
<form>
|
||||
<div>
|
||||
<label for="url">URL</label>
|
||||
<input name="url" id="url" size="60"/>
|
||||
</div>
|
||||
<button>next</button>
|
||||
</form>
|
||||
|
||||
{% if events %}
|
||||
<div style="margin-top: 1.5rem">
|
||||
{% for event in events %}
|
||||
<hr>
|
||||
<h3>
|
||||
{% set href = url_for("import_event", hostname=hostname, slug=event.slug) %}
|
||||
<a href="{{ href }}">
|
||||
{{ prefer_en_label(event.name) or "[ anme missing ]" }}
|
||||
</a>
|
||||
</h3>
|
||||
<div>
|
||||
{{event.slug}} ({{ event.date_from }} to {{ event.date_to }})
|
||||
</div>
|
||||
{% if event.existing %}
|
||||
{% set conf = event.existing %}
|
||||
<div>
|
||||
Already loaded:
|
||||
<a href="{{ url_for("conference_page", short_name=conf.short_name) }}">{{ conf.title }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue