Skip to content

Commit

Permalink
feat(widgets): Adding a hidden widget for textline
Browse files Browse the repository at this point in the history
  • Loading branch information
do3cc committed Nov 6, 2013
1 parent bc7902a commit a8ff445
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -6,6 +6,7 @@ CHANGES
------------------

- Added a consistent id on ordered selection widget.
- Added a hidden template for the textlines widget.


3.0.5 (2013-10-09)
Expand Down
8 changes: 8 additions & 0 deletions src/z3c/form/browser/textlines.zcml
Expand Up @@ -26,4 +26,12 @@
template="textlines_input.pt"
/>

<z3c:widgetTemplate
mode="hidden"
widget="z3c.form.interfaces.ITextLinesWidget"
layer="z3c.form.interfaces.IFormLayer"
template="textlines_hidden.pt"
/>


</configure>
13 changes: 13 additions & 0 deletions src/z3c/form/browser/textlines_hidden.pt
@@ -0,0 +1,13 @@
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://xml.zope.org/namespaces/tal"
tal:omit-tag="">
<input id="" name="" value="" class="hidden-widget" title=""
tabindex="" accesskey=""
type="hidden"
tal:attributes="id view/id;
name view/name;
title view/title;
tabindex view/tabindex;
accesskey view/accesskey;
value view/value" />
</div>

0 comments on commit a8ff445

Please sign in to comment.