1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | lang="en" |
---|
3 | metal:use-macro="here/prefs_main_template/macros/master" |
---|
4 | i18n:domain="SimpleBlog"> |
---|
5 | |
---|
6 | <metal:block fill-slot="top_slot" |
---|
7 | tal:define="dummy python:request.set('disable_border',1)" /> |
---|
8 | |
---|
9 | <body> |
---|
10 | |
---|
11 | <div metal:fill-slot="prefs_configlet_main" |
---|
12 | tal:define="errors python:request.get('errors', {})"> |
---|
13 | <h1>Adsense Setup</h1> |
---|
14 | |
---|
15 | <a href="" |
---|
16 | class="link-parent" |
---|
17 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
18 | i18n:translate="label_up_to_plone_setup"> |
---|
19 | Up to Site Setup |
---|
20 | </a> |
---|
21 | |
---|
22 | <p i18n:translate="description_canonical_url"> |
---|
23 | Lets you control Adsense settings. |
---|
24 | </p> |
---|
25 | |
---|
26 | <form name="adseneseForm" method="post" |
---|
27 | name="pref_adsense" |
---|
28 | tal:define="errors options/state/getErrors;" |
---|
29 | tal:attributes="action template/id"> |
---|
30 | |
---|
31 | <div class="field" |
---|
32 | tal:define="error errors/customer_id | nothing; |
---|
33 | customer_id_value python:modules['Products.adsenseproduct.util'].getCustomerId(here)" |
---|
34 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
35 | <label>Customer ID</label> |
---|
36 | <div tal:content="error">Validation error output</div> |
---|
37 | <input name="customer_id" type="text" value="" tabindex="" |
---|
38 | tal:attributes="value customer_id_value;tabindex tabindex/next;" /> |
---|
39 | </div> |
---|
40 | |
---|
41 | <div class="formControls"> |
---|
42 | <input class="context" |
---|
43 | tabindex="" |
---|
44 | type="submit" |
---|
45 | name="form.button.Save" |
---|
46 | value="Save" |
---|
47 | i18n:attributes="value" |
---|
48 | tal:attributes="tabindex tabindex/next;"/> |
---|
49 | </div> |
---|
50 | |
---|
51 | <input type="hidden" name="sub" value="1" /> |
---|
52 | <input type="hidden" name="form.submitted" value="1" /> |
---|
53 | |
---|
54 | </form> |
---|
55 | </div> |
---|
56 | </body> |
---|
57 | </html> |
---|