Added basic Student Project templates.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 19 Mar 2009 08:31:15 +0000
changeset 1934 fb29f54c588a
parent 1933 49aef36e0022
child 1935 99ec4bbd70f5
Added basic Student Project templates. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/templates/soc/student_project/list/heading.html
app/soc/templates/soc/student_project/list/row.html
app/soc/templates/soc/student_project/public.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/student_project/list/heading.html	Thu Mar 19 08:31:15 2009 +0000
@@ -0,0 +1,5 @@
+<tr align="left">
+  <th class="first" align="right">Student</th>
+  <th>Title</th>
+  <th>Status</th>
+</tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/student_project/list/row.html	Thu Mar 19 08:31:15 2009 +0000
@@ -0,0 +1,9 @@
+<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" 
+onclick="document.location.href='{{ list.redirect }}'" name="name">
+  <td align="right"><div class="name"><a class="noul"
+         href="{{ list.redirect }}">{{ list.item.student.link_id }}</a>
+     </div>
+  </td>
+  <td><div class="title">{{ list.item.title }}</a></div></td>
+  <td><div class="status">{{ list.item.status }}</a></div></td>
+</tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/student_project/public.html	Thu Mar 19 08:31:15 2009 +0000
@@ -0,0 +1,32 @@
+{% extends "soc/base.html" %}
+{% comment %}
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+{% load forms_helpers %}
+
+{% block header_title %}
+{{ page_name }} {{ entity.title }} for {{ entity.scope.name }}
+{% endblock %}
+
+{% block body %}
+<p>
+ <table>
+  {% readonly_field_as_table_row "Student Name" entity.student.name %}
+  {% readonly_field_as_table_row "Mentor Name" entity.mentor.name %}
+  {% readonly_field_as_table_row entity.fields.title.label entity.title %}
+  {% readonly_field_as_twoline_table_row entity.fields.abstract.label entity.abstract %}
+  {% readonly_url_field_as_table_row entity.fields.additional_info.label entity.additional_info %}
+ </table>
+</p>
+{% block manage %} {% endblock %}
+{% endblock %}