Your Ad Here

Monday, January 16, 2012

Need "edit" and "delete" buttons on each line of a rendered table

Hi All,

I'm trying to render a table and have an EDIT
button and a DELETE button on each line, like:

ID number ID type EDIT DELETE

and identify which line is to be EDITed
or DELETEd. I tried to create a unique name
for each button, like:

<input type="submit" name={{ "edit " + forloop.counter }}
value="EDIT" />

but the template language won't let me add.
Is there a simpler way to know which line
the submit came from, that works?
Or even a complicated way that works?

Bill Beal

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 comments:

Post a Comment