Try this, I assume omit takes an argument.
<form tal:omit=”isAdmin”>
        <h1 tal:content=”thisTitle”>The Title</h1>
        <input type=”text” name=”field” tal:attributes=”value field” />
</form>

Richard Standbrook
---
Senior Web Services Developer
[EMAIL PROTECTED]

Registration no: 03160139
Litton House, Saville Road, Westwood, Peterborough, England, PE3 7PR

NOTICE: The information contained in this email and any attachments is
confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or
of any attachment; you are requested to notify the sender immediately of
your receipt of the email and then to delete it and any attachments from
your system.




On 29 Feb 2008, at 10:21, Nick Pack wrote:

For my current project, I have the need to display a form tag around some elements if a condition is met, but maintaining the contents of the element regardless of the condition. For example:

<form tal:condition=”isAdmin”>
<h1 tal:content=”thisTitle”>The Title</h1>
<input type=”text” name=”field” tal:attributes=”value field” />
</form>

Is there a way that I can specify a parameter so that the elements inside the form can still be shown but omit the form tag, so that if condition isAdmin is not met, the above output will display as:

<h1 tal:content=”thisTitle”>The Title</h1>
<input type=”text” name=”field” tal:attributes=”value field” />

Thanks in advance.
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to