onclick accepts a bit of javascript, not an url....

On Friday, December 14, 2012 1:16:22 PM UTC+1, Daniele wrote:
>
> I'm also trying this but it doesn't work:
>
> <button onclick="{{auth.del_membership('role')}}" class="btn 
> btn-danger">Delete Role</button>
>
> Another thing I noticed is that whatever I put in onclick, it keeps trying 
> to submit the form. I don't want to submit the form I just want the button 
> to link to an action. Any help please???
>
>
> On Monday, December 10, 2012 9:15:30 PM UTC, Daniele wrote:
>>
>> When I use form.add_button() I am able to add a button to a form, which I 
>> can display with {{=form}} in my view.
>>
>> However, if I'm making a custom form using form.custom, how can I display 
>> that button??
>>
>> Thanks
>>
>

-- 



Reply via email to