# HG changeset patch # User Madhusudan.C.S # Date 1251458056 -7200 # Node ID 58e2a02e35b4b797e69ab1d488f924254abec45b # Parent 211783aa20d5d0f5274e4dcefa913ebee148250c Bulk add templates regarding Task Views. Reviewed by: to-be-reviewed diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/approve/approve.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/approve/approve.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,26 @@ +{% extends "soc/models/list.html" %} + +{% block scripts %} +{{ block.super }} + + +{% endblock %} + +{% block body %} +
+{% if up_list %} + +{% endif %} +{% if error_message %} +
{{ error_message|safe }}
+{% endif %} +{{ block.super }} +
+{% endblock %} + diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/approve/heading.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/approve/heading.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,7 @@ +{% extends "modules/ghop/task/list/heading.html" %} + +{% block first %} +Select +Title +{% endblock %} + diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/approve/row.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/approve/row.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,11 @@ +{% extends "modules/ghop/task/list/row.html" %} + +{% block first %} + + + +{% endblock %} + diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/list/heading.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/list/heading.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,11 @@ + + {% block first %} + Title + {% endblock %} + Difficulty + Type + Time To Complete + Status + Mentors + + diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/list/row.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/list/row.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,31 @@ + + {% block first %} + + {% endblock %} +
{{ list.item.title }} +
+ +
{{ list.item.difficulty.0.tag }}
+
+ {% for task_type in list.item.task_type %} + {{ task_type.tag }}{% if not forloop.last %}, {% endif %} + {% endfor %} +
+
{{ list.item.time_to_complete }} hrs
+
{{ list.item.status }}
+
+ {% if list.info.mentors %} + {% for mentor in list.info.mentors|slice:":2" %} + {{ mentor.name }}{% if not forloop.last %}, {% endif %} + {% endfor %} + {% if list.info.extramentors %} + + {{ list.info.extramentors }} + {% endif %} + {% else %} + Not Assigned + {% endif %} +
+ + diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/public.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/public.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,202 @@ +{% 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 %} +{% load ghop_comments_helpers %} + +{% block scripts %} +{{ block.super }} + + +{% endblock %} + +{% block header_title %} +{% if account %} + +{% endif %} +Title: {{ entity.title }} + +{% if edit_link %} +(Edit this task) +{% else %}{% if suggest_link %} +(Edit this task) +{% endif %}{% endif %} + +{% endblock %} + +{% block body %} + +{% block task-show %} +{% if header_msg %} +

+

+

+{% endif %} + +
+ {% readonly_date_field_as_table_row "Last Modified on" entity.modified_on %} + by {{ entity.modified_by.name }} +
+ +

+ + {% readonly_safe_field_as_table_row entity.fields.description.label entity.description %} + {% readonly_field_as_table_row "Difficulty" difficulty_str %} + {% readonly_field_as_table_row "Task Type Tags" task_type_str %} + {% readonly_field_as_table_row entity.fields.time_to_complete.label time_to_complete %} + {% readonly_field_as_table_row "Mentor(s)" mentors_str %} + {% readonly_date_field_as_table_row entity.fields.deadline.label entity.deadline %} +
+

+
+{% endblock task-show %} + +{% if comment_disabled %} +

Comments are disabled

+{% else %} +{% block comment-form %} +

+{% if signin_comment_msg %} +

{{ signin_comment_msg|safe }}

+{% else %} +
+ + {% block form_table %} + {% as_table comment_form %} + {% endblock %} +
+ + + + + +
 
+ +
+
+{% endif %} +

+

+
+{% endblock comment-form %} +{% endif %} + +{% block list-work-submissions %} +{% if work_submissions %} +

Work Submission:

+{% for work_submission in work_submissions %} + {% as_ghop_task_ws work_submission %} +{% endfor %} +

+
+{% endif %} +{% endblock list-work-submissions %} +{% block list-comments %} +{% if comments %} +

Comments and Actions:

+{% for comment in comments %} + {% as_ghop_task_comment comment %} +{% endfor %} +{% endif %} +{% endblock list-comments %} + +{% endblock %} + diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/search/heading.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/search/heading.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,11 @@ + + {% block first %} + Title + {% endblock %} + Organization + Difficulty + Time To Complete + Status + Type Tags + + diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/search/row.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/search/row.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,17 @@ + + +
{{ list.item.title }} +
+ +
{{ list.item.scope.name }}
+
{{ list.item.difficulty.0.tag }}
+ +
{{ list.item.time_to_complete }} hrs
+ +
{{ list.item.status }}
+
{{ list.item.task_type|join:", " }} +
+ + diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/search/search.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/search/search.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,44 @@ +{% extends "soc/models/list.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 ghop_forms_helpers %} + +{% block stylesheet %} +{{ block.super }} + +{% endblock %} + +{% block scripts %} +{{ block.super }} + +{% endblock %} + +{% block body %} +
+ + + + + + + +
{% as_filter_multiselect "Organization" org_entities %}{% as_filter_multiselect "Status" public_status %}{% as_filter_multiselect "Tags" tags %}{% as_filter_multiselect "Difficulty" difficulties %}
+
+ +
+{{ block.super }} +{% endblock %} +