diff options
Diffstat (limited to 'cgi/templates/manage')
-rw-r--r-- | cgi/templates/manage/home.html | 38 | ||||
-rw-r--r-- | cgi/templates/manage/news.html | 46 |
2 files changed, 84 insertions, 0 deletions
diff --git a/cgi/templates/manage/home.html b/cgi/templates/manage/home.html new file mode 100644 index 0000000..52a206d --- /dev/null +++ b/cgi/templates/manage/home.html @@ -0,0 +1,38 @@ +<?py include('templates/base_top.html') ?> +<?py include('templates/manage/menu.html') ?> +<center> +<div class="replymode">Opciones de home</div> +<form action="#{cgi_url}manage/home" method="post"> +<table> +<tr> + <td class="postblock">Título del sitio</td> + <td><input type="text" name="title" value="#{home['title']}" maxlength="50" /></td> +</tr> +<tr> + <td class="postblock">Eslogan</td> + <td><input type="text" name="slogan" value="#{home['slogan']}" maxlength="100" /></td> +</tr> +<tr> + <td class="postblock">Noticias a mostrar</td> + <td><input type="text" name="news" value="#{home['news']}" maxlength="2"/></td> +</tr> +<tr> + <td class="postblock">Hilos a mostrar</td> + <td><input type="text" name="threads" value="#{home['threads']}" maxlength="2"/></td> +</tr> +<tr> + <td class="postblock">Largo de hilos</td> + <td><input type="text" name="length" value="#{home['length']}" maxlength="3"/></td> +</tr> +<tr> + <td class="postblock">Modo mantención</td> + <td><input type="checkbox" name="maintenance" id="maint" value="1"#{checked(home['maintenance'] == '1')} /><label for="maint"></label></td> +</tr> +</table> +<br /> +<hr /> +<input type="submit" value="Guardar cambios" /> +</form> +</center> +<hr /> +<?py include('templates/base_bottom.html') ?> diff --git a/cgi/templates/manage/news.html b/cgi/templates/manage/news.html new file mode 100644 index 0000000..33b8f49 --- /dev/null +++ b/cgi/templates/manage/news.html @@ -0,0 +1,46 @@ +<?py include('templates/base_top.html') ?> +<?py include('templates/manage/menu.html') ?> +<?py from tenjin.helpers.html import * ?> +<center> +<?py if action == 1: ?> +<div class="replymode">Publicar noticia</div> +<form action="#{cgi_url}manage/news/add?type=1" method="post"> +<?py elif action == 2: ?> +<div class="replymode">Twitter</div> +<form action="#{cgi_url}manage/news/add?type=2" method="post"> +<?py else: ?> +<div class="replymode">Publicar mensaje entre staff</div> +<form action="#{cgi_url}manage/newschannel/add" method="post"> +<?py #endif ?> +<table> +<?py if action != 2: ?> +<tr><td class="postblock">Anónimo</td><td><input type="checkbox" name="anonymous" id="anon" value="1"#{checked(action != 0)} /><label for="anon"></label></td></tr> +<tr><td class="postblock">Título</td><td><input type="text" name="title" style="width:100%;" /></td></tr> +<?py #endif ?> +<tr><td class="postblock">Cuerpo<br /><br /><small style="font-weight:normal">HTML: Usar<br />con cuidado</small></td><td><textarea cols="48" rows="5" name="message" style="width:100%;"></textarea></td></tr> +<tr><td colspan="2"><input type="submit" name="submit" style="width:100%;" value="Publicar" /></td></tr> +</table> +</form> +<?py if posts: ?> +<hr /> +<table class="managertable"> +<tr><th>ID</th><th>Fecha</th> +<?py if action != 2: ?><th>Título</th><?py #endif ?> +<?py if action != 2: ?><th>Mensaje</th> +<?py else: ?><th>Tweet</th> +<?py #endif ?> +<th></th></tr> +<?py for post in posts: ?> +<tr> +<td style="text-align:center">#{post['id']}</td> +<td>#{post['timestamp_formatted']}</td> +<?py if action != 2: ?><td>#{post['title']}</td><?py #endif ?> +<td>#{post['message']}</td> +<td>[<a href="#{cgi_url}manage/news/delete/#{post['id']}?type=#{action}">Eliminar</a>]</td> +</tr> +<?py #endfor ?> +</table> +<?py #endif ?> +</center> +<hr /> +<?py include('templates/base_bottom.html') ?> |