From 2ab5da4bfdce9f41e93a27082900da6ea72db6ed Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Tue, 29 Jul 2014 18:50:09 -0400 Subject: Webapp now show three columns image, original text and corrected text. The highlighting is functional as well. --- web/templates/index.html | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'web/templates/index.html') diff --git a/web/templates/index.html b/web/templates/index.html index b3b5fe0..2ba18c1 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -1,14 +1,25 @@ {% extends "layout.html" %} {% block main %} -
- -
- {% for id, coords in areas %} - {% end %} - -
- {% for id, word in words %} - {{word}} {% end %} -
+
+ +
+ + {% for i, coord in enumerate(orig_coords) %} + + {% end %} + + +
+

Texte original

+ {% for i, word in enumerate(orig_words) %} + {{word}} + {% end %} +
+
+

Texte corrigé

+ {% for i, word in enumerate(corr_words) %} + {{word}} + {% end %} +
{% end %} -- cgit v1.2.3-70-g09d2