WebUI: expandable option tables
This commit is contained in:
parent
8aebeae560
commit
168312c7f5
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue