recording of attendees gender
[confetti] / templates / courses.html.sh
1
2 edit="$_GET[\"edit\"]"
3
4 check_order(){
5   [ "$_GET[\"order\"]" = "$1" ] && echo 'checked="checked"'
6 }
7
8 cat <<EOF
9 <div class="sort">
10   <form class="search" action="/" method="GET">
11     <input type="hidden" name="page" value="courses"/>
12     <input type="hidden" name="edit" value="$edit"/>
13     <span class="label">$(l10n sort_order):</span>
14     <input type="radio" name="order" value="DOW" $(check_order DOW)>$(l10n order_DOW)</input>
15     <input type="radio" name="order" value="TOD" $(check_order TOD)>$(l10n order_TOD)</input>
16     <br>
17     <button type="submit" name="" value="">$(l10n order_apply)</button>
18   </form>
19 </div>
20
21 <div class="newcourse">
22   <form action="?action=new_course" method="POST">
23     <button type="submit">$(l10n newcourse)</button>
24   </form>
25 </div>
26
27 <div class="courselist">
28 $(
29 [ -f "ical/$edit" -o -f "temp/$edit" ] && edit_course "$edit"
30 if [ "$?" = 0 ]; then
31   listcourses |grep -v "$edit"
32 else
33   listcourses
34 fi |while read card; do
35   view_course "$card"
36 done
37 )
38 </div>
39 EOF
40
41 # vi:set filetype=html: