source: products/qRSS2Syndication/branches/Plone3.1/skins/qrss2syndication/setup_rss2.cpt @ 1591

Last change on this file since 1591 was 126, checked in by fenix, 18 years ago

add docstring to all classes and functions

File size: 5.7 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="plone">
5
6  <body>
7
8    <div metal:fill-slot="main"
9         tal:define="errors options/state/getErrors;
10                     sy_info python:here.getSynProp();
11                     params ">
12
13      <h1 i18n:translate="heading_RSS2_setup">
14        RSS2 feeds setup
15      </h1>
16     <!-- <tal:x replace="sy_info"/>-->
17      <form name="edit_form"
18            action="."
19            method="post"
20            enctype="multipart/form-data"
21            tal:attributes="action template_id" >
22
23        <fieldset>
24
25          <legend i18n:translate="legend_setup_rss2">Setup Details</legend>
26
27         
28          <div class="field">
29
30            <label for="rss2_types" i18n:translate="label_select_RSS2_types">Select types</label>
31
32            <div class="formHelp" i18n:translate="help_select_RSS2_types">
33              Select types to be included the RSS2 feed.
34            </div>
35
36            <select name="rss2_types:list:string"
37                    multiple="multiple"
38                    size="20"
39                    tal:define="types here/portal_types/listTypeInfo;
40                                        ">
41              <metal:block tal:repeat="ctype types">
42                <option value="Document"
43                        tal:define="Id ctype/getId;
44                                    is_selected python: ctype.getId() in sy_info['rss2_types']"
45                        tal:attributes="value ctype/getId;
46                                        selected is_selected|nothing"
47                        tal:content="python:ctype.Title()"
48                        i18n:translate="">Document</option>
49              </metal:block>
50               
51                        </select>
52          </div>
53
54          <div class="field">
55
56            <input type="checkbox"
57                   name="only_published"
58                   value="1"
59                   tal:define="checked python:sy_info['only_published'] and 'checked'"
60                   tal:attributes="checked checked"/>
61
62            <label for="only_published" i18n:translate="label_only_published">Only published content</label>
63
64          </div>
65          <div class="field">
66
67            <input type="checkbox"
68                   name="include_subfolders"
69                   value="0"
70                   tal:define="checked python:sy_info['include_subfolders'] and 'checked'"
71                   tal:attributes="checked checked"/>
72
73            <label for="include_subfolders" i18n:translate="label_include_subfolders">Include subfolders content</label>
74
75          </div>
76
77          <div class="field"
78               tal:define="error errors/articles_number|nothing;"
79               tal:attributes="class python:test(error, 'field error', 'field')">
80            <label for="articles_number" i18n:translate="label_articles_number">Articles number</label>
81
82            <div class="formHelp" i18n:translate="help_articles_number">
83              Articles number to be included the RSS2 feed.
84            </div>
85            <div tal:content="error">Validation error output</div>
86            <input type="text"
87                   name="articles_number"
88                   value=""                                                                       
89                   tal:define="articles_number python:request.get('articles_number',None) or sy_info['articles_number'] or 20"
90                   tal:attributes="value articles_number"/>
91          </div>
92
93                  <fieldset>
94                         <legend i18n:translate="legend_itunes">iTunes</legend>
95                  <div class="field">
96                    <input type="checkbox"
97                           name="enable_itunes"
98                           value="0"
99                           tal:define="checked python:sy_info['enable_itunes'] and 'checked'"
100                           tal:attributes="checked checked"/>
101                    <label for="enable_itunes" i18n:translate="label_enable_itunes">Enable support for iTunes Music Store (good for Podcasts/Vodcasts)</label>
102                  </div>
103       
104                  <div class="field">
105                    <input type="checkbox"
106                           name="itunes_explicit"
107                           value="0"
108                           tal:define="checked python:sy_info['itunes_explicit'] and 'checked'"
109                           tal:attributes="checked checked"/>
110                    <label for="itunes_explicit" i18n:translate="label_itunes_explicit">This channel contains explicit content, strong language, sexuality, ...</label>
111                  </div>
112       
113                  <div class="field">
114                    <label for="itunes_image_url" i18n:translate="label_itunes_image_url">Artwork for this Channel</label>
115                    <div class="formHelp" i18n:translate="help_itunes_image_url">
116                      Please enter a url to a image for the artwork of this channel. Should be in JPEG or PNG format and 300x300 pixels.
117                    </div>
118                    <input type="text"
119                           name="itunes_image_url"
120                           value=""
121                                          size="60"
122                           tal:define="itunes_image_url python:request.get('itunes_image_url',None) or sy_info['itunes_image_url'] or ''"
123                           tal:attributes="value itunes_image_url"/>
124                  </div>
125                  </fieldset>
126          <div class="formControls">
127       
128            <input class="context"
129                   tabindex=""
130                   type="submit"
131                   name="form.button.Save"
132                   value="Save"
133                   i18n:attributes="value"
134                   tal:attributes="tabindex tabindex/next;
135                                   disabled python:test(isLocked, 'disabled', None);" />
136
137          </div>
138        </fieldset>
139
140        <input type="hidden" name="form.submitted" value="1" />
141
142      </form>
143
144     
145    </div>
146
147  </body>
148</html>
Note: See TracBrowser for help on using the repository browser.