UI: collapse better

This commit is contained in:
boyska 2017-01-19 10:54:40 +01:00
parent fb3d62670a
commit babd911284
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9

View file

@ -16,21 +16,21 @@ $(function() {
{% block content %}
<div class="container-fluid">
<button data-target=".option-table" class="btn btn-default"
<button data-target=".option-table,.event h3" class="btn btn-default"
aria-expanded="false" type="button"
data-toggle="collapse">Expand/collapse everything</button>
{% for e, actions in events %}
<div class="event row" id="event-{{e.eid}}">
<h2>Event {{e.eid}} <small>{{e.nick if 'nick'}}</small> </h2>
<div class="col-md-8">
<h3>Time</h3>
<div class="col-md-8 event-time">
<h3 class="collapse">Time</h3>
<a class="button" href="{{url_for('db.edit_time', alarmid=e.eid)}}">
Change time for this event</a>
{{dict_table(e, ['nick', 'actions'])}}
</div>
<div class="actions col-md-4">
<h3>Audio</h3>
<div class="actions col-md-4 event-audio">
<h3 class="collapse">Audio</h3>
<a class="button" href="{{url_for('db.edit_event', alarmid=e.eid)}}">
Change audios for this event</a>
<ol>