What do you want to modify in form?
If you want to add more fields in the form so you can add this way.
#modal.py
auth.settings.extra_fields['auth_user'] = [
Field('new filed name')
]
If you want to customize look and feel of the form or even you can change
entry form according to your need.you can do this way
#user.html
{{include 'layout.html'}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>/title>
<link href="{{=URL('static', 'css/main.css')}}" rel="stylesheet"
media="screen" />
</head>
<body >
<div class="main-wrapper">
<div class="login-bg-color bg-gray">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="panel login-box">
<div class="panel-heading">
<div class="panel-title text-center">
<p style="color:#1b4c99; text-align:
center; font-size: 20px">{{=request.args(0).title()}}</p>
</div>
</div>
<div class="panel-body p-20">
{{
if request.args(0)=='register':
pass
=form
}}
<div class="text-center">
<p>Already Signed Up? <a
href="/{{=request.application}}/{{=request.controller}}/user/login?_next=/
{{=request.application}}/{{=request.controller}} /index" class="form-link"
style="color: #1b4c99;font-size: 20px"><small
class="muted-text">Login</small></a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ========== THEME JS ========== -->
<script src="{{=URL('static','js/main.js')}}"
type="text/javascript"></script>
</body>
</html>
This is just an example to show how to customize the default behavior of
the form so can change in your way.
Happy Development in Web2py .. :)
Thanks
Sp/
On Sat, Sep 15, 2018 at 6:45 PM taufit dungun <[email protected]> wrote:
> Hi,
>
> im a totally newbie in web2py...but a fan of it
>
> my question, how to modified the default registration form of a user?
>
>
> thanks
>
> --
> 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.
>
--
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.