client/app/annotationclient.html
author cavaliet
Thu, 09 Oct 2014 12:17:28 +0200
changeset 4 9c70d81e9062
parent 1 client/app/index.html@1cdebfeb77f9
child 5 90a7c431b979
permissions -rw-r--r--
update gulpfile for template to work with twistd/flask
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
     1
<!doctype html>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
     2
<html>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
     3
<head>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
     4
  <meta charset="utf-8">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
     5
  <meta name="viewport" content="width=device-width, initial-scale=1">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
     6
  <title>Mons by IRI</title>
4
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
     7
  <link rel="stylesheet" href="{{ pre_static_path }}static/css/lib.css">
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
     8
  <link rel="stylesheet" href="{{ pre_static_path }}static/css/app.css">
1
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
     9
</head>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    10
<body ng-controller="homeCtrl" ng-app="mons" ng-cloak>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    11
  <div class="container">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    12
    <div class="row">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    13
      <div class="col-md-12">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    14
      <form role="form">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    15
        <input class="form-control" placeholder="Nom d'utilisateur" ng-model="username"/>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    16
      </form>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    17
      </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    18
    </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    19
    <div class="row">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    20
      <div class="col-md-12">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    21
        <form role="form">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    22
          <autocomplete ng-model="yourchoice" data="allCatLabels" on-type="onAutocompleteType" attr-input-class="form-control" attr-placeholder="Catégories..." on-select="onSelect" ></autocomplete>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    23
        </form>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    24
      </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    25
    </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    26
    <div class="row mons-content">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    27
        <div class="mons-button hand return" ng-style="returnVisStyle" ng-click="selectLevel(false)" ng-init="returnVisStyle={visibility:'hidden'}">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    28
          <div class="content">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    29
              <div class="table">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    30
                <div class="table-cell">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    31
                  <p class="large-cat">RETOUR</p>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    32
                </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    33
              </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    34
          </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    35
        </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    36
        <div class="mons-button hand send" ng-click="sendAnnotation(yourchoice)">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    37
          <div class="content">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    38
              <div class="table">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    39
                <div class="table-cell">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    40
                  <p class="large-cat">ENVOYER</p>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    41
                  <p class="normal-cat">la catégorie saisie</p>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    42
                </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    43
              </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    44
          </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    45
        </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    46
    </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    47
    <div class="mons-content">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    48
      <div ng-show="!selectedlevel">
4
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    49
          <div class="mons-button hand" ng-repeat="c in data.categories" style="background-color: {{ '{{' }} c.color {{ '}}' }}" ng-click="selectLevel($index, c.event_code)">
1
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    50
            <div class="content">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    51
                <div class="table">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    52
                  <div class="table-cell">
4
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    53
                    <p class="large-cat">{{ '{{' }} c.label {{ '}}' }}</p>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    54
                    <p class="normal-cat">{{ '{{' }} c.full_label {{ '}}' }}</p>
1
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    55
                  </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    56
                </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    57
            </div>
4
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    58
          </div>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    59
      </div>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    60
      <div ng-show="selectedlevel">
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    61
          <div class="mons-button hand" ng-repeat="c in selectedlevel" style="background-color: {{ '{{' }} c.color {{ '}}' }}" ng-click="sendAnnotation(c.event_code)">
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    62
            <div class="content">
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    63
                <div class="table">
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    64
                  <div class="table-cell">
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    65
                    <p class="large-cat">{{ '{{' }} c.label {{ '}}' }}</p>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    66
                    <p class="normal-cat">{{ '{{' }} c.full_label {{ '}}' }}</p>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    67
                  </div>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    68
                </div>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    69
            </div>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    70
          </div>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    71
      </div>
1
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    72
    </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    73
    <footer>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    74
      <div class="row">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    75
        <div class="col-md-12 text-center">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    76
            mons vBeta - ©IRI-2014
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    77
        </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    78
      </div>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    79
    </footer>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    80
  </div>
4
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    81
  <script type="text/javascript" src="{{ pre_static_path }}static/js/lib.js"></script>
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    82
  <!--script type="text/javascript" src="{{ pre_static_path }}static/js/templates.js"></script-->
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    83
  <script type="text/javascript" src="{{ pre_static_path }}static/js/app.js"></script>
1
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    84
  <script type="text/javascript">
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    85
      angular.module("mons")
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    86
          .value('context', {
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    87
              urls: {
4
9c70d81e9062 update gulpfile for template to work with twistd/flask
cavaliet
parents: 1
diff changeset
    88
                  dataUrl: "{{ pre_static_path }}static/data/categories.json"
1
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    89
              }
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    90
          });
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    91
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    92
  </script>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    93
</body>
1cdebfeb77f9 add client folder and update hgignore
cavaliet
parents:
diff changeset
    94
</html>