In my controller I have the following code:
form = SQLFORM.factory(db.auth_user, db.auth_dummy,
extra_fields=extra_fields)
form.append(Recaptcha2(public_key = '...', private_key = ''))
When I have a view with {{=form}} the recaptcha displays correctly, I
changed
the view to display a custom form:
<form class="form-custom" action="" enctype="multipart/form-data"
method="post" role="form">
<fieldset>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
{{=form.custom.widget.title}}
</div>
</div>
<div class="col-sm-6">
....
</div>
</div>
<div class="row">
<div class="col-sm-6">
RECAPTCHA2
</div>
<div class="col-sm-6">
<div class="pull-right">
<div class="form-group">
{{=form.custom.submit}}
{{=INPUT(_class="btn btn-default", _type="button",
_value="Cancel", _onclick="javascript:window.history.back();")}}
</div>
{{=form.custom.end}}
</div>
</div>
</div> <!-- /.row -->
</fieldset>
I want to insert the Recaptcha2 div into the <div></div> marked RECAPTCHA2
but in case of the
custom form I do not know how to do this.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.