# HG changeset patch
# User Pawel Solyga
# Date 1222899052 0
# Node ID 878f9ec9dd07fc8f8247490ce8e0ec63c250c5ba
# Parent 101c586ff5c893cfec28fec737a15996145a9cb7
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Patch by: Pawel Solyga
Review by: to-be-reviewed
diff -r 101c586ff5c8 -r 878f9ec9dd07 app/soc/templates/soc/group/list/all.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/group/list/all.html Wed Oct 01 22:10:52 2008 +0000
@@ -0,0 +1,31 @@
+{% 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 page_title %}
+Site: {% if group_type %}{{ group_type }}{% else %}Group{% endif %}s List
+{% endblock %}
+{% block header_title %}
+{% if group_type %}{{ group_type }}{% else %}Group{% endif %}s List
+{% endblock %}
+{% block body %}
+
+
+{% block instructions %}
+List of {% if group_type %}{{ group_type }}{% else %}Group{% endif %}s in Google Open Source Programs.
+{% endblock %}
+
+{% include list_main %}
+
+{% endblock %}
\ No newline at end of file
diff -r 101c586ff5c8 -r 878f9ec9dd07 app/soc/templates/soc/group/list/group_heading.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/group/list/group_heading.html Wed Oct 01 22:10:52 2008 +0000
@@ -0,0 +1,5 @@
+
+ Name |
+ Linkname |
+ Short name |
+
diff -r 101c586ff5c8 -r 878f9ec9dd07 app/soc/templates/soc/group/list/group_row.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/group/list/group_row.html Wed Oct 01 22:10:52 2008 +0000
@@ -0,0 +1,9 @@
+
+
+ |
+ {{ data_element.link_name }} |
+ {{ data_element.short_name }} |
+
diff -r 101c586ff5c8 -r 878f9ec9dd07 app/soc/templates/soc/group/profile/edit.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/group/profile/edit.html Wed Oct 01 22:10:52 2008 +0000
@@ -0,0 +1,74 @@
+{% 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 scripts %}
+
+{% endblock %}
+
+{% block page_title %}
+{% if existing_group %}
+Site: Modify Existing {% if group_type %}{{ group_type }}{% else %}Group{% endif %}
+{% else %}
+Site: Create New {% if group_type %}{{ group_type }}{% else %}Group{% endif %}
+{% endif %}
+{% endblock %}
+{% block header_title %}
+{% if existing_group %}
+Modify Existing {% if group_type %}{{ group_type }}{% else %}Group{% endif %}
+{% else %}
+Create a New {% if group_type %}{{ group_type }}{% else %}Group{% endif %}
+{% endif %}
+{% endblock %}
+
+{% block body %}
+
+
+{% block instructions %}
+Please use this form to alter {% if group_type %}{{ group_type }}{% else %}Group{% endif %} details.
+{% endblock %}
+
+
+
+{% endblock %}
diff -r 101c586ff5c8 -r 878f9ec9dd07 app/soc/templates/soc/group/profile/public.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/group/profile/public.html Wed Oct 01 22:10:52 2008 +0000
@@ -0,0 +1,34 @@
+{% 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 page_title %}{% if group_type %}{{ group_type }}{% else %}Group{% endif %} Public Profile{% endblock %}
+{% block header_title %}
+{% if group_type %}{{ group_type }}{% else %}Group{% endif %} Public Profile for {{ linkname_group.name }}
+{% endblock %}
+{% block body %}
+
+
+ {% readonly_field_as_table_row linkname_group.fields.name.label linkname_group.name %}
+ {% readonly_field_as_table_row linkname_group.fields.home_page.label linkname_group.home_page %}
+ {% readonly_field_as_table_row linkname_group.fields.description.label linkname_group.description %}
+ {% readonly_field_as_table_row linkname_group.fields.street.label linkname_group.street %}
+ {% readonly_field_as_table_row linkname_group.fields.city.label linkname_group.city %}
+ {% readonly_field_as_table_row linkname_group.fields.state.label linkname_group.state %}
+ {% readonly_field_as_table_row linkname_group.fields.country.label linkname_group.country %}
+ {% readonly_field_as_table_row linkname_group.fields.postalcode.label linkname_group.postalcode %}
+ {% readonly_field_as_table_row linkname_group.fields.phone.label linkname_group.phone %}
+
+
+{% endblock %}
\ No newline at end of file