source: products/quintagroup.mobileextender/trunk/quintagroup/mobileextender/browser/mobilecontrol.pt @ 754

Last change on this file since 754 was 754, checked in by piv, 17 years ago

copied from trunk

  • Property svn:eol-style set to native
File size: 7.8 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2      xmlns:metal="http://xml.zope.org/namespaces/metal"
3      xmlns:tal="http://xml.zope.org/namespaces/tal"
4      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5      xml:lang="en" lang="en"
6      tal:omit-tag=""
7      metal:define-macro="controlpanel"
8      i18n:domain="plone">
9
10<metal:block use-macro="context/prefs_main_template/macros/master">
11
12<metal:block metal:fill-slot="top_slot"
13             tal:define="dummy python:request.set('disable_border', 1)" />
14
15<body>
16
17<div metal:fill-slot="prefs_configlet_main">
18
19    <div metal:define-macro="form">
20
21        <div id="viewspace" metal:define-slot="viewspace">
22
23            <metal:block define-macro="header">
24
25                <dl tal:define="status view/status"
26                     tal:condition="status"
27                     class="portalMessage info">
28                    <dt i18n:translate="">
29                        Info
30                    </dt>
31                    <dd tal:content="view/status" />
32                </dl>
33
34            </metal:block>
35
36            <h1 class="documentFirstHeading"
37                i18n:translate=""
38                tal:condition="view/label"
39                tal:content="view/label"
40                metal:define-slot="heading">
41                Do something
42            </h1>
43
44            <a href=""
45               class="link-parent"
46               tal:attributes="href string:$portal_url/plone_control_panel"
47               i18n:translate="label_up_to_plone_setup">
48                Up to Site Setup
49            </a>
50
51            <p i18n:translate=""
52               tal:condition="view/description"
53               tal:content="view/description">
54                Description
55            </p>
56
57            <form action="."
58                  metal:define-macro="master"
59                  tal:define="is_fieldsets view/is_fieldsets | nothing"
60                  tal:attributes="action request/URL;
61                                  class python: is_fieldsets and 'edit-form enableFormTabbing enableUnloadProtection' or default"
62                  method="post"
63                  class="edit-form enableUnloadProtection"
64                  enctype="multipart/form-data"
65                  id="zc.page.browser_form">
66
67                <input type="hidden"
68                       name="fieldset.current"
69                       value=""
70                       tal:attributes="value request/fieldset.current | string:" />
71
72                <div metal:define-slot="extra_info" tal:replace="nothing">
73                </div>
74
75                <fieldset tal:condition="not: is_fieldsets">
76                    <legend tal:define="form_name view/form_name|nothing"
77                            tal:condition="form_name"
78                            tal:content="form_name">Form name</legend>
79                    <tal:block tal:repeat="widget view/widgets">
80
81                        <div class="field"
82                             tal:define="description widget/hint;
83                                         error widget/error"
84                             tal:attributes="class python:'field'+(error and ' error' or '')">
85                         
86                            <label i18n:translate=""
87                                   tal:attributes="for widget/name"
88                                   tal:content="widget/label">
89                                label
90                            </label>
91
92                            <span class="fieldRequired"
93                                  title="Required"
94                                  i18n:attributes="title title_required;"
95                                  i18n:translate="label_required"
96                                  tal:condition="widget/required">
97                                (Required)
98                            </span>
99
100                            <div class="formHelp"
101                                 i18n:translate=""
102                                 tal:content="description"
103                                 tal:condition="description">
104                                field description
105                            </div>
106
107                            <div tal:condition="error"
108                                 tal:content="structure error">
109                                The Error
110                            </div>
111
112                            <div class="widget" tal:content="structure widget">
113                                <input type="text" />
114                            </div>
115                        </div>
116
117                    </tal:block>
118
119                </fieldset>
120
121                <fieldset tal:attributes="id python:'fieldset-%s' % fieldset.id"
122                          tal:condition="is_fieldsets"
123                          tal:repeat="fieldset view/form_fields/fieldsets">
124                    <legend tal:define="form_name fieldset/label"
125                            tal:condition="form_name"
126                            tal:attributes="id python:'fieldsetlegend-%s' % fieldset.id"
127                            tal:content="form_name">Form name</legend>
128
129                    <p i18n:translate=""
130                       tal:condition="fieldset/description"
131                       tal:content="fieldset/description">
132                        Description
133                    </p>
134
135                    <tal:block tal:repeat="widget fieldset/widgets">
136
137                        <div class="field"
138                             tal:define="description widget/hint;
139                                         error widget/error"
140                             tal:attributes="class python:'field'+(error and ' error' or '')">
141
142                            <label i18n:translate=""
143                                   tal:define="name widget/name"
144                                   tal:attributes="for widget/associateLabelWithInputControl|name"
145                                   tal:content="widget/label">
146                                label
147                            </label>
148
149                            <span class="fieldRequired"
150                                  title="Required"
151                                  i18n:attributes="title title_required;"
152                                  i18n:translate="label_required"
153                                  tal:condition="widget/required">
154                                (Required)
155                            </span>
156
157                            <div class="formHelp"
158                                 i18n:translate=""
159                                 tal:content="description"
160                                 tal:condition="description">
161                                field description
162                            </div>
163
164                            <div tal:condition="error"
165                                 tal:content="structure error">
166                                The Error
167                            </div>
168
169                            <div class="widget" tal:content="structure widget">
170                                <input type="text" />
171                            </div>
172                        </div>
173
174                    </tal:block>
175
176                </fieldset>
177
178                <metal:block define-slot="above_buttons" />
179
180                <div class="visualClear"><!-- --></div>
181
182                <div id="actionsView" class="formControls">
183                    <span class="actionButtons"
184                          tal:condition="view/availableActions"
185                          metal:define-slot="bottom_buttons">
186                        <input tal:repeat="action view/actions"
187                               tal:replace="structure action/render" />
188                    </span>
189                </div>
190
191                <!-- input tal:replace="structure context/@@authenticator/authenticator" / -->
192
193            </form>
194        </div>
195
196        <script type="text/javascript"
197            tal:define="extra_script view/extra_script | nothing"
198            tal:condition="extra_script"
199            tal:content="structure extra_script">
200        </script>
201
202    </div>
203
204</div>
205</body>
206
207</metal:block>
208</html>
Note: See TracBrowser for help on using the repository browser.