--- a/web/franceculture/templates/franceculture/partial/projectslist.html Thu Sep 09 16:47:51 2010 +0200
+++ b/web/franceculture/templates/franceculture/partial/projectslist.html Sat Sep 11 01:18:03 2010 +0200
@@ -28,5 +28,5 @@
</div>
</div>
<div class="projectscontentsfooter span-12 last">
-+ {% trans "Create project" %}
++ <a class='ldt_link_create' href="{% url ldt.ldt_utils.views.create_ldt_view %}" >{% trans "Create project" %}</a>
</div>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/franceculture/templates/ldt/ldt_utils/create_ldt.html Sat Sep 11 01:18:03 2010 +0200
@@ -0,0 +1,53 @@
+{% 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 %}
+
--- a/web/static/css/ldtform.css Thu Sep 09 16:47:51 2010 +0200
+++ b/web/static/css/ldtform.css Sat Sep 11 01:18:03 2010 +0200
@@ -1,14 +1,22 @@
@charset "UTF-8";
-#add_content {
- padding: 20px;
+#add_content, #add_contribution {
+ padding: 10px;
}
-#add_content input, #add_content textarea, #add_content select {
+
+#add_content input, #add_content textarea, #add_content select,
+#add_contribution input, #add_contribution textarea, #add_contribution select
+{
background: #ededed;
width: 250px;
}
+#add_contribution input[type="checkbox"] {
+ width: auto;
+}
+
+
#add_content textarea {
height : 125px;
}
@@ -38,7 +46,7 @@
text-align: right;
}
-#add_content input[type="submit"] {
+#add_content input[type="submit"], #add_contribution input[type="submit"] {
background-color: #656565;
color: white;
width:auto;
@@ -72,3 +80,24 @@
margin: 10px 0px;
}
+.cellcheckbox {
+ text-align: center;
+ width: 70 px;
+}
+
+#contentslistheader {
+ padding: 1px 10px 1px 36px;
+}
+
+#ldtcreatetablewrapperdiv {
+ height: 282px;
+}
+
+#ldtcreatecontentstablediv {
+ max-height: 280px;
+}
+
+#ldtcreatecontentslistcontainer {
+ padding: 5px 0px 20px 0px;
+ height: 300px;
+}
--- a/web/static/css/style.css Thu Sep 09 16:47:51 2010 +0200
+++ b/web/static/css/style.css Sat Sep 11 01:18:03 2010 +0200
@@ -232,7 +232,7 @@
color: #949494;
font-family: Verdana;
font-weight: lighter;
- font-size: 2.5em;
+ font-size: 2.0em;
font-style: normal;
text-align: left;
}
--- a/web/static/css/workspace.css Thu Sep 09 16:47:51 2010 +0200
+++ b/web/static/css/workspace.css Sat Sep 11 01:18:03 2010 +0200
@@ -145,7 +145,8 @@
display: none;
}
-a.content_link_create:link, a.content_link_create:visited {
+a.content_link_create:link, a.content_link_create:visited,
+a.ldt_link_create:link, a.ldt_link_create:visited {
color: white;
text-decoration: none;
}
@@ -153,3 +154,4 @@
a.project_link_create:link, a.project_link_create:visited {
color: white;
}
+
--- a/web/static/js/projectscontents.js Thu Sep 09 16:47:51 2010 +0200
+++ b/web/static/js/projectscontents.js Sat Sep 11 01:18:03 2010 +0200
@@ -28,8 +28,8 @@
$('.ldt_link_create',base_node).nyroModal({
type: 'iframe',
forceType: 'iframe',
- height:662,
- width:1022,
+ height:680,
+ width:500,
bgColor: 'rgb(239, 239, 239)',
padding: 5,
titleFromIframe: false,