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

currentfeature/docs
Last change on this file since a4e4799 was a4e4799, checked in by Borja Lopez <borja@…>, 5 years ago

(#56) Added i18n helper scripts and spanish (es) translations.
Done lots of translated strings fixes in templates.
Removed .mo and .pot files from the git ignore list.

  • Property mode set to 100644
File size: 2.5 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      <h2 tal:content="context.title"></h2>
30
31      <div tal:condition="context.has_tracking_file">
32
33        <h3 i18n:translate="">
34          Existing
35          <tal:filetype i18n:name="filetype"
36                        tal:content="context.tracking_filetype"></tal:filetype>
37          tracking file data
38        </h3>
39
40        <ul class="workout-activity-summary" id=""
41            tal:attributes="id 'workout-' + context.workout_id + '-details'"
42            tal:define="timezone request.root[request.authenticated_userid].timezone">
43          <li>
44            <tal:t i18n:translate="">Start:</tal:t>
45            <tal:c tal:content="context.start_in_timezone(timezone)"></tal:c>
46          </li>
47          <li>
48            <tal:t i18n:translate="">Duration:</tal:t>
49            <tal:c tal:content="context._duration"></tal:c>
50          </li>
51          <li>
52            <tal:t i18n:translate="">Distance:</tal:t>
53            <tal:c tal:content="context.rounded_distance"></tal:c>
54          </li>
55        </ul>
56        <div id="" tal:content="context.notes"
57             tal:attributes="id 'workout-' + context.workout_id + '-notes'">
58        </div>
59      </div>
60
61      <fieldset>
62        ${form.errorlist('tracking_file')}
63        <div>
64          <label for="notes" i18n:translate="">Workout file (gpx, fit):</label>
65          ${form.file('tracking_file')}
66        </div>
67      </fieldset>
68
69      ${form.submit("submit", "Save",  **{'class':"button button-normal"})}
70      ${form.end()}
71    </div>
72
73  </metal:content>
74
75</html>
Note: See TracBrowser for help on using the repository browser.