[OCaml] High Intensity Training Online
style rewrite the cancel-logging confirmation copy
Name the action plainly. The confirm modal title now reads "Cancel logging this workout?". The body states that the action cannot be undone. Label the two actions "Cancel logging" and "Continue logging" so they match the trigger control.
lib/presenter/pages_workout.ml
@@ -378,13 +378,8 @@
378
378
class_ "confirm-dialog"; Dream_html.attr "data-hito-confirm-modal";
379
379
]
380
380
[
381
Removed:
tag "h2" [] [ txt "Cancel this workout?" ];
382
Removed:
tag "p" []
383
Removed:
[
384
Removed:
txt
385
Removed:
"The workout is discarded and leaves no record, then you \
386
Removed:
return Home.";
387
Removed:
];
381
Added:
tag "h2" [] [ txt "Cancel logging this workout?" ];
382
Added:
tag "p" [] [ txt "This action can not be undone." ];
388
383
tag "div"
389
384
[ class_ "button-group" ]
390
385
[
@@ -392,14 +387,14 @@
392
387
[
393
388
type_ "button"; Dream_html.attr "data-hito-confirm-accept";
394
389
]
395
Removed:
[ txt "Cancel workout" ];
390
Added:
[ txt "Cancel logging" ];
396
391
tag "button"
397
392
[
398
393
type_ "button";
399
394
class_ "secondary";
400
395
Dream_html.attr "data-hito-confirm-dismiss";
401
396
]
402
Removed:
[ txt "Keep logging" ];
397
Added:
[ txt "Continue logging" ];
403
398
];
404
399
];
405
400
]