Re: Reusing actions "Save and continue editing" and "Save"

2010-11-26 Thread Wim Feijen
Hi Lom, I would recommend the following: 1. Add all three buttons to your template 2. In your view, handle the form saving and then determine which button has been pressed. 3. Accordingly, redirect to the same url (for example, redirect("/ address/14") for viewing, redirect("/address/14/edit")

Reusing actions "Save and continue editing" and "Save"

2010-11-23 Thread lom276
Hi all. I want to ask you if there is a best way to implement the actions "Save and add another", "Save and continue editing" and "Save" for my own forms. Is it possible to reuse the functionality from the Admin- Interface or do I have to invent the wheel again and implement it without reusing