source: OpenWorkouts-current/ow/templates/update_workout_from_file.pt @ 01674ff

currentfeature/docs
Last change on this file since 01674ff was 01674ff, checked in by Segundo Fdez <segun.2@…>, 5 years ago

Update forms and fix detail workout view

  • Property mode set to 100644
File size: 1.9 KB
Line 
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="">Update workout from file</tal:t> -
12    <tal:w tal:content="context.title"></tal:w>
13  </metal:head-title>
14
15  <metal:title metal:fill-slot="title">
16    <tal:t i18n:translate="">Update workout from file</tal:t>
17    <tal:w tal:content="context.title"></tal:w>
18  </metal:title>
19
20  <metal:content metal:fill-slot="content">
21    <div id="update_workout_file" class="ow-forms">
22
23      <a class="back" href="" tal:attributes="href request.resource_url(request.root)"
24         i18n:translate="">Back</a>
25
26      ${form.begin(multipart=True)}
27      ${form.csrf_token()}
28
29      <div tal:condition="context.has_tracking_file"
30           i18n:translate="">
31        <h2>Existing
32        <tal:filetype i18n:name="filetype"
33                      tal:content="context.tracking_filetype"></tal:filetype>
34        tracking file data</h2>
35        <p>
36          <tal:data i18n:name="start"
37                  tal:content="context.start"></tal:data>
38        </p>
39        <p>
40          <tal:data i18n:name="end"
41                  tal:content="context.end"></tal:data>
42        </p>
43        <p>
44          <tal:data i18n:name="distance"
45                  tal:content="context.distance"></tal:data> kms
46        </p>
47      </div>
48
49      <fieldset>
50        ${form.errorlist('tracking_file')}
51        <div>
52          <label for="notes" i18n:translate="">Workout file (gpx, fit):</label>
53          ${form.file('tracking_file')}
54        </div>
55      </fieldset>
56
57      ${form.submit("submit", "Save",  **{'class':"button button-normal"})}
58      ${form.end()}
59    </div>
60
61  </metal:content>
62
63</html>
Note: See TracBrowser for help on using the repository browser.