{% extends "ldt/ldt_utils/workspace_base.html" %}

{% load i18n %} {# form of creation of content #}

{% block js_import %}
	{{ block.super }}
    <script type="text/javascript" src="{% url ldt.jsi18n packages='ldt' %}" ></script>	
    <script type="text/javascript" src="{{LDT_MEDIA_PREFIX}}js/projectscontents.js"></script>
{% endblock %}

{% block css_import %}
	{{ block.super }}
	{{ content_form.media.css }}
	<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldt.css" />
	<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldtform.css" />
{% endblock %}


{% block content %}
	
<div id="error">
<div class="projectscontentstitle">{% if errors|length > 0 %}{% trans "error" %}{% else %}{% trans "confirm_reset" %}{% endif %}</div>
<div class="error_message">
	{{ message }}
		{% if errors|length > 0 %}
		<ul>
		{% for error_msg in errors %}
			<li>{{ error_msg }}</li>	
		{% endfor %}
		</ul>
	{% endif %}
</div>

<div id="submitcontent" >
	<div id="submitcontent-buttons" >
		<form method="post" enctype="application/x-www-form-urlencoded" action="{{ delete_action }}">
			{% csrf_token %}
			<button type = "submit" value="close" name="submit_button" id="close_button">{% trans 'close_cancel' %}</button>
			{% if errors|length <= 0 %}<button type="submit" value="reset" name="submit_button" id="submit_button">{% trans "reset_front_project" %}</button>{% endif %}
		</form>
	
	</div>
</div>

</div>	
{% endblock %}
