Given this

>
> def register():
>     return dict(form=auth.register())
>
>
you view just needs:

{{=form}}

>
> ...
> <form method="post" class="h5form">
>     <div class="own-labels">
>        <label>First name<sup>*</sup></label>
>        <input type="text" name="firstName" class="span3" placeholder="enter 
> text…" required="required" tabindex="0">
>        <label>Last name<sup>*</sup></label>
>        <input type="text" name="lastName" class="span3" placeholder="enter 
> text…" required="required" tabindex="1">
>        <label>Email<sup>*</sup></label>
>        <input type="email" name="email" class="span3" placeholder="enter 
> text…" required="required" tabindex="3">
>     </div>
>     <div class="pull-left">
>        <input type="submit" class="btn pull-right" style="margin-top: 
> 15px;" value="Register">
>     </div>
> </form>
> ...
>
> But you need to replace <form...> with {{=form.custom.begin}}, </form> 
> with {{=form.custom.end} and you need input field names corresponding to 
> the column names in the db.auth_user table. If you use the custom form you 
> must also find your own way to display form.errors
>

Reply via email to