From 0bd3963428a03b300cdfef3046ab3bd3887effb1 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 14 Aug 2018 14:27:01 +0900 Subject: [PATCH] Refactor annotation templates --- .../templates/annotation/annotation_base.html | 138 +++++++++--------- .../annotation/document_classification.html | 64 ++++---- app/server/templates/annotation/seq2seq.html | 56 ++++--- .../annotation/sequence_labeling.html | 49 +++---- 4 files changed, 144 insertions(+), 163 deletions(-) diff --git a/app/server/templates/annotation/annotation_base.html b/app/server/templates/annotation/annotation_base.html index 6ea5e8d9..059a0835 100644 --- a/app/server/templates/annotation/annotation_base.html +++ b/app/server/templates/annotation/annotation_base.html @@ -1,87 +1,89 @@ {% extends "base.html" %} {% load static %} {% block header %} - + {% endblock %} {% block content %}
- +
- {% block annotation-area %} {% endblock %} +
+ 30% +
-
- - - - - Prev - + {% block annotation-area %} {% endblock %} - - Next - - - - -
+ + +
{% endblock %} \ No newline at end of file diff --git a/app/server/templates/annotation/document_classification.html b/app/server/templates/annotation/document_classification.html index 400a3cf3..2e9eda93 100644 --- a/app/server/templates/annotation/document_classification.html +++ b/app/server/templates/annotation/document_classification.html @@ -1,47 +1,41 @@ {% extends "annotation/annotation_base.html" %} {% load static %} - {% block annotation-area %}
-
-
-
-
-
- - [[ label.text ]] - - [[ label.shortcut ]] -
-
-
+
+
+
+
+
+ + [[ label.text ]] + + [[ label.shortcut ]] +
-
+
+
+ -
-
-
-
- - [[ id2label[annotation.label].text ]] - - -
-
-
-
-
- [[ docs[pageNumber].text ]] +
+
+
+
+ + [[ id2label[annotation.label].text ]] + +
+
+
+
+ [[ docs[pageNumber].text ]] +
+
{% endblock %} - {% block footer %} - + {% endblock %} \ No newline at end of file diff --git a/app/server/templates/annotation/seq2seq.html b/app/server/templates/annotation/seq2seq.html index b7d33797..3601c1ac 100644 --- a/app/server/templates/annotation/seq2seq.html +++ b/app/server/templates/annotation/seq2seq.html @@ -1,38 +1,32 @@ -{% extends "annotation/annotation_base.html" %} {% load static %} {% block annotation-area %} +{% extends "annotation/annotation_base.html" %} +{% load static %} +{% block annotation-area %}
-
-
- [[ docs[pageNumber].text ]] -
+
+
+ [[ docs[pageNumber].text ]]
+
-
- -
-
-
    -
  • -
    - - -
    - -
  • -
-
+
+ +
+
+
    +
  • +
    + + +
    + +
  • +
+
-{% endblock %} {% block footer %} - +{% endblock %} +{% block footer %} + {% endblock %} \ No newline at end of file diff --git a/app/server/templates/annotation/sequence_labeling.html b/app/server/templates/annotation/sequence_labeling.html index 12b295fd..bb6ba54a 100644 --- a/app/server/templates/annotation/sequence_labeling.html +++ b/app/server/templates/annotation/sequence_labeling.html @@ -1,39 +1,30 @@ {% extends "annotation/annotation_base.html" %} {% load static %} - {% block annotation-area %}
-
-
-
-
-
- - [[ label.text ]] - - [[ label.shortcut ]] -
-
-
-
-
-
-
- +
+
+
+
+
+ + [[ label.text ]] + + [[ label.shortcut ]] +
+
+
+
+
+
+
+
{% endblock %} - {% block footer %} - + {% endblock %} \ No newline at end of file