{% extends "base.html" %} {% load i18n %}{% comment %} Delete a workspace (#242; the Workspaces list's Delete, which #274 shares on the workspace's Files): it names the stations and says the files can't be recovered, then one danger button, and Cancel back to where Delete was chosen (back_url). A plain form: no JavaScript needed. Context from views_workspace.delete_workspace. {% endcomment %} {% block title %}{% blocktranslate with name=space_name %}Delete {{ name }}{% endblocktranslate %}{% endblock %} {% block content %}
{% csrf_token %}

{% blocktranslate with name=space_name %}Delete {{ name }}?{% endblocktranslate %}

{% blocktranslate count counter=station_names|length trimmed %}This deletes its {{ counter }} station, with its files and results. They can’t be recovered.{% plural %}This deletes its {{ counter }} stations, with their files and results. They can’t be recovered.{% endblocktranslate %}

{% if station_names %}{% endif %}
{% translate "Delete workspace" as delete_label %}{% include "components/button.html" with label=delete_label type="submit" variant="danger" %} {% translate "Cancel" as cancel_label %}{% include "components/button.html" with label=cancel_label href=back_url variant="ghost" %}
{% endblock %}