-
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 a text_attrs Param to PostlabeledInputField (please check the a…
…pplicable Genshi template for errors - I don't know if py:attrs erases other attributes). Also added PostlabeledCheckBox, which is just a double inheritance with a pass.
- Loading branch information
Showing
4 changed files
with
9 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<input xmlns:py="http://genshi.edgewall.org/" py:attrs="w.attrs"/> <label for='${w.compound_id}'>$w.text</label> | ||
<input xmlns:py="http://genshi.edgewall.org/" py:attrs="w.attrs"/> <label for='${w.compound_id}' py:attrs="w.text_attrs">$w.text</label> |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<%namespace name="tw" module="tw2.core.mako_util"/>\ | ||
<input ${tw.attrs(attrs=w.attrs)}/> <label for='${w.compound_id}'>${w.text}</label> | ||
<input ${tw.attrs(attrs=w.attrs)}/> <label for='${w.compound_id}' ${tw.attrs(attrs=w.text_attrs)}>${w.text}</label> |
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