blob: fcd3bb8e6d355559b8792e4d8ef297f7e214f946 (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
<?py include('templates/base_top.html') ?>
<?py include('templates/manage/menu.html') ?>
<?py from tenjin.helpers.html import * ?>
<center>
<div class="replymode">Opciones de Board</div>
<?py if mode == 0: ?>
<table class="managertable">
<tr><th colspan="2">Sección</th><th>Accion</th></tr>
<?py for board in boards: ?>
<tr><td>/#{board['dir']}/</td><td>#{board['name']}</td><td>[<a href="#{cgi_url}manage/board/#{board['dir']}">Configurar</a>]</td></tr>
<?py #endfor ?>
</table>
<?py elif mode == 1: ?>
<form action="#{cgi_url}manage/board/${boardopts['dir']}" method="post">
<table>
<tr>
<td class="postblock">ID</td>
<td><input type="text" name="name" value="${boardopts['id']}" maxlength="16" style="width:100%;" disabled="disabled" /></td>
</tr>
<tr>
<td class="postblock">Directorio</td>
<td><input type="text" name="name" value="${boardopts['dir']}" maxlength="32" style="width:100%;" disabled="disabled" /></td>
</tr>
<tr>
<td class="postblock">Nombre</td>
<td><input type="text" name="name" value="${boardopts['name']}" maxlength="64" style="width:100%;" /></td>
</tr>
<tr>
<td class="postblock">Nombre largo</td>
<td><input type="text" name="longname" size="50" value="${boardopts['longname']}" maxlength="128" style="width:100%;" /></td>
</tr>
<tr>
<td class="postblock">Sub-nombre</td>
<td><input type="text" name="subname" value="${boardopts['subname']}" maxlength="3" style="width:100%;" /></td>
</tr>
<tr>
<td class="postblock">Tipo</td>
<td>
<select style="width:100%;" name="type">
<option value="0">Imageboard</option>
<option value="1"#{selected(boardopts['board_type'] == 1)}>Textboard</option>
</select>
</td>
</tr>
<tr>
<td class="postblock">Descripción / Reglas</td>
<td>
<textarea id="brd_desc" name="postarea_desc" rows="10" cols="50" style="width:100%;">${boardopts['postarea_desc']}</textarea>
<div id="prev_desc" style="border:1px dotted gray;display:none;padding:4px;width:100%;" contenteditable="true"></div>
</td>
</tr>
<tr>
<td class="postblock">Caja extra</td>
<td><textarea name="postarea_extra" rows="5" cols="50" style="width:100%;">${boardopts['postarea_extra']}</textarea></td>
</tr>
<tr>
<td class="postblock">Forzar CSS <span style="font-weight:normal;">("" = default)</span></td>
<td><input type="text" name="force_css" size="50" value="#{boardopts['force_css']}" maxlength="255" style="width:100%;" /></td>
</tr>
<tr>
<td class="postblock">Nombre por defecto</td>
<td><input type="text" name="anonymous" size="50" maxlength="128" value="${boardopts['anonymous']}" style="width:100%;" /></td>
</tr>
<tr>
<td class="postblock">Título por defecto</td>
<td><input type="text" name="subject" size="50" maxlength="64" value="${boardopts['subject']}" style="width:100%;" /></td>
</tr>
<tr>
<td class="postblock">Mensaje por defecto</td>
<td><input type="text" name="message" size="50" maxlength="128" value="${boardopts['message']}" style="width:100%;" /></td>
</tr>
<tr>
<td class="postblock">ID</td>
<td>
<select name="useid" style="width:100%;">
<option value="0">Desactivado</option>
<option value="1"#{selected(boardopts['useid'] == 1)}>Activado</option>
<option value="2"#{selected(boardopts['useid'] == 2)}>Activado siempre</option>
<option value="3"#{selected(boardopts['useid'] == 3)}>Activado siempre, detallado</option>
</select>
</td>
</tr>
<tr>
<td class="postblock">Slip</td>
<td>
<select name="slip" style="width:100%;">
<option value="0">Desactivado</option>
<option value="1"#{selected(boardopts['slip'] == 1)}>Activado</option>
<option value="2"#{selected(boardopts['slip'] == 2)}>Sólo dominio</option>
<option value="3"#{selected(boardopts['slip'] == 3)}>Todo</option>
</select>
</td>
</tr>
<tr>
<td class="postblock">Código de país</td>
<td>
<select name="countrycode" style="width:100%;">
<option value="0">Desactivado</option>
<option value="1"#{selected(boardopts['countrycode'] == 1)}>Activado</option>
</select>
</td>
</tr>
<tr>
<td class="postblock">Desactivar nombre</td>
<td><input type="checkbox" name="disable_name" id="noname" value="1"#{checked(boardopts['disable_name'])} /><label for="noname"></label></td>
</tr>
<tr>
<td class="postblock">Desactivar asunto</td>
<td><input type="checkbox" name="disable_subject" id="nosub" value="1"#{checked(boardopts['disable_subject'])} /><label for="nosub"></label></td>
</tr>
<tr>
<td class="postblock">Papelera de reciclaje</td>
<td><input type="checkbox" name="recyclebin" id="bin" value="1"#{checked(boardopts['recyclebin'])} /><label for="bin"></label></td>
</tr>
<tr>
<td class="postblock">Cerrado</td>
<td><input type="checkbox" name="locked" id="locked" value="1"#{checked(boardopts['locked'])} /><label for="locked"></label></td>
</tr>
<tr>
<td class="postblock">Secreto</td>
<td><input type="checkbox" name="secret" id="secret" value="1"#{checked(boardopts['secret'])} /><label for="secret"></label></td>
</tr>
<tr>
<td class="postblock">Permitir spoilers</td>
<td><input type="checkbox" name="allow_spoilers" id="spoil" value="1"#{checked(boardopts['allow_spoilers'])} /><label for="spoil"></label></td>
</tr>
<tr>
<td class="postblock">Permitir oekaki</td>
<td><input type="checkbox" name="allow_oekaki" id="oek" value="1"#{checked(boardopts['allow_oekaki'])} /><label for="oek"></label></td>
</tr>
<tr>
<td class="postblock">Permitir crear hilos sin imagen</td>
<td><input type="checkbox" name="allow_noimage" id="noimgallow" value="1"#{checked(boardopts['allow_noimage'])} /><label for="noimgallow"></label></td>
</tr>
<tr>
<td class="postblock">Permitir subida</td>
<td><input type="checkbox" name="allow_images" id="img" value="1"#{checked(boardopts['allow_images'])} /><label for="img">Al crear un hilo</label><br /><input type="checkbox" name="allow_image_replies" id="imgres" value="1"#{checked(boardopts['allow_image_replies'])} /><label for="imgres">Al responder</label></td>
</tr>
<tr>
<td class="postblock">Tipos de archivo</td>
<td>
<?py for filetype in filetypes: ?>
<input type="checkbox" name="filetype#{filetype['ext']}" id="#{filetype['ext']}" value="1"#{checked(filetype['ext'] in supported_filetypes)} /><label for="#{filetype['ext']}">${filetype['ext'].upper()}</label><br />
<?py #endfor ?>
</td>
</tr>
<tr>
<td class="postblock">Tamaño máximo <span style="font-weight:normal;">(KB)</span></td>
<td><input type="text" name="maxsize" value="#{boardopts['maxsize']}" maxlength="5" size="11" /></td>
</tr>
<tr>
<td class="postblock">Dimensión de miniatura <span style="font-weight:normal;">(px)</span></td>
<td><input type="text" name="thumb_px" value="#{boardopts['thumb_px']}" maxlength="3" size="11" /></td>
</tr>
<tr>
<td class="postblock">Hilos en página frontal</td>
<td><input type="text" name="numthreads" value="#{boardopts['numthreads']}" maxlength="2" size="11" /></td>
</tr>
<tr>
<td class="postblock">Respuestas a mostrar</td>
<td><input type="text" name="numcont" value="#{boardopts['numcont']}" maxlength="2" size="11" /></td>
</tr>
<tr>
<td class="postblock">Máximo de líneas <span style="font-weight:normal;">(frontal)</span></td>
<td><input type="text" name="numline" value="#{boardopts['numline']}" maxlength="3" size="11" /></td>
</tr>
<tr>
<td class="postblock">Edad máxima de un hilo</td>
<td><input type="text" name="maxage" value="#{boardopts['maxage']}" maxlength="3" size="11" /> (días; 0 = desactivar)</td>
</tr>
<tr>
<td class="postblock">Inactividad máxima de un hilo</td>
<td><input type="text" name="maxinactive" value="#{boardopts['maxinactive']}" maxlength="3" size="11" /> (días; 0 = desactivar)</td>
</tr>
<tr>
<td class="postblock">Archivar hilos</td>
<td><input type="checkbox" name="archive" id="arch" value="1"#{checked(boardopts['archive'] == '1')} /><label for="arch"></label></td>
</tr>
<tr>
<td class="postblock">Espera para crear nuevo hilo</td>
<td><input type="text" name="threadsecs" value="#{boardopts['threadsecs']}" maxlength="4" size="11" /> (segundos)</td>
</tr>
<tr>
<td class="postblock">Espera entre respuestas</td>
<td><input type="text" name="postsecs" value="#{boardopts['postsecs']}" maxlength="3" size="11" /> (segundos)</td>
</tr>
</table>
<br />
<hr />
<input type="submit" value="Guardar cambios" />
</form>
<?py #endif ?>
</center>
<hr />
<?py include('templates/base_bottom.html') ?>
|