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