source: trunk/skins/lemill/button_macros.pt @ 3074

Revision 3074, 3.3 KB checked in by jukka, 9 years ago (diff)

Exercises seem to be working now.

Line 
1
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
3      lang="en"
4      i18n:domain="lemill">
5
6<metal:save define-macro="save_buttons">
7
8    <div style="margin-top:20px">
9    <tal:if_translation condition="translation | nothing">
10    <input type="hidden"
11        name="translation"
12        value="1"
13        />
14    <input type="hidden"
15        name="translation_of"
16        tal:attributes="value source/UID"
17        />
18    </tal:if_translation>
19    <metal:eula_def define-macro="eula">
20    <p>If you do not want your writing to be edited, used, and redistributed at will, then do not submit it here. All text that you did not write yourself, except brief excerpts, must be available under terms consistent with LeMill's Terms of Use before you submit it.</p>
21    </metal:eula_def>
22    </div>
23    <div class="form_submit">
24    <input class="save"
25        tabindex=""
26        type="submit"
27        name="form.button.form_submit"
28        value="Save" i18n:domain="plone"
29        i18n:attributes="value label_save;"
30        tal:attributes="tabindex tabindex/next;"
31        />
32    <input class="cancel"
33        tabindex=""
34        type="submit"
35        name="form.button.cancel"
36        value="Cancel" i18n:domain="plone"
37        i18n:attributes="value label_cancel;"
38        tal:attributes="tabindex tabindex/next"
39        />
40    </div>
41    <div class="required_notes">
42        <ul id="req_list" tal:repeat="req context/getRequiredFieldNames">
43        <li tal:attributes="id string:required_${req}; onclick string:focusToField('${req}'); onmouseover string:showFieldHint(this, '${req}'); onmouseout string:hideFieldHint(this, '${req}');" class="req_link"><span class="hint_label" tal:content="req" i18n:translate="" /> <span i18n:translate="is_required">is required</span></li>
44        </ul>
45    </div>
46    <input type="hidden" name="form.submitted" value="1" />
47</metal:save>
48
49
50<metal:save_buttons define-macro="save_and_move_buttons">
51
52<div style="margin-top:20px">
53    <tal:if_translation condition="translation">
54    <input type="hidden"
55        name="translation"
56        value="1"
57        />
58    <input type="hidden"
59        name="translation_of"
60        tal:attributes="value source/UID"
61        />
62    </tal:if_translation>
63    <metal:eula_def use-macro="here/button_macros/macros/eula"/>
64</div>
65    <div class="form_submit">
66    <input class="save"
67        tabindex=""
68        type="submit"
69        name="form.button.save_and_move"
70        value="Save" i18n:domain="plone"
71        i18n:attributes="value label_save;"
72        tal:attributes="tabindex tabindex/next;"
73        />
74    <input class="cancel"
75        tabindex=""
76        type="submit"
77        name="cancel"
78        value="Cancel" i18n:domain="plone"
79        i18n:attributes="value label_cancel;"
80        tal:attributes="tabindex tabindex/next"
81        />
82    </div>
83    <div class="required_notes">
84        <ul id="req_list" tal:repeat="req context/getRequiredFieldNames">
85        <li tal:attributes="id string:required_${req}; onclick string:focusToField('${req}'); onmouseover string:showFieldHint(this, '${req}'); onmouseout string:hideFieldHint(this, '${req}');" class="req_link"><span class="hint_label" tal:content="req" i18n:translate="" /> <span i18n:translate="is_required">is required</span></li>
86        </ul>
87    </div>
88    <input type="hidden" name="form.submitted" value="1" />
89</metal:save_buttons>
90
91
92
93</html>
Note: See TracBrowser for help on using the repository browser.