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

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

Imported sources from the old python2-only repository:

  • Modified the code so it is python 3.6 compatible
  • Fixed deprecation warnings, pyramid 1.10.x supported now
  • Fixed deprecation warnings about some libraries, like pyramid-simpleform
  • Added pytest-pycodestyle and pytest-flakes for automatic checks on the source code files when running tests.
  • Added default pytest.ini setup to enforce some default parameters when running tests.
  • Cleaned up the code a bit, catched up with tests coverage.
  • Property mode set to 100644
File size: 1.8 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">
22      ${form.begin(multipart=True)}
23      ${form.csrf_token()}
24
25      <div tal:condition="context.has_tracking_file"
26           i18n:translate="">
27        Existing
28        <tal:filetype i18n:name="filetype"
29                      tal:content="context.tracking_filetype"></tal:filetype>
30        tracking file data:
31        <tal:data i18n:name="start"
32                  tal:content="context.start"></tal:data> -
33        <tal:data i18n:name="end"
34                  tal:content="context.end"></tal:data> -
35        <tal:data i18n:name="distance"
36                  tal:content="context.distance"></tal:data> kms
37      </div>
38
39      <fieldset>
40        ${form.errorlist('tracking_file')}
41        <label for="notes" i18n:translate="">Workout file (gpx, fit):</label>
42        ${form.file('tracking_file')}
43      </fieldset>
44
45      ${form.submit("submit", "Save")}
46      <a href="" tal:attributes="href request.resource_url(request.root)"
47         i18n:translate="">Cancel</a>
48
49      ${form.end()}
50    </div>
51
52  </metal:content>
53
54</html>
Note: See TracBrowser for help on using the repository browser.