diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-05 15:54:35 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-05 15:54:35 +0000 |
commit | 7b68b7574abeaa9091a0d435c144d44a8399f40c (patch) | |
tree | 0e5a0ac68c0e447c260c75d3dff69c67dc850479 /UI/form-dynatable.html | |
parent | 487bf0557f2d93be1679ca571b832b1ee6e80a7a (diff) |
Convert list_history to dynatable. Looks like ct.pl is done templating
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1852 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/form-dynatable.html')
-rw-r--r-- | UI/form-dynatable.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/UI/form-dynatable.html b/UI/form-dynatable.html index 22e2b0c1..537316fa 100644 --- a/UI/form-dynatable.html +++ b/UI/form-dynatable.html @@ -39,8 +39,23 @@ <?lsmb FOREACH row IN rows ?> <?lsmb IF row.class == 'heading'; s = 'th'; c = 'listheading'; ELSIF row.class == 'subtotal'; s = 'th'; c = 'listsubtotal'; + ELSIF row.class == 'divider'; s = 'th'; c = 'listheading'; ELSE; s = 'td'; c = "listrow${row.i}"; END ?> <tr class="<?lsmb c ?>"> + <?lsmb IF row.class == 'divider' ?> + <th colspan="<?lsmb columns.size ?>"> + <?lsmb IF row.href.defined ?> + <a href="<?lsmb row.href?>"><?lsmb row.text ?></a> + <?lsmb ELSIF row.delimiter; + FOREACH l IN row.text.split(row.delimiter); l ?><br /><?lsmb END ?> + <?lsmb ELSIF row.input.defined; + PROCESS input element_data=row.input ?> + <?lsmb ELSIF row.select.defined; + PROCESS select element_data=row.select ?> + <?lsmb ELSE; row; END ?> + </th> +</tr> + <?lsmb NEXT; END ?> <?lsmb FOREACH column IN columns ?> <<?lsmb s ?> class="<?lsmb c ?>" <?lsmb IF (!row.class.defined || row.class != 'heading') && row_alignment.$column ?>align="<?lsmb row_alignment.$column ?>"<?lsmb END ?>> <?lsmb IF row.$column.href.defined ?> |