{% extends "raw_base.html" %}

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

{% block js_import %}
	{{ block.super }}
    <script type="text/javascript" src="{{MEDIA_URL}}js/jquery.nyroModal.min.js"></script>    
	{{ content_form.media.js }}
{% endblock %}

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


{% block body %}
	<div id="add_contribution" class="span-12 last">
	<div class="projectscontentstitle span-12 last">{% trans "Create your project" %}</div>
	<form action="{{create_project_action}}" method="POST">
	{% csrf_token %} 
	<label for="title">{% trans "Title" %}:</label>
	<input class="inputbox required" type="text" name="title" size="80" ; value="" id="title" />
	<label>{% trans "List of contents" %}</label>
	<div class="span-12 last projectscontentsdiv" id="ldtcreatecontentslistcontainer">
		<div class="projectscontentsheader span-12 last" id="contentslistheader">{% trans "name" %}</div>
		<div class="span-12 last projectscontentstablewrapperdiv" id="ldtcreatetablewrapperdiv">
			<div class="span-12 last projectscontentstablediv" id="ldtcreatecontentstablediv">
				<table class="projectscontentstable">
				    <tbody class="projectscontentsbody">
				{% for content in contents %}
					<tr class="imageline {% cycle 'projectscontentsoddline' 'projectscontentsevenline'%}">
					    <td class="cellcheckbox"><input type="checkbox" name="contents" value="{{ content.id }}" checked="true" /></td>
					    <td class="contenttitle">{{ content.title }}</td>
					</tr>
				{% endfor %}
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<div id="submitcontent" class="span-12 last">
		<input class="button" id="ldt_submit" type="submit" value="{% trans 'Create' %}" />
	</div>
	</form>
	</div>
		
{% endblock %}

