-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added separated checkbox and radio button tables. These are truly tab…
…les, inputs separated from labels, unlike CheckBoxTable and RadioButtonTable, which are just tables with label-input pairs together in each cell.
- Loading branch information
Showing
6 changed files
with
38 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<table xmlns:py="http://genshi.edgewall.org/" py:attrs="w.attrs"> | ||
<tr py:for="attrs, desc in w.options"> | ||
<td><input py:attrs="attrs" /></td> | ||
<td><label for="${attrs['id']}" py:content="desc" /></td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<%namespace name="tw" module="tw2.core.mako_util"/>\ | ||
<table ${tw.attrs(attrs=w.attrs)}> | ||
%for attrs, desc in w.options: | ||
<tr> | ||
<td><input ${tw.attrs(attrs=attrs)}/></td> | ||
<td><label for="${attrs['id']}">${desc}</label></td> | ||
</tr> | ||
%endfor | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters