From d2c26c37d27db94d59b6863780173ba68868af59 Mon Sep 17 00:00:00 2001 From: Leif Johansson <leifj@sunet.se> Date: Tue, 11 Oct 2011 22:04:38 +0200 Subject: per-room first-participant-host-policy --- src/meetingtools/apps/room/forms.py | 4 ++-- src/templates/apps/room/list.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/meetingtools/apps/room/forms.py b/src/meetingtools/apps/room/forms.py index 1697c81..51b06bc 100644 --- a/src/meetingtools/apps/room/forms.py +++ b/src/meetingtools/apps/room/forms.py @@ -38,7 +38,7 @@ class CreateRoomForm(BetterModelForm): class Meta: model = Room - fields = ['name','description','urlpath','access','self_cleaning'] + fields = ['name','description','urlpath','access','self_cleaning','allow_host'] fieldsets = [('name',{'fields': ['name'], 'classes': ['step'], 'legend': 'Step 1: Room name', @@ -49,7 +49,7 @@ class CreateRoomForm(BetterModelForm): 'legend': 'Step 2: Room description', 'description': 'Please provide a short summary of this room.' }), - ('properties',{'fields': ['self_cleaning','urlpath','access'], + ('properties',{'fields': ['self_cleaning','allow_host','urlpath','access'], 'classes': ['step'], 'legend': 'Step 3: Room properties', 'description': ''' diff --git a/src/templates/apps/room/list.html b/src/templates/apps/room/list.html index 4b7cc01..d24c17c 100644 --- a/src/templates/apps/room/list.html +++ b/src/templates/apps/room/list.html @@ -37,6 +37,7 @@ <li>» Created by {{r.creator}} {{r.timecreated|datehumanize}}.</li> <li>» {%if r.nusers%}There are {{r.nusers}} users present, {{r.nhosts}} of whom are hosts.{%else%}The room is currently unoccupied.{%endif%}</li> {% if r.self_cleaning %}<li>» Room will be reset when empty.</li>{%else%}<li>» Room state is preserved between sessions.</li>{% endif %} + {% if r.allow_host %}<li>» First participant can elect to become host.</li>{% endif %} {% if r.lastvisited %}<li>» Last visited {{r.lastvisited|datehumanize}}</li>{%endif%} <li>» Hosted on {{r.acc.name}}</li> </ul> -- cgit v1.1