{% extends 'base.html' %} {% load icon_tags %} {% load license_tags %} {% load crispy_forms_tags %} {% block content %}

You are about to publish your digital surface twin {{ surface.name }}

By publishing, you create an immutable copy of this digital twin as a snapshot with all its data.

This snapshot has a version number and a unique URL for citations and it is visible and usable for everyone.

Implications of publishing

This is great if you want to make your data public under a permanent URL, e.g. in order to reference your data in a citation.

Since a copy is made, you can still work on your original data as before the publication. You may also publish an updated version of this digital surface twin later.

{% if surface.topography_set.count == 0 %}

This digital surface twin has no measurements yet

If you'd like to publish this digital surface twin, please add at least one measurement to it. You can do this by pressing the button on the right or on the previous tab.

{% else %} {# --------------------- Django Form via Crispy Forms together with Vuejs ---------------------- #} {% crispy form form.helper %} {% if form.errors %} {% for field in form %} {% for error in field.errors %}
Field {{ field.name }}: {{ error|escape }}
{% endfor %} {% endfor %} {% for error in form.non_field_errors %}
{{ error|escape }}
{% endfor %} {% endif %} {% endif %}
{% endblock content %} {% block javascript %} {{ user_dict | json_script:"user" }} {{ form.cleaned_data | json_script:"form-cleaned-data" }} {{ form.is_bound | json_script:"form-is-bound" }} {% endblock javascript %}