<dtml-if add>
do your adding thing
<dtml-elif modify>
do your modifying thing
<dtml-elif delete>
do your deleting thing
<dtml-else>
do your 'Whoa! something ain't right here' thing
</dtml-if>
----- Original Message -----
From: ethan mindlace fremen <[EMAIL PROTECTED]>
To: Robert Del Huerto <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 2:42 PM
Subject: Re: [Zope] detail record editing
Robert Del Huerto wrote:
> +---+---------------+---------+------------+
> | |Doe |Jane |$100.00 |
> +---+---------------+---------+------------+
> | X |Doe |John |$250.00 |
> +---+---------------+---------+------------+
> | |Haggis |Meister |$100.00 |
> +---+---------------+---------+------------+
> | |Zoper |Doper |$723.00 |
> +---+---------------+---------+------------+
> | +----------+ +----------+ +----------+ |
> | | ADD | | MODIFY | | DELETE | |
> | +----------+ +----------+ +----------+ |
> +------------------------------------------+
You can have as many action="submit"'s as you want.
Untested:
<input type="submit" name="add" value="1">
<input type="submit" name="modify" value="1">
<input type="submit" name="delete" value="1">
The form only submits the value of "successfull" form items, so, on your
form's action method:
<dtml-if add>
do your adding thing
<dtml-else>
<dtml-if modify>
do your modifying thing
<dtml-else>
do your deleting thing
</dtml-if>
</dtml-if>
~ethan @ digicool
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )