1
#extends prewikka.templates.ClassicLayout
4
#set global $section_cnt = 0
5
#set global $row_classes = ("table_row_even", "table_row_odd")
6
#set global $entry_value_classes = ("section_alert_entry_value_normal", "section_alert_entry_value_emphasis")
8
#def display_table($section, $depth)
11
#for table in $section.tables
13
#if $depth == 0 and $table_cnt > 0 and $table.style.find("inline") == -1
18
<table class="$table.class $row_classes[$table_cnt % 2]" style="$table.style">
20
<table class="$table.class" style="$table.style">
25
#for row in $table.rows
26
<tr class="$row_class" style="">
30
#set $row_class="table_row_even"
32
<td>$display_table($col, $depth + 1)</td>
35
<td class="$col.class">$col.name</td>
45
#def display_node($sections)
46
#for $section in $sections
47
<fieldset class="fieldset_heading">
48
#set name = "section_" + $str($section_cnt) + ".id"
49
<legend><a href="#" onclick="javascript:toggleVisibility('$name'); return false;">$section.title</a></legend>
51
<div id="$name" style="display: $section.display; width: 100%;">
52
$display_table($section, 0)
55
<table class="section_alert_entries">
58
#for $entry in $section.entries
61
<tr class="section_alert_entry $row_classes[$cnt % 2]">
63
<th style="text-align: left; width:150px;">$entry.name</th>
65
<td class="$entry_value_classes[$entry.emphase]">$entry.value</td>
73
#set global $section_cnt += 1
76
$display_node($section.sections)
85
<div id="fieldset_page">
86
$display_node($sections)
89
#end block main_content