UI: clarify DB list

grouping of time/audio into an "event" improved
This commit is contained in:
boyska 2016-09-09 11:01:47 +02:00
parent 9ae3185ade
commit 284a3fa029
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9
2 changed files with 9 additions and 4 deletions

View file

@ -3,6 +3,10 @@
{{super()}}
<link href="https://code.jquery.com/ui/1.11.3/themes/ui-lightness/jquery-ui.css"
rel="stylesheet" media="screen">
<style>
.event.row h3 { text-align: center; }
.event.row { border-top: 1px dotted black; }
</style>
{%endblock%}
{%block scripts%}
{{super()}}

View file

@ -18,15 +18,16 @@ $(function() {
<div class="container-fluid">
{% for e, actions in events %}
<div class="event row">
<h2>Event {{e.eid}} <small>{{e.nick if 'nick'}}</small> </h2>
<div class="col-md-8">
<h2>Event {{e.eid}} <small>{{e.nick if 'nick'}}</small>
</h2>
<a class="button" href="{{url_for('db.edit_event', alarmid=e.eid)}}">Edit</a>
<h3>Time</h3>
{{dict_table(e, ['nick', 'actions'])}}
</div>
<div class="actions col-md-4">
<h3>Actions</h3>
<h3>Audio</h3>
<a class="button" href="{{url_for('db.edit_event', alarmid=e.eid)}}">
Change audio for this event</a>
<ol>
{% for a in actions %}
<li>