source: OpenWorkouts-current/ow/templates/delete_workout.pt @ 20782ac

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

Added round() on distance information in delete workout and update workout
with tracking file.

Added better styling to the update with tracking file.

  • Property mode set to 100644
File size: 2.4 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" class="ow-forms">
22      <a class="back" href="" tal:attributes="href request.resource_url(context)"
23         i18n:translate="">Cancel</a>
24      <form action="" method="POST">
25        <fieldset>
26          <input id="_csrf" name="_csrf" type="hidden" value=""
27                 tal:attributes="value request.session.get_csrf_token()" />
28          <input id="delete" name="delete" type="hidden" value="yes" />
29
30          <div id="workout"
31               tal:define="timezone request.root[request.authenticated_userid].timezone">
32            <h2 tal:content="context.title"></h2>
33
34            <ul class="workout-activity-summary" id="" tal:attributes="id 'workout-' + context.workout_id + '-details'">
35              <li>
36                <tal:t i18n:translate="">Start:</tal:t>
37                <tal:c tal:content="context.start_in_timezone(timezone)"></tal:c>
38              </li>
39              <li>
40                <tal:t i18n:translate="">Duration:</tal:t>
41                <tal:c tal:content="context._duration"></tal:c>
42              </li>
43              <li>
44                <tal:t i18n:translate="">Distance:</tal:t>
45                <tal:c tal:content="context.rounded_distance"></tal:c>
46              </li>
47            </ul>
48            <div id="" tal:content="context.notes"
49                 tal:attributes="id 'workout-' + context.workout_id + '-notes'">
50            </div>
51          </div>
52        </fieldset>
53
54      <div>
55        <p>Are you sure you want to delete this workout?</p>
56      </div>
57      <div>
58        <input class="button button-normal" type="submit" name="submit" value="Yes, delete" />
59      </div>
60      </form>
61    </div>
62
63  </metal:content>
64
65</html>
Note: See TracBrowser for help on using the repository browser.