# HG changeset patch # User Lennard de Rijk # Date 1231366192 0 # Node ID 81506d223cb01b799e6b530f6fdbaa0401d25535 # Parent bc13cd968946bf09f60168ed0d270733ffb31f95 Added support for creating clubs. Patch by : Lennard de Rijk diff -r bc13cd968946 -r 81506d223cb0 app/soc/templates/soc/club/list/heading.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/club/list/heading.html Wed Jan 07 22:09:52 2009 +0000 @@ -0,0 +1,5 @@ + + Name + Link ID + Short name + diff -r bc13cd968946 -r 81506d223cb0 app/soc/templates/soc/club/list/row.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/club/list/row.html Wed Jan 07 22:09:52 2009 +0000 @@ -0,0 +1,9 @@ + +
{{ list.item.name }} +
+ + +
{{ list.item.short_name }}
+ diff -r bc13cd968946 -r 81506d223cb0 app/soc/templates/soc/club/public.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/club/public.html Wed Jan 07 22:09:52 2009 +0000 @@ -0,0 +1,35 @@ +{% 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 }} for {{ entity.name }} +{% endblock %} + +{% block body %} +

+ + {% readonly_field_as_table_row entity.fields.name.label entity.name %} + {% readonly_field_as_table_row entity.fields.home_page.label entity.home_page %} + {% readonly_field_as_table_row entity.fields.description.label entity.description %} + {% readonly_field_as_table_row entity.fields.street.label entity.street %} + {% readonly_field_as_table_row entity.fields.city.label entity.city %} + {% readonly_field_as_table_row entity.fields.state.label entity.state %} + {% readonly_field_as_table_row entity.fields.country.label entity.country %} + {% readonly_field_as_table_row entity.fields.postalcode.label entity.postalcode %} + {% readonly_field_as_table_row entity.fields.phone.label entity.phone %} +
+

+{% endblock %} diff -r bc13cd968946 -r 81506d223cb0 app/soc/views/sitemap/build.py --- a/app/soc/views/sitemap/build.py Wed Jan 07 21:58:43 2009 +0000 +++ b/app/soc/views/sitemap/build.py Wed Jan 07 22:09:52 2009 +0000 @@ -24,6 +24,7 @@ from django.conf.urls import defaults +from soc.views.models import club from soc.views.models import document from soc.views.models import host from soc.views.models import notification @@ -43,6 +44,7 @@ sidebar.addMenu(user_self.view.getSidebarMenus) sidebar.addMenu(presence.view.getSidebarMenus) +sidebar.addMenu(club.view.getSidebarMenus) sidebar.addMenu(site.view.getSidebarMenus) sidebar.addMenu(user.view.getSidebarMenus) sidebar.addMenu(document.view.getSidebarMenus) @@ -53,6 +55,7 @@ sidebar.addMenu(program.view.getExtraMenus) sidebar.addMenu(organization.view.getSidebarMenus) +sitemap.addPages(club.view.getDjangoURLPatterns()) sitemap.addPages(document.view.getDjangoURLPatterns()) sitemap.addPages(host.view.getDjangoURLPatterns()) sitemap.addPages(notification.view.getDjangoURLPatterns())