-
Notifications
You must be signed in to change notification settings - Fork 0
/
buttons.ptl
26 lines (24 loc) · 911 Bytes
/
buttons.ptl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# The quick-n-dirty LPC BBB frontend system
# Copyright 2020 Jonathan Corbet <corbet@lwn.net>
# Copyright 2020 Guy Lunardi <guy@linux.com>
# Redistributable under the terms of the GNU General Public License,
# version 2 or greater
#
#
# Basic buttons, put here so that they are accessible in other places.
#
# Note we go to join_room() regardless of the button...
#
def room_join_button [html] (room, button_text = 'Join room'):
'''<form action="join_room" method="post">
<input type="hidden" name="room" value="%s">
<input type="submit" name="join" class="room"
title="Join room" value="%s">
</form>''' % (room, button_text)
def room_start_button [html] (room):
'''<form action="join_room" method="post">
<input type="hidden" name="room" value="%s">
<input type="submit" name="join" class="room"
value="Start room">
</form>''' % (room)