-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.html
27 lines (27 loc) · 915 Bytes
/
events.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
<h2>Timed events for {{node.title}}</h2>
<ul class="events">
{% for event in events %}
<li class="event">
<span class="mono">
{{ event.asHtml|safe }}
</span>
<ul class="weekdays">
{% for day, value in event.weekdays.items() %}
{% if value > 0 %}
<li class="weekday" title="{{day}}">{{day[:2].upper()}}</li>
{% endif %}
{% endfor %}
</ul>
<button title="Delete event" class="transparent float-right"
onclick="deleteEvent(event, {{event.id}}, '{{event.asStr}}', {{node.id}})">🗑️
</button>
</li>
{% endfor %}
</ul>
<button id="btn-add-event" class="button half-width float-left"
onclick="showPopupForm('event', false, false, '/{{node.id}}')">➕ Add event
</button>
<button class="btn-close danger button half-width float-left" type="button"
onclick="hidePopupForm()">Close
</button>
<br style="clear:both"/>