{% set tg_session_id = project.main_config.get_tg_session_id(instance) %}
{% if not tg_session_id %}
Attention
You need to provide a "TgAuth Session ID" in order to publish your project to
TextGrid-{{ instance|capitalize }} Instance!
Please first go to this
page!
(You may need to log in via DARIAH-AAI)
Then click on "More Details" and copy the "TgAuth Session ID" to your clipboard.
Finally, paste it into the input field below and save it.
{% endif %}
Set Session ID of TextGrid-{{ instance|capitalize }} Instance
{% if tg_session_id %}
Select from existing projects
{% set tg_project_id = project.main_config.get_tg_project_id(instance) %}
{% for tg_project in project.get_tgp(instance).get_tg_projects() %}
{{ tg_project.name }}
({{ tg_project.contents }} Elements)
ID: {{ tg_project.id }}
{% endfor %}
New project:
{% endif %}
{% if tg_session_id %}
Upload
to {{ instance|capitalize }} Instance
{% if instance == 'test' %}
This upload is for testing purposes.
{% else %}
This starts a real publication.
Please ensure all data is correct.
{% endif %}