Source: site.view [edit]
Function name: login
Arguments:
Description: OPTIONALARGS -- 0: Message
Page type: html
Render function:  
Module: maybeathome

Page source:

<!DOCTYPE html>
        <webl>WubCall("maybeathome.header", ["login"]);</webl>

       <div class="login-register-wrapper">
            <div class="container">
                <div class="row">

       <webl>
         //print message
         if Size(OPTIONALARGS) > 0 then
            "<p class='message'>" + ToString(OPTIONALARGS[0]) + "</p>\n"
         else
            ""
         end;
       </webl>

                  
                  
                  <div class="col-sm-6">
                        <h3 data-localize="login.login">Sign In</h3>
                        <div class="custom-form-wrapper login-wrapper">
                            <form class="form-horizontal" action="/webl/WubHub_DoIt" method="post">
                                <input name="cmdline" value="siteutil.siteLogin(site,username,pw,err,succ,category)" type="hidden"/>
                                <input name="site" value="maybeathome" type="hidden"/>
                                <input name="err" value="maybeathome.registerError" type="hidden"/>
                                <input name="succ" value="maybeathome.home" type="hidden"/>                              
                                <div class="form-group">
                                    <label for="userName" class="col-sm-2 control-label" data-localize="login.username">Username</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="userName"  name="username" placeholder="">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="pasword" class="col-sm-2 control-label" data-localize="login.password">Password</label>
                                    <div class="col-sm-10">
                                        <input type="password" class="form-control" name="pw" id="password" placeholder="">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <a href="/site/forgotPassword" class="forgot-password-link" data-localize="login.forgot">Forgot Password</a>
                                        <button type="submit" class="btn btn-custom" data-localize="login.login">Login</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <h3 data-localize="login.register">Register</h3>
                        <div class="custom-form-wrapper register-wrapper">                           
                          <form class="form-horizontal" action="/webl/WubHub_DoIt" method="post">
                                <input name="cmdline" value="siteutil.siteRegister(site,name,phone,email,username,pw,pw2,err,succ,category)" type="hidden"/>
                                <input name="site" value="maybeathome" type="hidden"/>
                                <input name="err" value="maybeathome.registerError" type="hidden"/>
                                <input name="succ" value="maybeathome.home" type="hidden"/>
                                <div class="form-group">
                                    <div class="col-sm-offset-3 col-sm-9">
                                        <label class="radio-inline">
                                            <input type="radio" id="category" name="category" value="buyer" checked>
                                              <span data-localize="login.buyer">Buyer</span>
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" id="category" name="category" value="seller">
                                              <span data-localize="login.seller">Seller</span>
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" id="category" name="category" value="agent"> <span data-localize="login.agent">Agent</span>
                                        </label>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="name" class="col-sm-3 control-label" data-localize="login.name">Your Name</label>
                                    <div class="col-sm-9">
                                        <input type="text" data-localize="login.namePlaceholder" class="form-control" id="name" name="name" placeholder="Firstname Lastname">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="Telephone" class="col-sm-3 control-label" data-localize="login.phone">Telephone</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="Telephone" name="phone" placeholder="">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="email" class="col-sm-3 control-label" data-localize="login.email">Email</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="email" name="email" placeholder="">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="userName" class="col-sm-3 control-label" data-localize="login.username">Username</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="userName" name="username" placeholder="">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="password" class="col-sm-3 control-label" data-localize="login.password">Password</label>
                                    <div class="col-sm-9">
                                        <input type="password" class="form-control" id="password" name="pw" placeholder="">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="confirmPassword" class="col-sm-3 control-label" data-localize="login.confirm">Confirm</label>
                                    <div class="col-sm-9">
                                        <input type="password" class="form-control" id="confirmPassword" name="pw2" placeholder="">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-offset-3 col-sm-9">
                                        <a href="/site/terms" class="terms-condition-link" data-localize="login.terms">Terms & Conditions</a>
                                      
                                        <button type="submit" class="btn btn-custom" data-localize="login.register">Register</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>



       <webl>WubCall("maybeathome.footer", ["login"]);</webl>
    </body>
</html>