UI: collapse better
This commit is contained in:
parent
fb3d62670a
commit
babd911284
1 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue