99cbde45cf274416a7d9a33807f6cd62ee06ba94
[citadel] / webcit / static / t / room / create.html
1 <?!("COND:MAY_CREATE_ROOM", 10)>
2 <?=("display_main_menu")>
3 <?!("X", 10)>
4 <??("COND:MAY_CREATE_ROOM", 11)>
5 <?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
6 <div id="banner">
7 <?=("roombanner")>
8 </div>
9 <div id="content" class="service">
10 <br>
11 <?=("box_begin_1")><?_("Create a new room")><?=("box_begin_2")>
12
13 <form name="create_room_form" method="POST" action="entroom">
14 <input type="hidden" name="nonce" value="<?NONCE>">
15
16 <table class="altern"> 
17
18 <tr class="odd"><td><?_("Name of room: ")></td><td><input type="text" NAME="er_name" MAXLENGTH="127"></td></tr>
19
20 <tr class="even"><td><?_("Resides on floor: ")></td><td>
21
22
23 <select name="er_floor" size="1"><?ITERATE("LFLR", ="room_select_targetfloor")></select>
24 </td></tr>
25
26 <!--
27    * Our clever little snippet of JavaScript automatically selects
28    * a public room if the view is set to Bulletin Board or wiki, and
29    * it selects a mailbox room otherwise.  The user can override this,
30    * of course.  We also disable the floor selector for mailboxes.
31 -->
32 <tr class="odd"><td><?_("Default view for room: ")></td>
33 <td>
34 <select name="er_view" size="1" OnChange="
35 if ( (this.form.er_view.value == 0)
36 || (this.form.er_view.value == 6) ) {
37         this.form.type[0].checked=true;
38         this.form.er_floor.disabled = false;
39 }
40 else {
41         this.form.type[4].checked=true;
42         this.form.er_floor.disabled = true;
43 }">
44
45 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_BBS")><option value="<?DEF:VAL(#"VIEW_BBS")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_BBS", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_BBS", "X")></option><??("X", 1)>
46
47 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_MAILBOX")><option value="<?DEF:VAL(#"VIEW_MAILBOX")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_MAILBOX", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_MAILBOX", "X")></option><??("X", 1)>
48
49 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_ADDRESSBOOK")><option value="<?DEF:VAL(#"VIEW_ADDRESSBOOK")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_ADDRESSBOOK", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_ADDRESSBOOK", "X")></option><??("X", 1)>
50
51 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_CALENDAR")><option value="<?DEF:VAL(#"VIEW_CALENDAR")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_CALENDAR", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_CALENDAR", "X")></option><??("X", 1)>
52
53 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_TASKS")><option value="<?DEF:VAL(#"VIEW_TASKS")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_TASKS", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_TASKS", "X")></option><??("X", 1)>
54
55 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_NOTES")><option value="<?DEF:VAL(#"VIEW_NOTES")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_NOTES", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_NOTES", "X")></option><??("X", 1)>
56
57 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_WIKI")><option value="<?DEF:VAL(#"VIEW_WIKI")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKI", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKI", "X")></option><??("X", 1)>
58
59 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_WIKIMD")><option value="<?DEF:VAL(#"VIEW_WIKIMD")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKIMD", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKIMD", "X")></option><??("X", 1)>
60
61 <!-- <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_CALBRIEF")><option value="<?DEF:VAL(#"VIEW_CALBRIEF")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_CALBRIEF", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_CALBRIEF", "X")></option><??("X", 1)> -->
62
63 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_JOURNAL")><option value="<?DEF:VAL(#"VIEW_JOURNAL")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_JOURNAL", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_JOURNAL", "X")></option><??("X", 1)>
64
65 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_BLOG")><option value="<?DEF:VAL(#"VIEW_BLOG")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_BLOG", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_BLOG", "X")></option><??("X", 1)>
66
67 </select>
68 </td></tr>
69
70 <tr class="even"><td><?_("Type of room:")></td>
71 <td>
72 <ul class="adminlist">
73
74 <li><input type="radio" NAME="type" VALUE="public" CHECKED OnChange="if (this.form.type[0].checked == true) { this.form.er_floor.disabled = false;}"> 
75 <?_("Public (automatically appears to everyone)")>
76 </li>
77
78 <li><input type="radio" NAME="type" VALUE="hidden" OnChange="if (this.form.type[1].checked == true) {this.form.er_floor.disabled = false;}"> 
79 <?_("Private - hidden (accessible to anyone who knows its name)")>
80 </li>
81
82 <li><input type="radio" NAME="type" VALUE="passworded" OnChange="if (this.form.type[2].checked == true) {this.form.er_floor.disabled = false;}"> 
83 <?_("Private - require password: ")>
84 <input type="text" NAME="er_password" MAXLENGTH="9">
85 </li>
86
87 <li><input type="radio" NAME="type" VALUE="invonly" OnChange="if (this.form.type[3].checked == true) {this.form.er_floor.disabled = false;}"> 
88 <?_("Private - invitation only")>
89 </li>
90
91 <li><input type="radio" NAME="type" VALUE="personal" OnChange="if (this.form.type[4].checked == true) {this.form.er_floor.disabled = true;}"> 
92 <?_("Personal (mailbox for you only)")>
93 </li>
94
95 </ul>
96 </td></tr></table>
97
98 <div class="buttons">
99 <input type="submit" name="ok_button" value="<?_("Create new room")>">
100 &nbsp;
101 <input type="submit" name="cancel_button" value="<?_("Cancel")>">
102 </div>
103 </form><hr />
104 <?SERV:MESG("roomaccess")>
105
106 <?=("box_end")>
107 </div>
108
109 <?=("trailing")>
110 <??("X", 11)>