-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-note.html.twig
executable file
·102 lines (91 loc) · 2.78 KB
/
test-note.html.twig
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
{% extends "base.html" %}
{% block title %}Test Note{% endblock %}
{% block content %}
<h4>Test Note Feature</h4>
{% if msg %}
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>Whoops!</strong> {{ msg }}.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
{% elseif cupboard %}
<div class="dropdown">
<a class="btn btn-outline-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Cupboard {{ cupboard }}
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="?cupboard=1">
Cupboard 1
</a>
<a class="dropdown-item" href="?cupboard=2">
Cupboard 2
</a>
<a class="dropdown-item" href="?cupboard=3">
Cupboard 3
</a>
<a class="dropdown-item" href="?cupboard=4">
Cupboard 4
</a>
<a class="dropdown-item" href="?cupboard=5">
Cupboard 5
</a>
<a class="dropdown-item" href="?cupboard=6">
Cupboard 6
</a>
<a class="dropdown-item" href="?cupboard=7">
Cupboard 7
</a>
</div>
</div>
<ul class="list-group">
{% for publication in publications %}
<li class="list-group-item">
{{ publication.title }}
<span class="badge badge-light">{{ publication.symbol }}</span>
<div id="note-{{ publication.recID }}">
<p ic-src="update-note.php?recID={{ publication.recID }}" ic-trigger-on="dblclick"><small class="text-muted">{{ publication.note }}</small></p>
</div>
</li>
{% endfor %}
</ul>
{% else %}
<ul class="list-group">
<li class="list-group-item">
<a href="?cupboard=1">
Cupboard 1
</a>
</ul>
<li class="list-group-item">
<a href="?cupboard=2">
Cupboard 2
</a>
</ul>
<li class="list-group-item">
<a href="?cupboard=3">
Cupboard 3
</a>
</ul>
<li class="list-group-item">
<a href="?cupboard=4">
Cupboard 4
</a>
<li class="list-group-item">
</ul>
<a href="?cupboard=5">
Cupboard 5
</a>
<li class="list-group-item">
</ul>
<a href="?cupboard=6">
Cupboard 6
</a>
<li class="list-group-item">
</ul>
<a href="?cupboard=7">
Cupboard 7
</a>
</li>
</ul>
{% endif %}
{% endblock %}