author | ymh <ymh.work@gmail.com> |
Thu, 22 Jan 2015 03:23:08 +0100 | |
changeset 107 | 6d41506f9482 |
parent 80 | dd414da0f0bb |
child 115 | 14da5aeab8d9 |
permissions | -rw-r--r-- |
1 | 1 |
<!doctype html> |
2 |
<html> |
|
3 |
<head> |
|
4 |
<meta charset="utf-8"> |
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
6 |
<title>Mons by IRI</title> |
|
13
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
11
diff
changeset
|
7 |
<link rel="stylesheet" href="{{ config['STATIC_URL'] }}/css/lib.css"> |
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
11
diff
changeset
|
8 |
<link rel="stylesheet" href="{{ config['STATIC_URL'] }}/css/app.css"> |
1 | 9 |
</head> |
10 |
<body ng-controller="homeCtrl" ng-app="mons" ng-cloak> |
|
11 |
<div class="container"> |
|
12 |
<div class="row"> |
|
13 |
<div class="col-md-12"> |
|
14 |
<form role="form"> |
|
15 |
<input class="form-control" placeholder="Nom d'utilisateur" ng-model="username"/> |
|
16 |
</form> |
|
17 |
</div> |
|
18 |
</div> |
|
107 | 19 |
<form role="form"> |
1 | 20 |
<div class="row"> |
21 |
<div class="col-md-12"> |
|
107 | 22 |
<autocomplete ng-model="catLabel" data="allCatLabels" attr-input-class="form-control" attr-placeholder="Catégories..." ></autocomplete> |
1 | 23 |
</div> |
24 |
</div> |
|
107 | 25 |
<div class="row"> |
26 |
<div class="col-md-12"> |
|
27 |
<textarea ng-model="catText" class="form-control" placeholder="Texte..." rows="2"></textarea> |
|
28 |
</div> |
|
29 |
</div> |
|
30 |
</form> |
|
1 | 31 |
<div class="row mons-content"> |
11 | 32 |
<div class="mons-button hand return" ng-style="returnVisStyle" ng-click="selectLevel()" ng-init="returnVisStyle={visibility:'hidden'}"> |
1 | 33 |
<div class="content"> |
34 |
<div class="table"> |
|
35 |
<div class="table-cell"> |
|
36 |
<p class="large-cat">RETOUR</p> |
|
37 |
</div> |
|
38 |
</div> |
|
39 |
</div> |
|
40 |
</div> |
|
107 | 41 |
<div class="mons-button hand send" id="sendButton" ng-click="sendFreeAnnotation(catLabel, catText)" ng-class="{'success-border':sendBtnSuccess, 'error-border':sendBtnError}"> |
1 | 42 |
<div class="content"> |
43 |
<div class="table"> |
|
44 |
<div class="table-cell"> |
|
45 |
<p class="large-cat">ENVOYER</p> |
|
8 | 46 |
<p class="normal-cat">la catégorie saisie</p> |
1 | 47 |
</div> |
48 |
</div> |
|
49 |
</div> |
|
50 |
</div> |
|
51 |
</div> |
|
52 |
<div class="mons-content"> |
|
53 |
<div ng-show="!selectedlevel"> |
|
13
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
11
diff
changeset
|
54 |
<div class="mons-button hand" ng-repeat="c in data.categories" style="background-color: {{ '{{' }} c.color {{ '}}' }}" |
107 | 55 |
ng-click="selectLevel(c.label, c.code, catLabel, catText, c.color, c)" ng-class="{'success-border':c.sendSuccess, 'error-border':c.sendError}"> |
1 | 56 |
<div class="content"> |
57 |
<div class="table"> |
|
58 |
<div class="table-cell"> |
|
4
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
59 |
<p class="large-cat">{{ '{{' }} c.label {{ '}}' }}</p> |
48
a7abfcfd7959
real time with piano roll and new category management
cavaliet
parents:
42
diff
changeset
|
60 |
<p class="normal-cat">{{ '{{' }} c.prelabel {{ '}}' }}</p> |
1 | 61 |
</div> |
62 |
</div> |
|
63 |
</div> |
|
4
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
64 |
</div> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
65 |
</div> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
66 |
<div ng-show="selectedlevel"> |
13
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
11
diff
changeset
|
67 |
<div class="mons-button hand" ng-repeat="c in selectedlevel" style="background-color: {{ '{{' }} c.color {{ '}}' }}" |
107 | 68 |
ng-click="sendAnnotation({% raw %} (c.prelabel !== '') ? (c.prelabel + ': ' + c.label) : c.label {% endraw %}, c.code, catLabel, catText, c.color, c)" ng-class="{'success-border':c.sendSuccess, 'error-border':c.sendError}"> |
4
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
69 |
<div class="content"> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
70 |
<div class="table"> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
71 |
<div class="table-cell"> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
72 |
<p class="large-cat">{{ '{{' }} c.label {{ '}}' }}</p> |
48
a7abfcfd7959
real time with piano roll and new category management
cavaliet
parents:
42
diff
changeset
|
73 |
<p class="normal-cat">{{ '{{' }} c.prelabel {{ '}}' }}</p> |
4
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
74 |
</div> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
75 |
</div> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
76 |
</div> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
77 |
</div> |
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
78 |
</div> |
1 | 79 |
</div> |
80 |
<footer> |
|
6 | 81 |
{% if logging %}<div class="row"> |
5
90a7c431b979
first step of working annotation real annotation client
cavaliet
parents:
4
diff
changeset
|
82 |
<pre id="log" style="height: 20em; overflow-y: scroll; background-color: #faa; text-align: left;"></pre> |
6 | 83 |
</div>{% endif %} |
1 | 84 |
<div class="row"> |
85 |
<div class="col-md-12 text-center"> |
|
86 |
mons vBeta - ©IRI-2014 |
|
87 |
</div> |
|
88 |
</div> |
|
89 |
</footer> |
|
9 | 90 |
<div class="row messages"> |
91 |
<div class="alert" ng-class="{'alert-success':showSuccessAlert, 'alert-danger':!showSuccessAlert}" role="alert" ng-show="showAlertDiv">{{ '{{' }} alertMessage {{ '}}' }}</div> |
|
92 |
</div> |
|
1 | 93 |
</div> |
13
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
11
diff
changeset
|
94 |
<script type="text/javascript" src="{{ config['STATIC_URL'] }}/js/lib.js"></script> |
4
9c70d81e9062
update gulpfile for template to work with twistd/flask
cavaliet
parents:
1
diff
changeset
|
95 |
<!--script type="text/javascript" src="{{ pre_static_path }}static/js/templates.js"></script--> |
13
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
11
diff
changeset
|
96 |
<script type="text/javascript" src="{{ config['STATIC_URL'] }}/js/app.js"></script> |
1 | 97 |
<script type="text/javascript"> |
5
90a7c431b979
first step of working annotation real annotation client
cavaliet
parents:
4
diff
changeset
|
98 |
angular.module("mons") |
90a7c431b979
first step of working annotation real annotation client
cavaliet
parents:
4
diff
changeset
|
99 |
.value('context', { |
6 | 100 |
{% if logging %}logging: true,{% endif %} |
5
90a7c431b979
first step of working annotation real annotation client
cavaliet
parents:
4
diff
changeset
|
101 |
urls: { |
13
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
11
diff
changeset
|
102 |
dataUrl: "{{ config['STATIC_URL'] }}/data/categories.json" |
42
926f0426ce78
add event + event session + admin + category json management. Must rebuild database
ymh <ymh.work@gmail.com>
parents:
36
diff
changeset
|
103 |
}, |
926f0426ce78
add event + event session + admin + category json management. Must rebuild database
ymh <ymh.work@gmail.com>
parents:
36
diff
changeset
|
104 |
categories_json: '{% if categories_json %}{{categories_json}}{% endif %}', |
926f0426ce78
add event + event session + admin + category json management. Must rebuild database
ymh <ymh.work@gmail.com>
parents:
36
diff
changeset
|
105 |
{% if event_code %}event_code: "{{event_code}}",{% endif %} |
5
90a7c431b979
first step of working annotation real annotation client
cavaliet
parents:
4
diff
changeset
|
106 |
}); |
1 | 107 |
</script> |
108 |
</body> |
|
109 |
</html> |