Is there anyway to output forms fields without the table structure?
Right now when I do this:
<snipping leading template stuff>
${h.field(
"Document Title",
h.text(name='title'),
required=True
)}
${h.field(
"Department",
h.text(name='department'),
required=True
)}
<snip>
I get:
<td class="label" valign="top"><span class="required">*</
span><label>Document Title:</label></td>
<td class="field" colspan="2" valign="top"><input id="title"
name="title" type="text" /></td>
</tr>
<tr class="field">
<td class="label" valign="top"><span class="required">*</
span><label>Department:</label></td>
<td class="field" colspan="2" valign="top"><input id="department"
name="department" type="text" /></td>
</tr>
I'd rather have something like this:
<label><span class="required">*</span>Document Title:</label><input
id="title" name="title" type="text" />
<label><span class="required">*</span>Department:</label><input
id="department" name="department" type="text" />
I looked at the webhelper docs at http://pylonshq.com/WebHelpers/ but
they seem really out of date.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---