# HG changeset patch
# User Daniel Diniz
# Date 1246046292 -7200
# Node ID 44c500fc0eca05ce9f03d27eec17bc4129e0f97d
# Parent 0979e7af115fb51c4df4602f35406f27041216b3
Added templates considering Surveys.
Patch by: Daniel Diniz, James Levy
Reviewed by: Lennard de Rijk
diff -r 0979e7af115f -r 44c500fc0eca app/soc/templates/soc/survey/edit.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/survey/edit.html Fri Jun 26 21:58:12 2009 +0200
@@ -0,0 +1,204 @@
+{% extends "soc/models/edit.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 scripts %}
+{{ block.super }}
+
+
+
+
+
+
+
+
+{% endblock %}
+
+
+{# cannot add an id for the main form with inheritance #}
+{% block body %}
+
{# TODO: check if can be changed to div #}
+
+{% block instructions %}
+Please use this form to edit the {{ entity_type }}.
+{% endblock %}
+
diff -r 0979e7af115f -r 44c500fc0eca app/soc/templates/soc/survey/messages/new_survey.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/survey/messages/new_survey.html Fri Jun 26 21:58:12 2009 +0200
@@ -0,0 +1,21 @@
+{% extends "soc/notification/messages/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 %}
+{% block content %}
+There is a new Survey available for your program.
+Please visit {{ survey_title}}
+to take the survey.
+
+Keep in mind that taking a survey might be mandatory!
+{% endblock %}
diff -r 0979e7af115f -r 44c500fc0eca app/soc/templates/soc/survey/public.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/survey/public.html Fri Jun 26 21:58:12 2009 +0200
@@ -0,0 +1,88 @@
+{% 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 %}
+
+{% block scripts %}
+{{ block.super }}
+
+
+
+
+{% endblock %}
+
+{% block page_title %}
+{{ entity.title }}
+{% endblock %}
+
+{% block header_title %}
+{{ entity.title }}
+{% endblock %}
+
+{% block body %}
+
Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}
+
+{% if survey_form %}
+
+ {% load forms_helpers %}
+
+ {% if not read_only %}
+
+{% endif %}
+
+{% endblock %}
diff -r 0979e7af115f -r 44c500fc0eca app/soc/templates/soc/survey/results.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/survey/results.html Fri Jun 26 21:58:12 2009 +0200
@@ -0,0 +1,21 @@
+{% if grades %}
+
+{% endif %}
diff -r 0979e7af115f -r 44c500fc0eca app/soc/templates/soc/survey/results_page.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/survey/results_page.html Fri Jun 26 21:58:12 2009 +0200
@@ -0,0 +1,109 @@
+{% extends "soc/models/edit.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 scripts %}
+{{ block.super }}
+
+
+
+
+
+
+
+
+{% endblock %}
+
+{% block body %}
+
+{% if not new_survey %}
+ {% if results %}
+