[fcf0ef3] | 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="">Multiple file uploads</tal:t> |
---|
| 12 | </metal:head-title> |
---|
| 13 | |
---|
| 14 | <metal:title metal:fill-slot="title"> |
---|
| 15 | <tal:t i18n:translate="">Multiple file uploads</tal:t> |
---|
| 16 | </metal:title> |
---|
| 17 | |
---|
| 18 | <metal:content metal:fill-slot="content"> |
---|
| 19 | |
---|
| 20 | <div class="bulk-files ow-forms"> |
---|
| 21 | <a href="" class="back" |
---|
[715671f] | 22 | tal:attributes="href request.resource_url(context, 'add-bulk-file')" |
---|
[fcf0ef3] | 23 | i18n:translate="">Back</a> |
---|
| 24 | <h2 i18n:translate="">Multiple file uploads</h2> |
---|
| 25 | |
---|
| 26 | <tal:bulk_files tal:repeat="bulk_file bulk_files"> |
---|
| 27 | <div class="bulk-file"> |
---|
| 28 | |
---|
| 29 | <h3 tal:content="bulk_file.file_name"></h3> |
---|
| 30 | |
---|
| 31 | <p> |
---|
| 32 | <span i18n:translate="">Uploaded on</span> |
---|
| 33 | <span tal:content="bulk_file.uploaded_in_timezone(context.timezone)"></span> |
---|
| 34 | </p> |
---|
| 35 | |
---|
| 36 | <p> |
---|
| 37 | <tal:loaded tal:condition="bulk_file.loaded"> |
---|
[715671f] | 38 | <span i18n:translate="">File loaded on</span> |
---|
[fcf0ef3] | 39 | <span tal:content="bulk_file.loaded_in_timezone(context.timezone)"></span> |
---|
[715671f] | 40 | <ul> |
---|
| 41 | <tal:loaded_files tal:repeat="file_name bulk_file.loaded_info.keys()"> |
---|
| 42 | <li tal:define="file_info bulk_file.loaded_info[file_name]"> |
---|
| 43 | <span tal:content="file_name"></span> |
---|
| 44 | <tal:file_loaded tal:condition="file_info['loaded']"> |
---|
| 45 | <span i18n:translate="">Loaded correctly</span> |
---|
| 46 | <a href="" tal:attributes="href request.resource_url(context, file_info['workout'])" |
---|
| 47 | i18n:translate="">See workout</a> |
---|
| 48 | </tal:file_loaded> |
---|
| 49 | <tal:file_not_loaded tal:condition="not file_info['loaded']"> |
---|
| 50 | <span i18n:translate="">Couldn't be loaded:</span> |
---|
| 51 | <span tal:content="file_info['error']"></span> |
---|
| 52 | </tal:file_not_loaded> |
---|
| 53 | </li> |
---|
| 54 | </tal:loaded_files> |
---|
| 55 | </ul> |
---|
[fcf0ef3] | 56 | </tal:loaded> |
---|
| 57 | <tal:not_loaded tal:condition="not bulk_file.loaded"> |
---|
| 58 | <span i18n:translate="">This file has not been yet processed</span> |
---|
| 59 | </tal:not_loaded> |
---|
| 60 | </p> |
---|
| 61 | |
---|
[8340661] | 62 | <p> |
---|
| 63 | <a href="" tal:attributes="href request.resource_url(bulk_file, 'delete')" |
---|
| 64 | i18n:translate="">delete</a> |
---|
| 65 | </p> |
---|
| 66 | |
---|
[715671f] | 67 | <!--! |
---|
| 68 | <tal:workouts tal:condition="bulk_file.loaded and bulk_file.workout_ids"> |
---|
| 69 | <ul class="bulk-loaded-workouts"> |
---|
| 70 | <tal:workout tal:repeat="workout bulk_file.workouts"> |
---|
| 71 | <li> |
---|
| 72 | <span tal:content="workout.start_in_timezone(context.timezone)"></span>, |
---|
| 73 | <span tal:content="workout.sport"></span>, |
---|
| 74 | <span tal:content="workout.title"></span> |
---|
| 75 | </li> |
---|
| 76 | </tal:workout> |
---|
| 77 | </ul> |
---|
| 78 | </tal:workouts> |
---|
| 79 | --> |
---|
[fcf0ef3] | 80 | <tal:no_workouts tal:condition="bulk_file.loaded and not bulk_file.workout_ids"> |
---|
| 81 | <p><span i18n:translate>No workouts have been loaded from this file</span></p> |
---|
| 82 | </tal:no_workouts> |
---|
| 83 | |
---|
| 84 | </div> |
---|
| 85 | </tal:bulk_files> |
---|
| 86 | |
---|
| 87 | </div> |
---|
| 88 | |
---|
| 89 | </metal:content> |
---|
| 90 | |
---|
| 91 | </html> |
---|