Fixed some rendering problems in webcit that resulted from the removal of VIEW_WIKIMD...
[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_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)>
60
61 <?!("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)>
62
63 </select>
64 </td></tr>
65
66 <tr class="even"><td><?_("Type of room:")></td>
67 <td>
68 <ul class="adminlist">
69
70 <li><input type="radio" NAME="type" VALUE="public" CHECKED OnChange="if (this.form.type[0].checked == true) { this.form.er_floor.disabled = false;}"> 
71 <?_("Public (automatically appears to everyone)")>
72 </li>
73
74 <li><input type="radio" NAME="type" VALUE="hidden" OnChange="if (this.form.type[1].checked == true) {this.form.er_floor.disabled = false;}"> 
75 <?_("Private - hidden (accessible to anyone who knows its name)")>
76 </li>
77
78 <li><input type="radio" NAME="type" VALUE="passworded" OnChange="if (this.form.type[2].checked == true) {this.form.er_floor.disabled = false;}"> 
79 <?_("Private - require password: ")>
80 <input type="text" NAME="er_password" MAXLENGTH="9">
81 </li>
82
83 <li><input type="radio" NAME="type" VALUE="invonly" OnChange="if (this.form.type[3].checked == true) {this.form.er_floor.disabled = false;}"> 
84 <?_("Private - invitation only")>
85 </li>
86
87 <li><input type="radio" NAME="type" VALUE="personal" OnChange="if (this.form.type[4].checked == true) {this.form.er_floor.disabled = true;}"> 
88 <?_("Personal (mailbox for you only)")>
89 </li>
90
91 </ul>
92 </td></tr></table>
93
94 <div class="buttons">
95 <input type="submit" name="ok_button" value="<?_("Create new room")>">
96 &nbsp;
97 <input type="submit" name="cancel_button" value="<?_("Cancel")>">
98 </div>
99 </form><hr />
100 <?SERV:MESG("roomaccess")>
101
102 <?=("box_end")>
103 </div>
104
105 <?=("trailing")>
106 <??("X", 11)>