1 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
2 | xml:lang="en" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
5 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
6 | i18n:domain="OpenWorkouts" |
---|
7 | metal:use-macro="load: base.pt" |
---|
8 | tal:attributes="lang request.locale_name"> |
---|
9 | |
---|
10 | <metal:head-title metal:fill-slot="head-title"> |
---|
11 | <tal:t i18n:translate="">Upload workout file</tal:t> |
---|
12 | </metal:head-title> |
---|
13 | |
---|
14 | <metal:title metal:fill-slot="title"> |
---|
15 | <tal:t i18n:translate="">Upload workout file</tal:t> |
---|
16 | </metal:title> |
---|
17 | |
---|
18 | <metal:content metal:fill-slot="content"> |
---|
19 | <div class="upload-workout ow-forms"> |
---|
20 | <a href="" class="back" |
---|
21 | tal:attributes="href request.resource_url(context)" |
---|
22 | i18n:translate="">Back</a> |
---|
23 | <h2 i18n:translate="">Upload workout file</h2> |
---|
24 | ${form.begin(multipart=True)} |
---|
25 | ${form.csrf_token()} |
---|
26 | |
---|
27 | <fieldset> |
---|
28 | <p> |
---|
29 | <label for="title" i18n:translate="">Title</label> |
---|
30 | ${form.errorlist('title')} |
---|
31 | ${form.text('title')} |
---|
32 | </p> |
---|
33 | <p> |
---|
34 | <label for="notes" i18n:translate="">Notes</label> |
---|
35 | ${form.errorlist('notes')} |
---|
36 | ${form.textarea('notes', rows=10, cols=50)} |
---|
37 | </p> |
---|
38 | <p> |
---|
39 | <label for="tracking_file" i18n:translate=""> |
---|
40 | Workout file (gpx, fit)</label> |
---|
41 | ${form.errorlist('tracking_file')} |
---|
42 | ${form.file('tracking_file')} |
---|
43 | </p> |
---|
44 | </fieldset> |
---|
45 | |
---|
46 | ${form.submit("submit", "Save", **{'class':"button button-normal"})} |
---|
47 | |
---|
48 | ${form.end()} |
---|
49 | </div> |
---|
50 | |
---|
51 | </metal:content> |
---|
52 | |
---|
53 | </html> |
---|