Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Wed, 01 Oct 2008 22:10:52 +0000
changeset 257 878f9ec9dd07
parent 256 101c586ff5c8
child 258 12f4f7d16fac
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
app/soc/templates/soc/group/list/all.html
app/soc/templates/soc/group/list/group_heading.html
app/soc/templates/soc/group/list/group_row.html
app/soc/templates/soc/group/profile/edit.html
app/soc/templates/soc/group/profile/public.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 %}
+<p>
+<p>
+{% block instructions %}
+List of {% if group_type %}{{ group_type }}{% else %}Group{% endif %}s in Google Open Source Programs.
+{% endblock %}
+</p>
+{% include list_main %}
+</p>
+{% endblock %}
\ No newline at end of file
--- /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 @@
+<tr align="left">
+  <th class="first" align="right">Name</th>
+  <th>Linkname</th>
+  <th>Short name</th>
+</tr>
--- /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 @@
+<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" 
+onclick="document.location.href='/site/{{ group_type|lower }}/profile/{{ data_element.link_name }}'" name="name">
+  <td align="right"><div class="name"><a class="noul"
+         href="/site/{{ group_type|lower }}/profile/{{ data_element.link_name }}">{{ data_element.name }}</a>
+     </div>
+  </td>
+  <td><div class="linkname">{{ data_element.link_name }}</a></div></td>
+  <td><div class="shortname">{{ data_element.short_name }}</div></td>
+</tr>
--- /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 %}
+	<script type="text/javascript" src="/tiny_mce/tiny_mce_src.js"></script>
+{% 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 %}
+<p>
+<p>
+{% block instructions %}
+Please use this form to alter {% if group_type %}{{ group_type }}{% else %}Group{% endif %} details.
+{% endblock %}
+</p>
+<form method="POST">
+ <table>
+    {% field_as_table_row form.name %}
+    {% field_as_table_row form.link_name %}
+    {% field_as_table_row form.short_name %}
+    {% field_as_table_row form.home_page %}
+    {% field_as_table_row form.email %}
+    {% field_as_table_row form.description %}
+    {% field_as_table_row form.street %}
+    {% field_as_table_row form.city %}
+    {% field_as_table_row form.state %}
+    {% field_as_table_row form.country %}
+    {% field_as_table_row form.postalcode %}
+    {% field_as_table_row form.phone %}
+  <tr>
+   <td colspan="4">&nbsp;</td>
+  </tr>
+  <tr>
+   <td> 
+    <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
+   </td>
+   <td>
+    <input type="button" onclick="location.href='/'" value="Cancel"/>
+   </td>
+   <td>&nbsp;</td>
+   <td>
+    {% if submit_message %}<b><i>{{ submit_message }}</i></b>{% endif %}
+   </td>
+  </tr>
+ </table>
+</form>
+</p>
+{% endblock %}
--- /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 %}
+<p>
+ <table>
+  {% 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 %}
+ </table>
+</p>
+{% endblock %}
\ No newline at end of file