{% extends 'localcosmos_server/generic/delete_object.html' %}
{% load i18n static localcosmos_tags %}

{% block success_js %}
	<script>
		{# the image has to be replaced with the default noimage #}
		var image_element = $("#content_image_{{ content_instance|ctype_id }}_{{ content_instance.id }}");

		{# in some cases, the image is a background #}
		image_element.css("background-image", "url('{% static 'noimage.png' %}'");
		$("#Modal").modal("hide");
	</script>

	{% block extra_success_js %}{% endblock %}
{% endblock %}

{% block title %}{% blocktrans %}Delete image{% endblocktrans %}{% endblock %}

{% block deletion_text %}
	{% trans 'Do you really want to delete this image?' %}
{% endblock %}
