[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[4513] branches/1.3/UI
- Subject: SF.net SVN: ledger-smb:[4513] branches/1.3/UI
- From: ..hidden..
- Date: Tue, 20 Mar 2012 10:47:01 +0000
Revision: 4513
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4513&view=rev
Author: einhverfr
Date: 2012-03-20 10:47:00 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
Minor fixes to search_results.html to prevent variable collisioision. Have not added hidden variables yet there.
Added mirrored type to dynatable, where data is displayed and submitted back as hidden inputs.
Modified Paths:
--------------
branches/1.3/UI/lib/dynatable.html
branches/1.3/UI/search_results.html
Modified: branches/1.3/UI/lib/dynatable.html
===================================================================
--- branches/1.3/UI/lib/dynatable.html 2012-03-20 10:29:51 UTC (rev 4512)
+++ branches/1.3/UI/lib/dynatable.html 2012-03-20 10:47:00 UTC (rev 4513)
@@ -13,6 +13,7 @@
<?lsmb- END -?>
<tbody>
<?lsmb- ROWCOUNT = 0;
+ PFX = attributes.input_prefix;
FOREACH ROW IN tbody.rows;
ROWCOUNT = ROWCOUNT + 1 -?>
<tr class="<?lsmb ROW.html_class ?>">
@@ -24,7 +25,7 @@
<input id="<?lsmb COL.col_id ?>-<?lsmb loop.count ?>"
type="text"
class="<?lsmb COL.class ?>"
- name="<?lsmb COL.col_id ?>_<?lsmb loop.count ?>"
+ name="<?lsmb PFX _ COL.col_id ?>_<?lsmb loop.count ?>"
value="<?lsmb ROW.${COL.col_id} ?>"
/>
<?lsmb- ELSIF COL.type == 'checkbox';
@@ -36,14 +37,14 @@
?>
<input id="<?lsmb COL.col_id ?>-<?lsmb loop.count ?>"
type="checkbox"
- name="<?lsmb COL.col_id ?>_<?lsmb loop.count ?>"
+ name="<?lsmb PFX _ COL.col_id ?>_<?lsmb loop.count ?>"
class="<?lsmb COL.class ?>"
value="<?lsmb ROW.row_id ?>"
<?lsmb CHECKED ?> />
<?lsmb- ELSIF COL.type == 'radio' ?>
<input id="<?lsmb COL.col_id ?>-<?lsmb loop.count ?>"
type="radio"
- name="<?lsmb COL.col_id ?>"
+ name="<?lsmb PFX _ COL.col_id ?>"
class="<?lsmb COL.class ?>"
value="<?lsmb ROW.row_id ?>"
<?lsmb CHECKED ?> />
@@ -55,6 +56,12 @@
HREF = COL.href_base _ ROW.row_id;
END
?><a href="<?lsmb HREF ?>"><?lsmb ROW.${COL.col_id} ?></a>
+ <?lsmb ELSIF COL.type == 'mirrored';
+ NAME = PFX _ ROW.${COL.col_id} _ '_' _ ROWCOUNT;
+ ROW.${COL.col_id} ?>
+ <input type="hidden"
+ name="<?lsmb NAME ?>"
+ value ="<?lsmb ROW.${COL.col_id} ?>" />
<?lsmb- ELSE -?>
<?lsmb ROW.${COL.col_id} ?>
<?lsmb- END -?>
@@ -87,7 +94,7 @@
<input id="<?lsmb COL.col_id ?>-<?lsmb loop.count ?>"
type="text"
class="<?lsmb COL.class ?>"
- name="<?lsmb COL.col_id ?>_<?lsmb loop.count ?>"
+ name="<?lsmb PFX _ COL.col_id ?>_<?lsmb loop.count ?>"
value="<?lsmb ROW.${COL.col_id} ?>"
/>
<?lsmb- ELSIF TYPE == 'checkbox';
@@ -99,14 +106,14 @@
?>
<input id="<?lsmb COL.col_id ?>-<?lsmb loop.count ?>"
type="checkbox"
- name="<?lsmb COL.col_id ?>_<?lsmb loop.count ?>"
+ name="<?lsmb PFX _ COL.col_id ?>_<?lsmb loop.count ?>"
class="<?lsmb COL.class ?>"
value="<?lsmb ROW.row_id ?>"
<?lsmb CHECKED ?> />
<?lsmb- ELSIF TYPE == 'radio' ?>
<input id="<?lsmb COL.col_id ?>-<?lsmb loop.count ?>"
type="radio"
- name="<?lsmb COL.col_id ?>"
+ name="<?lsmb PFX _ COL.col_id ?>"
class="<?lsmb COL.class ?>"
value="<?lsmb ROW.row_id ?>"
<?lsmb CHECKED ?> />
@@ -118,6 +125,12 @@
HREF = COL.href_base _ ROW.row_id;
END
?><a href="<?lsmb HREF ?>"><?lsmb ROW.${COL.col_id} ?></a>
+ <?lsmb ELSIF TYPE == 'mirrored';
+ NAME = PFX _ ROW.${COL.col_id} _ '_' _ ROWCOUNT;
+ ROW.${COL.col_id} ?>
+ <input type="hidden"
+ name="<?lsmb NAME ?>"
+ value ="<?lsmb ROW.${COL.col_id} ?>" />
<?lsmb- ELSE -?>
<?lsmb ROW.${COL.col_id} ?>
<?lsmb- END -?>
Modified: branches/1.3/UI/search_results.html
===================================================================
--- branches/1.3/UI/search_results.html 2012-03-20 10:29:51 UTC (rev 4512)
+++ branches/1.3/UI/search_results.html 2012-03-20 10:47:00 UTC (rev 4513)
@@ -20,7 +20,13 @@
<form name="search" action="<?lsmb script ?>" method="post">
<?lsmb-
-PROCESS dynatable tbody = { rows = rows };
+PROCESS dynatable
+ attributes = {
+ class = 'search'
+ id = 'search'
+ input_prefix = 'search_'
+ }
+ tbody = { rows = rows };
PROCESS button element_data = {
name = 'action'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.