-
Notifications
You must be signed in to change notification settings - Fork 0
/
hybrisPoll.html
204 lines (163 loc) · 5.92 KB
/
hybrisPoll.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<head>
<title>hybrisPoll</title>
<meta name="viewport" content="with=device-width, initial-scale=1">
</head>
<body>
</body>
<template name="layout">
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
{{> yield 'header'}}
<div class="inner">
{{> yield}}
</div>
{{> yield 'footer'}}
</div>
</div>
</div>
</template>
<template name="404">
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
{{> yield 'header'}}
<h1 class="cover-heading">404</h1>
Sorry, no pages was found.
{{> yield 'footer'}}
</div>
</div>
</div>
</template>
<template name="header">
<div class="inner">
<h3 class="masthead-brand">Indicateur Performance Hybris</h3>
</div>
</template>
<template name="footer">
<div class="inner">
<p>Indicateur Performance Hybris
<a href="mailto:dpinos@vente-privee.com">dpinos@vente-privee.com</a>
</p>
</div>
</template>
<template name="home">
En tant qu'ambassadrices et key-users hybris, vous êtes les mieux placées pour me remonter l'état de l'application. Sur une échelle de 1 à 5 (le chiffre 1 correspond à "non satisfaisant", le chiffre 5 à "trés satisfaisant"), quelle note donneriez vous à la performance des écrans hybris ?
<!-- <br>
<br>
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myPoll">
Je veux saisir mes notes pour la 1e fois
</button>
<br>
<br>
ou -->
<br>
<br>
<div class="input-group input-group-lg">
<span class="input-group-addon">Je saisis mon email</span>
<input type="text" width="200" id="myEmail" class="form-control" placeholder="email">
<span class="input-group-btn">
<button class="btn btn-primary" id="action"> Saisir ou modifier mes notes</button>
</span>
{{>pollCreate}}
{{>pollUpdate}}
</div>
</template>
<template name="pollCreate">
<div class="modal fade" id="pollCreate" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="background-color:#333">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Fermer</span></button>
</div>
{{#autoForm collection="Polls" id="insertPollForm" type="insert"}}
<div class="modal-body">
<fieldset>
<input type="hidden" data-schema-key="email" id="createEmail" class="form-control">
{{> afQuickField name='ecranV' options="allowed" noselect="true"}}
{{> afQuickField name='ecranP' options="allowed" noselect="true"}}
{{> afQuickField name='ecranU' options="allowed" noselect="true"}}
{{> afQuickField name='ecranF' options="allowed" noselect="true"}}
{{> afQuickField name='preview' options="allowed" noselect="true"}}
{{> afQuickField name='commentaire' rows="6"}}
</fieldset>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
<button type="submit" class="btn btn-primary" data-toggle="modal" data-target="#pollCreate">Enregistrer</button>
</div>
{{/autoForm}}
</div>
</div>
</div>
</template>
<template name="pollUpdate">
<div class="modal fade" id="pollUpdate" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="background-color:#333">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Fermer</span></button>
</div>
{{#autoForm collection="Polls" id="updatePollForm" type="update" doc=editingDoc}}
<div class="modal-body">
<fieldset>
{{> afQuickField name='email'}}
{{> afQuickField name='ecranV' options="allowed" noselect="true"}}
{{> afQuickField name='ecranP' options="allowed" noselect="true"}}
{{> afQuickField name='ecranU' options="allowed" noselect="true"}}
{{> afQuickField name='ecranF' options="allowed" noselect="true"}}
{{> afQuickField name='preview' options="allowed" noselect="true"}}
{{> afQuickField name='commentaire' rows="6"}}
</fieldset>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
<button type="submit" class="btn btn-primary" data-toggle="modal" data-target="#pollUpdate">Enregistrer</button>
</div>
{{/autoForm}}
</div>
</div>
</div>
</template>
<!--
<template name="update">
{{#autoForm collection="Polls" id="updatePollForm" type="update" doc=editingDoc}}
<fieldset>
<legend></legend>
{{> afQuickField name='email'}}
{{> afQuickField name='ecranV' options="allowed" noselect="true"}}
{{> afQuickField name='ecranP' options="allowed" noselect="true"}}
{{> afQuickField name='ecranU' options="allowed" noselect="true"}}
{{> afQuickField name='ecranF' options="allowed" noselect="true"}}
{{> afQuickField name='preview' options="allowed" noselect="true"}}
{{> afQuickField name='commentaire' rows="6"}}
</fieldset>
<button type="submit" id="update" class="btn btn-primary">Enregistrer</button>
{{/autoForm}}
</template> -->
<template name="viewAll">
<table class="table">
<tr>
<td>#</td>
<td>email</td>
<td>V</td>
<td>P</td>
<td>U</td>
<td>F</td>
<td>Preview</td>
<td>Commentaires</td>
</tr>
{{#each val}}
<tr>
<td>{{_id}}</td>
<td>{{email}}</td>
<td>{{ecranV}}</td>
<td>{{ecranP}}</td>
<td>{{ecranU}}</td>
<td>{{ecranF}}</td>
<td>{{preview}}</td>
<td>{{commentaire}}</td>
</tr>
{{/each}}
</table>
</template>