WebUI: expandable option tables

This commit is contained in:
boyska 2016-12-11 11:21:28 +01:00
parent 8aebeae560
commit 168312c7f5
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9
2 changed files with 5 additions and 1 deletions

View file

@ -49,7 +49,8 @@ $(function() {
{% endblock %} {% endblock %}
{% macro dict_table(obj, exclude_list=[]) %} {% macro dict_table(obj, exclude_list=[]) %}
<table class="table table-condensed"> <table id="details-{{obj.kind}}-{{obj.eid}}" class="table table-condensed
option-table collapse">
<thead> <thead>
<tr> <tr>
<th>Key</th> <th>Key</th>

View file

@ -16,6 +16,9 @@ $(function() {
{% block content %} {% block content %}
<div class="container-fluid"> <div class="container-fluid">
<button data-target=".option-table" class="btn btn-default"
aria-expanded="false" type="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>