Roomediting: add permission check to to some dialogs
[citadel.git] / webcit / static / t / room / edit / tab_config.html
1 <?!("COND:THISROOM:EDIT", 1)><div class="tabcontent">
2         <form method="post" action="editroom">
3                 <input type="hidden" name="nonce" value="<?NONCE>" />
4                 <ul>   
5                         <li>
6                                 <?_("name of room: ")>
7                                 <input type="text" name="er_name" value="<?ROOMNAME("X")>" maxlength="127" />
8                         </li>
9                         <li>
10                                 <?_("Resides on floor: ")>
11                                 <select name="er_floor" size="1" <?%("COND:THISROOM:FLAG:QR", 1, #"QR_MAILBOX", 1, 'disabled="disabled" >', ">")>
12                                   <??("COND:THISROOM:FLAG:QR", 2, #"QR_MAILBOX")><?ITERATE("LFLR", ="room_edit_er_config_tab_room_option_list")><??("X", 2)>
13                                 </select>
14                         </li>
15                         <li>
16                                 <?_("Type of room:")>
17                                 <ul>
18                                         <li>
19                                                 <input type="radio" name="type" value="public" 
20                                                        <?%("COND:THISROOM:FLAG:QR", 3, #"QR_PRIVATE | QR_MAILBOX", 1, "", 'checked="checked" ')>
21                                                        onChange="if (this.form.type[0].checked == true) { this.form.er_floor.disabled = false; }" />
22                                                 <?_("Public (automatically appears to everyone)")>
23                                         </li>
24                                         <li>
25                                                 <input type="radio" name="type" value="hidden" 
26                                                        <?%("COND:THISROOM:FLAG:QR", 5, #"QR_GUESSNAME & QR_PRIVATE", 1, 'checked="checked" ', "")> 
27                                                        onChange="if (this.form.type[1].checked == true) { this.form.er_floor.disabled = false; }" />
28                                                 <?_("Private - hidden (accessible to anyone who knows its name)")>
29                                         </li>
30                                         <li>
31                                                 <input type="radio" name="type" value="passworded" 
32                                                        <?%("COND:THISROOM:FLAG:QR", 7, #"QR_PASSWORDED & QR_PRIVATE", 1, 'checked="checked" ', "")>
33                                                        onChange="this.form.er_floor.disabled = false; { (this.form.type[2].checked == true) }"
34                                                         />
35                                                 <?_("Private - require password: ")>
36                                                 <input type="text" name="er_password" value="<?THISROOM:PASS("U")>" maxlength="9" />
37                                         </li>
38                                         <li>
39                                                 <input type="radio" name="type" value="invonly" 
40                                                        <??("COND:THISROOM:FLAG:QR", 9, #"QR_PASSWORDED | QR_GUESSNAME")>
41                                                        <?%("COND:THISROOM:FLAG:QR", 10, #"QR_PRIVATE", 1, 'checked="checked" ', "")>
42                                                        <??("X", 9)>
43                                                        onChange="if (this.form.type[3].checked == true) { this.form.er_floor.disabled = false; }" />
44                                                 <?_("Private - invitation only")>            
45                                         </li>
46                                         <li>
47                                                 <input type="radio" name="type" value="personal" 
48                                                        <?%("COND:THISROOM:FLAG:QR", 11, #"QR_MAILBOX", 1, 'checked="checked" ', "")>
49                                                        onChange="if (this.form.type[4].checked == true) { this.form.er_floor.disabled = true; }"
50                                                         />
51                                                 <?_("Personal (mailbox for you only)")>
52                                         </li>
53                                         <li>
54                                                 <input type="checkbox" name="bump" value="yes" />
55                                                 <?_("If private, cause current users to forget room")>
56                                         </li>
57                                 </ul>
58                                 <li>
59                                         <input type="checkbox" name="prefonly" value="yes" 
60                                         <?%("COND:THISROOM:FLAG:QR", 12, #"QR_PREFONLY", 1, 'checked="checked" ', "")> />     
61                                         <?_("Preferred users only")>
62                                 </li>
63                                 <li>
64                                         <input type="checkbox" name="readonly" value="yes" 
65                                         <?%("COND:THISROOM:FLAG:QR", 13, #"QR_READONLY", 1, 'checked="checked" ', "")>  />
66                                         <?_("Read-only room")>
67                                 </li>
68                                 <li>
69                                         <input type="checkbox" name="collabdel" value="yes" 
70                                         <?%("COND:THISROOM:FLAG:QR2", 14, #"QR2_COLLABDEL", 1, 'checked="checked" ', "")> />
71                                         <?_("All users allowed to post may also delete messages")>
72                                 </li>
73                                 <li>
74                                         <input type="checkbox" name="directory" value="yes" 
75                                         <?%("COND:THISROOM:FLAG:QR", 15, #"QR_DIRECTORY", 1, 'checked="checked" ', "")>  />
76                                         <?_("File directory room")>
77                                 
78                                 <ul>
79                                         <li>
80                                                 <?_("Directory name: ")>
81                                                 <input type="text" name="er_dirname" value="<?THISROOM:DIRECTORY("X")>" maxlength="14" />
82                                         </li>
83                                         <li>
84                                                 <input type="checkbox" name="ulallowed" value="yes" 
85                                                 <?%("COND:THISROOM:FLAG:QR", 16, #"QR_UPLOAD", 1, 'checked="checked" ', "")>  />
86                                                 <?_("Uploading allowed")>
87                                         </li>
88                                         <li>
89                                                 <input type="checkbox" name="dlallowed" value="yes" 
90                                                 <?%("COND:THISROOM:FLAG:QR", 17, #"QR_DOWNLOAD", 1, 'checked="checked" ', "")>  />
91                                                 <?_("Downloading allowed")>
92                                         </li>
93                                         <li>
94                                                 <input type="checkbox" name="visdir" value="yes" 
95                                                 <?%("COND:THISROOM:FLAG:QR", 18, #"QR_VISDIR", 1, 'checked="checked" ', "")>  />
96                                                 <?_("Visible directory")>
97                                         </li>
98                                   </ul></li>
99                        
100                         <li>
101                                 <input type="checkbox" name="network" value="yes" 
102                                 <?%("COND:THISROOM:FLAG:QR", 19, #"QR_NETWORK", 1, 'checked="checked" ', "")>  />
103                                 <?_("Network shared room")>
104                         </li>                         
105                         <li>
106                                 <input type="checkbox" name="permanent" value="yes" 
107                                 <?%("COND:THISROOM:FLAG:QR", 20, #"QR_PERMANENT", 1, 'checked="checked" ', "")>  />
108                                 <?_("Permanent (does not auto-purge)")>
109                         </li>
110                         <li>
111                                 <input type="checkbox" name="subjectreq" value="yes" 
112                                 <?%("COND:THISROOM:FLAG:QR2", 21, #"QR2_SUBJECTREQ", 1, 'checked="checked" ', "")>  />
113                                 <?_("Subject Required (Force users to specify a message subject)")>
114                         </li>
115                         <li>
116                                 <?_("Anonymous messages")>
117                         <ul>
118                                 <li>
119                                         <input type="radio" name="anon" value="no" 
120                                                <?%("COND:THISROOM:FLAG:QR", 23, #"QR_ANONOPT & QR_ANONONLY", 1, "", 'checked="checked" ')>
121                                                >
122                                         <?_("No anonymous messages")>
123                                 </li>
124                                 <li>
125                                         <input type="radio" name="anon" value="anononly" 
126                                         <?%("COND:THISROOM:FLAG:QR", 24, #"QR_ANONONLY", 1, 'checked="checked" ', "")> />
127                                         <?_("All messages are anonymous")>
128                                 </li>
129                                 <li>
130                                         <input type="radio" name="anon" value="anon2" 
131                                         <?%("COND:THISROOM:FLAG:QR", 25, #"QR_ANONOPT", 1, 'checked="checked" ', "")> />
132                                         <?_("Prompt user when entering messages")>
133                                 </li>
134                         </ul></li>
135                         <li>
136                                 <?_("Room aide: ")>
137                                 <input type="text" name="er_roomaide" value="<?THISROOM:AIDE("U")>" maxlength="25" /'>
138                         </li>
139         </ul>
140
141         <center>
142                 <input type="hidden" name="last_tabsel" value="<?TAB:N>" />
143                 <input type="submit" name="ok_button" value="<?_("Save changes")>" />
144                 &nbsp;
145                 <input type="submit" name="cancel_button" value="<?_("Cancel")>" />
146         </center>
147         </form>
148 </div>
149 <?!("X", 1)><??("COND:THISROOM:EDIT", 20)><div class="tabcontent"><?_("Higher access is required to access this function.")></div><??("X", 20)>