Added student proposal view templates.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 21 Feb 2009 10:57:02 +0000
changeset 1423 54960277c85d
parent 1422 052218c51035
child 1424 f8c762a33a43
Added student proposal view templates. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/templates/soc/student_proposal/list/heading.html
app/soc/templates/soc/student_proposal/list/row.html
app/soc/templates/soc/student_proposal/public.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/student_proposal/list/heading.html	Sat Feb 21 10:57:02 2009 +0000
@@ -0,0 +1,5 @@
+<tr align="left">
+  <th class="first" align="right">Student</th>
+  <th>Title</th>
+  <th>Last Modified on</th>
+</tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/student_proposal/list/row.html	Sat Feb 21 10:57:02 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.scope.link_id }}</a>
+     </div>
+  </td>
+  <td><div class="title">{{ list.item.title }}</a></div></td>
+  <td><div class="date">{{ list.item.last_modified_on }}</a></div></td>
+</tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/student_proposal/public.html	Sat Feb 21 10:57:02 2009 +0000
@@ -0,0 +1,33 @@
+{% 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 }}" from {{ student_name }}
+{% endblock %}
+
+{% block body %}
+<p>
+ <table>
+  {% readonly_field_as_table_row entity.fields.title.label entity.title %}
+  {% readonly_field_as_table_row 'Student' student_name %}
+  {% readonly_field_as_table_row 'Mentor' mentor_name %}
+  {% readonly_field_as_twoline_table_row entity.fields.abstract.label entity.abstract %}
+  {% readonly_field_as_twoline_table_row entity.fields.content.label entity.content %}
+  {% readonly_field_as_table_row "Created on" entity.created_on %}
+  {% readonly_field_as_table_row "Last Modified on" entity.last_modified_on %}
+ </table>
+</p>
+{% endblock %}