[Zope] detail record editing
Jim Sanford
jsanford@atinucleus.com
Tue, 6 Jun 2000 16:37:39 -0500
<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 <mindlace@digicool.com>
To: Robert Del Huerto <rdh@surfus.net>; <zope@zope.org>
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 - Zope@zope.org
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 )