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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
|
{% extends 'layout.twig' %}
{% set title %}Matomo UI demo{% endset %}
{% block head %}
{{ parent() }}
<style>
.grid-demo .row {
font-size: 13px;
margin-bottom: 15px;
}
.grid-demo [class^=col-] {
padding-top: 10px;
padding-bottom: 10px;
background-color: #eee;
border: 1px solid #ddd;
}
.demo {
margin: 0 0 15px 0;
background-color: #fff;
border: solid 1px #ddd;
border-radius: 4px 4px 0 0;
padding: 25px;
}
.demo-code {
padding: 9px 14px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
margin: -16px 0 15px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
.demo-code pre {
color: inherit;
font-size: 14px;
padding: 0;
background-color: transparent;
margin: 0;
}
.demo .div-block {
max-width: 400px;
margin-right: auto;
margin-left: auto;
min-height: 20px;
padding: 19px;
background-color: #f5f5f5;
border: 1px solid #e3e3e3;
border-radius: 4px;
}
.demo .form-group > h3 {
margin-top: 0;
}
.demo-code + .demo {
margin: -16px 0;
}
.icons h4 {
padding-top: 15px;
padding-bottom: 10px;
}
.icons .icon {
font-family: monospace, monospace;
padding-top: 5px;
padding-bottom: 5px;
}
</style>
{% endblock %}
{% block root %}
<div class="container">
<h1>{{ title }}</h1>
<p>
This page is intended to show all the UI components and styles available to use in Matomo.
</p>
<h2>Grid system</h2>
<p>
Materialize's grid system allows to organize the content in columns, all the while staying responsive for smaller screens.
</p>
<div class="grid-demo">
<div class="row">
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
<div class="col m1">.col m1</div>
</div>
<div class="row">
<div class="col s8">.col m8</div>
<div class="col m4">.col m4</div>
</div>
<div class="row">
<div class="col m4">.col m4</div>
<div class="col m4">.col m4</div>
<div class="col m4">.col m4</div>
</div>
<div class="row">
<div class="col m6">.col m6</div>
<div class="col m6">.col m6</div>
</div>
</div>
<p>
Read more about <a href="http://materializecss.com/grid.html">Materialize's grid system</a>.
</p>
<h2>Typography</h2>
<div class="demo">
<h1>h1. heading</h1>
<h2>h2. heading</h2>
<h3>h3. heading</h3>
<h4>h4. heading</h4>
<h5>h5. heading</h5>
<h6>h6. heading</h6>
<p>
This is a paragraph, and <a href="#">this is a link</a>.
</p>
<p>
Another paragraph, lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</p>
</div>
<h3>Alignment classes</h3>
<div class="demo">
<p class="left">Left aligned block.</p>
<p class="center">Center aligned block.</p>
<p class="right">Right aligned block.</p>
</div>
<div class="demo-code">
<pre><p class="left">Left aligned block.</p>
<p class="center">Center aligned block.</p>
<p class="right">Right aligned block.</p></pre>
</div>
<div class="demo">
<p class="left-align">Left aligned text.</p>
<p class="center-align">Center aligned text.</p>
<p class="right-align">Right aligned text.</p>
</div>
<div class="demo-code">
<pre><p class="left-align">Left aligned text.</p>
<p class="center-align">Center aligned text.</p>
<p class="right-align">Right aligned text.</p></pre>
</div>
<h3>Lists</h3>
<div class="demo">
<ul>
<li>First item</li>
<li>Second item</li>
</ul>
</div>
<div class="demo-code">
<pre><ul>
<li>...</li>
</ul></pre>
</div>
<h2>Buttons</h2>
<div class="demo">
<a class="btn" href="#">Link</a>
<input type="button" class="btn" value="Input">
<input type="submit" class="btn" value="Submit">
</div>
<div class="demo-code">
<pre><a class="btn" href="#">Link</a>
<input type="button" class="btn" value="Input">
<input type="submit" class="brn" value="Submit"></pre>
</div>
<div class="demo">
<button class="btn btn-large">Large button</button>
<a class="btn btn-large" href="#">Large button</a>
</div>
<div class="demo-code">
<pre><button class="btn btn-large">Large button</button>
<a class="btn btn-large" href="#">Large button</a></pre>
</div>
<div class="demo">
<div class="div-block">
<a class="btn btn-block" href="#">Block button</a>
<a class="btn btn-large btn-block" href="#">Large block button</a>
</div>
</div>
<div class="demo-code">
<pre><a class="btn btn-block" href="#">Block button</a>
<a class="btn btn-large btn-block" href="#">Large block button</a></pre>
</div>
<h3>Flat buttons</h3>
<div class="demo">
<a class="btn-flat" href="#">Flat button</a>
<a class="btn-flat" href="#"><span class="icon-add"></span></a>
<a class="btn-flat btn-large" href="#">Flat button</a>
<a class="btn-flat btn-large" href="#"><span class="icon-add"></span></a>
</div>
<div class="demo-code">
<pre><a class="btn-flat" href="#">Flat button</a>
<a class="btn-flat" href="#"><span class="icon-add"></span></a>
<a class="btn-flat btn-large" href="#">Flat button</a>
<a class="btn-flat btn-large" href="#"><span class="icon-add"></span></a></pre>
</div>
<h2>Loading indicator</h2>
<div class="demo">
<div piwik-activity-indicator loading="true"></div>
</div>
<div class="demo-code">
<pre><div piwik-activity-indicator loading="true"></div></pre>
</div>
<p>
This is an angular component. You can change the loading state via angular.
</p>
<h2>Progressbar</h2>
<div class="demo">
<div piwik-progressbar progress="5" label="'Downloading database'"></div>
</div>
<div class="demo-code">
<pre><div piwik-progressbar progress="5" label="Downloading database"></div></pre>
</div>
<p>
This is an angular component. Update the progress and label via angular.
</p>
<h2>Alerts</h2>
<div class="demo">
<div piwik-alert="info">
<strong>Info!</strong> This alert needs <a>your attention</a>, but it's not super important.
</div>
<div piwik-alert="success">
<strong>Success!</strong> You successfully read this important <a>alert message</a>.
</div>
<div piwik-alert="warning">
<strong>Warning!</strong> Better <a>check</a> yourself, you're not looking too good.
</div>
<div piwik-alert="danger">
<strong>Error!</strong> Change <a>a few things</a> up and try submitting again.
</div>
</div>
<div class="demo-code">
<pre><div piwik-alert="info">
<strong>Info!</strong> This alert needs <a>your attention</a>, but it's not super important.
</div>
<div piwik-alert="success">
<strong>Success!</strong> You successfully read this important <a>alert message</a>.
</div>
<div piwik-alert="warning">
<strong>Warning!</strong> Better <a>check</a> yourself, you're not looking too good.
</div>
<div piwik-alert="danger">
<strong>Error!</strong> Change <a>a few things</a> up and try submitting again.
</div></pre>
</div>
<h2>Forms</h2>
<h3>Simple form</h3>
{% set inputElements%}
<div piwik-field uicontrol="text" name="username"
data-title="Username"
introduction="This is an introduction. It can be used to group form fields"
placeholder="Some text here">
</div>
<div piwik-field uicontrol="email" name="email"
data-title="Email"
inline-help="This is the inline help which provides more information.">
</div>
<div piwik-field uicontrol="text" name="textWithoutPlaceholder"
data-title="This field has a title but no place holder">
</div>
<div piwik-field uicontrol="text" name="textWithoutTitle"
data-title="This field has a place holder but no title">
</div>
<div piwik-field uicontrol="text" name="textWithValue"
value="My value"
data-title="This field has already a value set">
</div>
<div piwik-field uicontrol="password" name="password"
data-title="Password"
placeholder="Enter your password here">
</div>
<div id="complexHelpText" class="inline-help-node">
It is possible to use all kind of HTML in the help text, including <a href="javascript:;">links</a>.
</div>
<div piwik-field uicontrol="text" name="alias"
data-title="Disabeld text field"
data-disabled="true"
placeholder="This value cannot be changed"
inline-help="#complexHelpText">
</div>
<div piwik-field uicontrol="text" name="fullWidthText"
data-title="Form fields can be made full witdth"
full-width="true"
placeholder="Some text here...">
</div>
<div piwik-field uicontrol="url" name="urlText" data-title="URL" inline-help="URL field">
</div>
<div piwik-field uicontrol="textarea" name="description"
data-title="Description"
inline-help="This is a textarea. It automatically gets larger the more text is entered.">
</div>
<div piwik-field uicontrol="select" name="language"
data-title="Language"
introduction="Select fields"
value="1"
inline-help="Single select"
options='{1: "English",2:"Spanish"}'>
</div>
<div piwik-field uicontrol="multiselect" name="phonenumbers"
data-title="Phone numbers"
value="["1"]"
inline-help="Multi select"
options='{1: "0123456789",2:"9876543210",3:"5432109876"}'>
</div>
<div piwik-field uicontrol="expandable-select" name="selectexpand"
data-title="{{ "{{ view.selectedExpand ? view.selectedExpand : 'Select word' }}"|raw }}"
value="Select value"
inline-help="Expandable select"
ng-model="view.selectedExpand"
options='[{group: "Group 1",key:"1",value:"Hello"}, {group: "Group 1",key:"2",value:"How",tooltip: "Help text"}, {group: "Group 1",key:"3",value:"Are"}, {group: "Group 2",key:"4",value:"You"}]'>
</div>
<div piwik-field uicontrol="multituple" name="multitupletext"
data-title="Multiple values (two)"
value="[]"
inline-help="Multi Tuple text and text"
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"text","availableValues":null},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multitupletextvalue"
data-title="Multiple values with values (two)"
value='[{"index": "test", "value":"myfoo"},{"index": "test 2", "value":"myfoo 2"}]'
inline-help="Multi Tuple again."
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"text","availableValues":null},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multitupleselect"
data-title="Multiple values with select (two)"
value='[{"index": "test", "value": "myfoo"}]'
inline-help="Multi Tuple select and text"
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"select","availableValues":{"test":"test"}},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multitupletext"
data-title="Multiple values (three)"
value="[]"
inline-help="Multi Tuple text and text"
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"text","availableValues":null},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null},"field3":{"key":"value2","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multitupletextvalue"
data-title="Multiple values with values (three)"
value='[{"index": "test", "value":"myfoo"},{"index": "test 2", "value":"myfoo 2"}]'
inline-help="Multi Tuple again."
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"text","availableValues":null},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null},"field3":{"key":"value2","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multitupleselect"
data-title="Multiple values with select (three)"
value='[{"index": "test", "value": "myfoo"}]'
inline-help="Multi Tuple select and text"
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"select","availableValues":{"test":"test"}},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null},"field3":{"key":"value2","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multitupletext"
data-title="Multiple values (four)"
value="[]"
inline-help="Multi Tuple text and text"
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"text","availableValues":null},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null},"field3":{"key":"value2","title":"Value","uiControl":"text","availableValues":null},"field4":{"key":"value3","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multitupletextvalue"
data-title="Multiple values with values (four)"
value='[{"index": "test", "value":"myfoo"},{"index": "test 2", "value":"myfoo 2"}]'
inline-help="Multi Tuple again."
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"text","availableValues":null},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null},"field3":{"key":"value2","title":"Value","uiControl":"text","availableValues":null},"field4":{"key":"value3","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multitupleselect"
data-title="Multiple values with select (four)"
value='[{"index": "test", "value": "myfoo"}]'
inline-help="Multi Tuple select and text"
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"select","availableValues":{"test":"test"}},"field2":{"key":"value","title":"Value","uiControl":"text","availableValues":null},"field3":{"key":"value2","title":"Value","uiControl":"text","availableValues":null},"field4":{"key":"value3","title":"Value","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="multituple" name="multituplesingleselect"
data-title="Multi One Select"
value='[{"index": "test", "value": "myfoo"}]'
inline-help="Multi values with one select"
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"select","availableValues":{"test":"test"}}}'>
</div>
<div piwik-field uicontrol="multituple" name="multituplesingletext"
data-title="Multi One Text"
value='[{"index": "test", "value": "myfoo"}]'
inline-help="Multi values with one text"
ui-control-attributes='{"field1":{"key":"index","title":"Index","uiControl":"text","availableValues":null}}'>
</div>
<div piwik-field uicontrol="field-array" name="text-field-array"
data-title="Text field array"
value='["text one", "text two"]'
inline-help="Multiple text inputs"
ui-control-attributes='{"field":{"title":"Index","uiControl":"text"}}'>
</div>
<div piwik-field uicontrol="field-array" name="select-field-array"
data-title="Select field array"
value='["one", "two"]'
inline-help="Multiple selects"
ui-control-attributes='{"field":{"title":"Index","uiControl":"select","availableValues":{"one":"text onw", "two":"text two", "three":"text three"}}}'>
</div>
<div piwik-field uicontrol="checkbox" name="enableFeature"
data-title="Enable feature"
introduction="Radio and checkboxes"
inline-help="This is a single checkbox">
</div>
<div piwik-field uicontrol="checkbox" name="enableFeature"
data-title="Enable feature"
var-type="array"
options='{today: "Today", yesterday: "Yesterday",week: "Previous 30 days (not including today)"}'
inline-help="This field shows multiple checkboxes as we declare we want to get an array of values.">
</div>
<div piwik-field uicontrol="radio" name="defaultReportDate"
data-title="Report to load by default"
options='{today: "Today", yesterday: "Yesterday",week: "Previous 30 days (not including today)"}'
inline-help="This is a help text that can be used to describe the field. This help text may extend over several lines.">
</div>
<div piwik-field uicontrol="site" name="currentsite"
introduction="Matomo specific form fields"
data-title="Select a website">
</div>
<div piwik-save-button></div>
<div piwik-save-button
onconfirm="myController.save()"
data-disabled="myController.isDisabled"
value="Changed button text"
saving="myController.isLoading">
</div>
{% endset %}
<div class="demo">
<p>If you do not want to use one ouf our form fields we recommend to add the class <code>browser-default</code> to the input or select element.</p>
</div>
{% for input in inputElements|split("\n\n") %}
<div class="demo">
<div piwik-form>
{{ input|raw }}
</div>
</div>
<div class="demo-code">
<pre>{{ input|e }}</pre>
</div>
{% endfor %}
<h2>Code</h2>
<h3>Inline</h3>
<div class="demo">
<p>
You can put code in a text using the <code piwik-select-on-focus>code</code> tag.
</p>
</div>
<div class="demo-code">
<pre>You can put code in a text using the <code piwik-select-on-focus>code</code> tag.</pre>
</div>
<h3>Block</h3>
<div class="demo">
<p>Or you can display a code block:</p>
<pre piwik-select-on-focus><!-- Matomo -->
<script type="text/javascript">
</script>
<!-- End Matomo Code --></pre>
</div>
<div class="demo-code">
<pre piwik-select-on-focus>...</pre>
</div>
<h2>Tables</h2>
<div class="demo">
<table>
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<div class="demo-code">
<pre><table><thead>...</thead><tbody>...</tbody></table></pre>
</div>
<h2>Content intro</h2>
<div class="demo">
<div piwik-content-intro>
<h2>My headline</h2>
<p>My text goes is in here</p>
</div>
</div>
<div class="demo-code">
<pre><div piwik-content-intro>
<h2>My headline</h2>
<p>My text goes is in here</p>
</div></pre>
</div>
<p>A content intro can be used as an introduction to the following content and is usually used as the first part of a page followed by one or multiple content blocks.</p>
<h2>Content blocks</h2>
<div class="demo">
<div piwik-content-block content-title="My title" help-url="https://matomo.org">
<p>My text goes is in here</p>
</div>
</div>
<div class="demo-code">
<pre><div piwik-content-block content-title="My title" help-url="https://matomo.org">
<p>My text goes is in here</p>
</div></pre>
</div>
<h3>Content Table</h3>
<div class="demo">
<div piwik-content-block content-title="My title" help-url="https://matomo.org">
<p>My intro text is here</p>
<table piwik-content-table>
<thead><tr><th>Column 1</th><th>Column 2</th></tr></thead>
<tbody>
<tr><td>Value 1</td><td>Value 2</td></tr>
<tr><td>Value 1</td><td>Value 2</td></tr>
</tbody>
</table>
</div>
</div>
<div class="demo-code">
<pre><div piwik-content-block content-title="My title" help-url="https://matomo.org">
<p>My intro text is here</p>
<table piwik-content-table>
<thead><tr><th>Column 1</th><th>Column 2</th></tr></thead>
<tbody>
<tr><td>Value 1</td><td>Value 2</td></tr>
<tr><td>Value 1</td><td>Value 2</td></tr>
</tbody>
</table>
</div></pre>
</div>
<h2>Icons</h2>
<div id="icons" class="demo icons">
</div>
<div class="demo-code">
<pre><span class="icon-ok"></span></pre>
</div>
<script>
$(function () {
var icons = {
'Manage': [
'add',
'edit',
'delete',
'plus',
'minus',
'archive'
],
'Alerts': [
'error',
'warning',
'info',
'info2',
'success',
'help',
'help-alt',
'ok'
],
'Navigation': [
'arrow-left',
'arrow-right',
'arrow-top',
'arrow-bottom',
'arrow-collapsed',
'zoom-in',
'zoom-out',
'show',
'hide',
'search',
'menu-hamburger',
'more-horiz',
'more-verti',
'arrowup',
'arrowdown'
],
'Window-Widget': [
'minimise',
'fullscreen',
'close',
'maximise',
'newtab',
'refresh',
'reload'
],
'Reports': [
'table',
'table-more',
'chart-bar',
'chart-pie',
'chart-line',
'chart-line-details',
'evolution',
'funnel',
'form',
'transition',
'overlay',
'lab'
],
'Users': [
'user',
'user-add',
'users',
'alien'
],
'Date-picker': [
'calendar'
],
'Annotations': [
'annotation'
],
'E-commerce': [
'ecommerce-order',
'ecommerce-abandoned-cart'
],
'Goals': [
'goal'
],
'Insights': [
'insights'
],
'Segments': [
'segment'
],
'Visitors': [
'visitor-profile',
'segmented-visits-log'
],
'Lock': [
'locked',
'locked-2',
'locked-3',
'locked-4'
],
'Other': [
'configure',
'document',
'email',
'export',
'feed',
'download',
'image',
'code',
'star',
'drop',
'business',
'finance',
'folder',
'folder-charts',
'open-source',
'puzzle',
'server',
'server-alt',
'tag-cloud',
'audio',
'play',
'pause',
'replay',
'stop',
'fast-forward',
'fast-rewind',
'skip-next',
'skip-previous',
'sign-in',
'sign-out',
'settings',
'rocket',
'bug',
'upload',
'embed'
]
};
var iconsDiv = $('#icons');
for(var category in icons) {
if (icons.hasOwnProperty(category)) {
iconsDiv.append('<h4>' + category + '</h4>');
var row = $('<div class="row"></div>');
icons[category].forEach(function(icon) {
icon = 'icon-' + icon;
row.append('<div class="col s4 icon"><span class="' + icon + '"></span> ' + icon + '</div>');
});
iconsDiv.append(row);
}
}
});
</script>
</div>
{% endblock %}
|