From 9cee0df6fc9fbf966426c1497f019aaa3954d7f9 Mon Sep 17 00:00:00 2001 From: Lennard de Rijk Date: Thu, 19 Mar 2009 08:31:15 +0000 Subject: [PATCH] Added basic Student Project templates. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed --- .../soc/student_project/list/heading.html | 5 ++++ .../templates/soc/student_project/list/row.html | 9 ++++++ app/soc/templates/soc/student_project/public.html | 32 ++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 app/soc/templates/soc/student_project/list/heading.html create mode 100644 app/soc/templates/soc/student_project/list/row.html create mode 100644 app/soc/templates/soc/student_project/public.html diff --git a/app/soc/templates/soc/student_project/list/heading.html b/app/soc/templates/soc/student_project/list/heading.html new file mode 100644 index 00000000..9ae01216 --- /dev/null +++ b/app/soc/templates/soc/student_project/list/heading.html @@ -0,0 +1,5 @@ + + Student + Title + Status + diff --git a/app/soc/templates/soc/student_project/list/row.html b/app/soc/templates/soc/student_project/list/row.html new file mode 100644 index 00000000..3bfc1ba6 --- /dev/null +++ b/app/soc/templates/soc/student_project/list/row.html @@ -0,0 +1,9 @@ + +
{{ list.item.student.link_id }} +
+ +
{{ list.item.title }}
+
{{ list.item.status }}
+ diff --git a/app/soc/templates/soc/student_project/public.html b/app/soc/templates/soc/student_project/public.html new file mode 100644 index 00000000..ad7797ec --- /dev/null +++ b/app/soc/templates/soc/student_project/public.html @@ -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 %} +

+ + {% 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 %} +
+

+{% block manage %} {% endblock %} +{% endblock %} -- 2.11.4.GIT