products/CPSRSS

view browser/manage_channels.pt @ 277:b7202f86a872

Avoid leading double slash url
author Georges Racinet on purity.racinet.fr <georges@racinet.fr>
date Thu, 05 May 2011 11:20:13 +0200
parents 903be8003573
children
line source
1 <html xmlns:tal="http://xml.zope.org/namespaces/tal"
2 xmlns:metal="http://xml.zope.org/namespaces/metal"
3 metal:use-macro="here/main_template/macros/master">
4 <body>
6 <metal:main fill-slot="main"
7 tal:define="channels view/channels;
8 base_url here/portal_url/getBaseUrl">
10 <h1 i18n:translate="heading_manage_rss_channels">
11 Gestion des flux RSS
12 </h1>
14 <p tal:condition="not:channels"
15 i18n:translate="manage_rss_channels_no_channel">
16 Il n'y a pas encore de flux RSS &agrave; cet emplacement.
17 </p>
19 <tal:block condition="channels">
20 <h2 i18n:translate="manage_rss_channels_available">Flux disponibles</h2>
21 <form action="set_activated" encoding="multipart-form-data"
22 method="post">
23 <ul>
24 <li tal:repeat="channel_info channels">
25 <tal:block define="channel nocall:channel_info/channel">
26 <input name="activated:list" type="checkbox"
27 tal:attributes="value channel/getId;
28 checked channel_info/activated;"/>
29 <a tal:content="channel/title"
30 tal:attributes="href string:${channel/absolute_url_path}/edit.html"
31 />
32 <a
34 tal:attributes="href string:${here/absolute_url_path}/del_channels?chan_ids=${channel/getId};
35 onclick python: 'return window.confirm(\'%s\')' % cpsmcat('confirm_channel_delete')"
36 tal:condition="not:channel_info/activated">
37 <img tal:attributes="src string:${base_url}rss_channel_delete.png"/>
38 </a>
39 <p tal:content="channel/description"/>
40 </tal:block>
41 </li>
42 </ul>
43 <input type="submit" class="standalone" value="activer/desactiver"
44 name="submit"/>
45 </form>
46 </tal:block>
48 <h2 i18n:translate="manage_rss_channels_add_channel">Ajouter un flux</h2>
49 <form action="add_channel" enctype="multipart/form-data" method="post">
50 <p>
51 <label for="new_channel_url"
52 i18n:translate="manage_rss_channels_new_url">
53 Adresse du flux (URL)
54 </label>
55 <input id="new_channel_url" name="url" type="text" size="72"/>
56 <br/>
57 <input type="submit" value="button_ok" name="add" class="standalone"
58 i18n:attributes="value" />
59 </p>
60 </form>
62 <h2 i18n:translate="manage_rss_channels_refresh">
63 Mettre &agrave; jour tous les flux
64 </h2>
65 <form action="refresh_channels" method="post">
66 <p>
67 <input type="submit" value="button_ok" name="add" class="standalone"
68 i18n:attributes="value" />
69 </p>
70 </form>
71 </metal:main>
73 </body>
74 </html>