[5ec3a0b] | 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"> |
---|
[3656afc] | 11 | <tal:t i18n:translate="">Upload workout file</tal:t> |
---|
[5ec3a0b] | 12 | </metal:head-title> |
---|
| 13 | |
---|
| 14 | <metal:title metal:fill-slot="title"> |
---|
[3656afc] | 15 | <tal:t i18n:translate="">Upload workout file</tal:t> |
---|
[5ec3a0b] | 16 | </metal:title> |
---|
| 17 | |
---|
| 18 | <metal:content metal:fill-slot="content"> |
---|
[3656afc] | 19 | <h2 i18n:translate="">Upload workout file</h2> |
---|
| 20 | <div class="upload-workout ow-forms"> |
---|
| 21 | ${form.begin(multipart=True)} |
---|
| 22 | ${form.csrf_token()} |
---|
| 23 | |
---|
| 24 | <fieldset> |
---|
| 25 | <p> |
---|
| 26 | <label for="title" i18n:translate="">Title:</label> |
---|
| 27 | ${form.errorlist('title')} |
---|
| 28 | ${form.text('title')} |
---|
| 29 | </p> |
---|
| 30 | </fieldset> |
---|
| 31 | |
---|
| 32 | <fieldset> |
---|
| 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 | </fieldset> |
---|
| 39 | |
---|
| 40 | <fieldset> |
---|
| 41 | <p> |
---|
| 42 | <label for="tracking_file" i18n:translate=""> |
---|
| 43 | Workout file (gpx, fit):</label> |
---|
| 44 | ${form.errorlist('tracking_file')} |
---|
| 45 | ${form.file('tracking_file')} |
---|
| 46 | </p> |
---|
| 47 | </fieldset> |
---|
| 48 | |
---|
| 49 | <p> |
---|
| 50 | ${form.submit("submit", "Save", **{'class':"button button-normal"})} |
---|
| 51 | <a href="" class="button button-important" |
---|
| 52 | tal:attributes="href request.resource_url(context)" |
---|
| 53 | i18n:translate="">Cancel</a> |
---|
| 54 | </p> |
---|
[5ec3a0b] | 55 | |
---|
| 56 | ${form.end()} |
---|
| 57 | </div> |
---|
| 58 | |
---|
| 59 | </metal:content> |
---|
| 60 | |
---|
| 61 | </html> |
---|