views > register.pug | LogSyS

/views/register.pug

Here we have enter email and correct password to get registered.

doctype
html
     head
          title LogSys
          <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
          <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
          <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
     body
          .container
               != messages('message'locals)
               if errors
                    each errori in errors
                         div(class="alert alert-danger"#{error.msg}

          if (msg)
               div.alert.alert-danger.alert-dismissible
                    strong Error!
                    |#{msg}
                    button.close(type='button' data-dismiss='alert' aria-label='Close')
                         span(aria-hidden='true'&times;

          h1 Welcome! This Register page please enter your name and choose your password.
          
          form(action="/register"method="POST")
               div
                    p Your Email
                    input(type="email" id="email"name="email"class="email")
               br
               div
                    p Password
                    input(type="password"class="password"id="password"name="password" placeholder="password")
               br
               div
                    p Confirm Password
                    input(type="password"class="cpassword"id="cpassword"name="cpassword" placeholder="Confirm Password")
               br
               div
                    button(type="submit") SUBMIT 
               br
          br
          a(href="/login") Already have account?(login)
          br
          a(href="/") HOME

Comments

Popular posts from this blog

Generative AI Model for text summarization

maintext/ react

Resume description for AI/ ML Developer