source: OpenWorkouts-current/ow/templates/delete_workout.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: 2.3 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="">Delete workout</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="">Delete workout</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="delete_workout">
22      <form action="" method="POST">
23        <input id="_csrf" name="_csrf" type="hidden" value=""
24               tal:attributes="value request.session.get_csrf_token()" />
25        <input id="delete" name="delete" type="hidden" value="yes" />
26
27      <div id="workout">
28        <h3 tal:content="context.title"></h3>
29        <ul id="" tal:attributes="id 'workout-' + context.workout_id + '-details'">
30          <li>
31            <tal:t i18n:translate="">Start:</tal:t>
32            <tal:c tal:content="context.start"></tal:c>
33          </li>
34          <li>
35            <tal:t i18n:translate="">End:</tal:t>
36            <tal:c tal:content="context.end"></tal:c>
37          </li>
38          <li>
39            <tal:t i18n:translate="">Distance:</tal:t>
40            <tal:c tal:content="context.distance"></tal:c>
41          </li>
42          <li>
43            <tal:t i18n:translate="">Average Heart Rate:</tal:t>
44            <tal:c tal:content="context.hr_avg"></tal:c>
45          </li>
46          <li>
47            <tal:t i18n:translate="">Maximum Heart Rate:</tal:t>
48            <tal:c tal:content="context.hr_max"></tal:c>
49          </li>
50        </ul>
51        <div id="" tal:content="context.notes"
52             tal:attributes="id 'workout-' + context.workout_id + '-notes'">
53        </div>
54      </div>
55
56      <div>
57        Are you sure you want to delete this workout?
58      </div>
59
60      <input type="submit" name="submit" value="Yes, delete" />
61      <a href="" tal:attributes="href request.resource_url(context)"
62         i18n:translate="">Cancel</a>
63      </form>
64    </div>
65
66  </metal:content>
67
68</html>
Note: See TracBrowser for help on using the repository browser.