summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/meetingtools/apps/room/forms.py4
-rw-r--r--src/templates/apps/room/list.html1
2 files changed, 3 insertions, 2 deletions
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>&raquo;&nbsp;Created by {{r.creator}} {{r.timecreated|datehumanize}}.</li>
<li>&raquo;&nbsp;{%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>&raquo;&nbsp;Room will be reset when empty.</li>{%else%}<li>&raquo;&nbsp;Room state is preserved between sessions.</li>{% endif %}
+ {% if r.allow_host %}<li>&raquo;&nbsp;First participant can elect to become host.</li>{% endif %}
{% if r.lastvisited %}<li>&raquo;&nbsp;Last visited {{r.lastvisited|datehumanize}}</li>{%endif%}
<li>&raquo;&nbsp;Hosted on {{r.acc.name}}</li>
</ul>