templates/home/signup.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.     <div class="navbar navbar-default navbar-fixed-top">
  4.         <div class="container">
  5.             <div class="navbar-header">
  6.                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  7.                     <span class="icon-bar"></span>
  8.                     <span class="icon-bar"></span>
  9.                     <span class="icon-bar"></span>
  10.                 </button>
  11.                 <a class="navbar-brand" href="/"><img src="/images/urlogo.png" width="100px" class="img-responsive"/></a>
  12.                 <ul class="nav navbar-nav navbar-right">
  13.                     <li><a href="/home/login">Login</a></li>
  14.                 </ul>
  15.             </div>
  16.         </div>
  17.     </div>
  18.     <div class="container">
  19.         <div class="row">
  20.             <div class="col-lg-4 col-lg-offset-4">
  21.                 <br/>
  22.                 <br/>
  23.                 <br/>
  24.                 {% if exists is defined %}
  25.                     <div class="alert alert-danger">
  26.                         <p>Account already exists. Login or reset your password</p>
  27.                     </div>
  28.                 {% endif %}
  29.                 <br/>
  30.                 <br/>
  31.                 <form action="/index/signup" class="form-signin" method="POST">
  32.                     <input type="hidden" name="_domkey" value="RkY4VFF3UmJGMVJTQlZjUVdnZ0FEVUZjQTBkTVZneGU="/>
  33.                     <input type="hidden" name="_action" value="login"/>
  34.                     <h2 class="form-signin-heading">Please sign up</h2>
  35.                     <label for="firstname" class="sr-only">Firstname</label>
  36.                     <input type="text" id="firstname" name="firstname" class="form-control" placeholder="Firstname" required autofocus>
  37.                     <label for="lastname" class="sr-only">Lastname</label>
  38.                     <input type="text" id="lastname" name="lastname" class="form-control" placeholder="Lastname" required autofocus>
  39.                     <label for="username" class="sr-only">Username</label>
  40.                     <input type="text" id="username" name="username" class="form-control" placeholder="Username" required autofocus>
  41.                     <label for="cellphone" class="sr-only">Cellphone</label>
  42.                     <input type="text" id="cellphone" name="cellphone" class="form-control" placeholder="Cellphone: +123456789" required autofocus>
  43.                     <!--label for="dob" class="sr-only">Date of Birth</label>
  44.                     <!--select name="gender" class="form-control">
  45.                         <option value="m">Male</option>
  46.                         <option value="f">Female</option>
  47.                         <option value="o">Other</option>
  48.                     </select>
  49.                     <label for="dob" class="sr-only">Date of Birth</label>
  50.                     <input type="text" id="dob" name="dob" class="form-control" placeholder="dd-mm-yyyy" required autofocus-->
  51.                     <label for="city" class="sr-only">City</label>
  52.                     <input type="text" id="city" name="city" class="form-control" placeholder="City" required autofocus>
  53.                     <label for="country" class="sr-only">Country</label>
  54.                     <input type="text" id="country" name="country" class="form-control" placeholder="Country" required autofocus>
  55.                     <label for="region" class="sr-only">Region/Province/State</label>
  56.                     <input type="text" id="region" name="region" class="form-control" placeholder="Region/Province/State" required autofocus>
  57.                     <label for="email" class="sr-only">Email address</label>
  58.                     <input type="email" id="email" name="email" value="{{ email }}" class="form-control" placeholder="Email address" required autofocus>
  59.                     <label for="password" class="sr-only">Password</label>
  60.                     <input type="password" id="password" name="password" value="{{ pass }}" class="form-control" placeholder="Password" required>
  61.                     <div class="checkbox">
  62.                         <label>
  63.                             <input type="checkbox" value="remember-me" name="remember_me"> Remember me
  64.                         </label>
  65.                     </div>
  66.                     <button class="btn btn-lg btn-primary btn-block" type="submit">Sign Up</button>
  67.                 </form>
  68.             </div>
  69.         </div>
  70.     </div>
  71.     <br/>
  72.     <br/>
  73. {% endblock %}