Giter VIP home page Giter VIP logo

Comments (6)

oussamahamdaoui avatar oussamahamdaoui commented on May 27, 2024

Hi @mungpara , thanks for your coment
Do you have any exemple of a HTML form that i can write the exemple on top of I would like something with a lot of complex rules to show most of the functionalities.
For now i haven't found any good enought idea I'd be greatful if you can help me with this
🙏

from forgjs.

hiteshmungpara avatar hiteshmungpara commented on May 27, 2024

I'm using laravel

<form method="POST" action="{{ route('login') }}">
   @csrf
   <div class="form-group row">
      <label for="email"
         class="col-sm-4 col-form-label text-md-right">E-Mail Address</label>
      <div class="col-md-6">
         <input id="email" type="email"
            class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
            name="email" value="{{ old('email') }}" required autofocus>
         @if ($errors->has('email'))
         <span class="invalid-feedback">
         <strong>{{ $errors->first('email') }}</strong>
         </span>
         @endif
      </div>
   </div>
   <div class="form-group row">
      <label for="password"
         class="col-md-4 col-form-label text-md-right">Password</label>
      <div class="col-md-6">
         <input id="password" type="password"
            class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
            name="password" required>
         @if ($errors->has('password'))
         <span class="invalid-feedback">
         <strong>{{ $errors->first('password') }}</strong>
         </span>
         @endif
      </div>
   </div>
   <div class="form-group row">
      <div class="col-md-6 offset-md-4">
         <div class="checkbox">
            <label>
            <input type="checkbox"
            name="remember" {{ old('remember') ? 'checked' : '' }}> Remember Me
            </label>
         </div>
      </div>
   </div>
   <div class="form-group row mb-0">
      <div class="col-md-8 offset-md-4">
         <button type="submit" class="btn btn-primary">
         Login
         </button>
         <a class="btn btn-link" href="{{ route('password.request') }}">
         Forgot Your Password?
         </a>
      </div>
   </div>
</form>

from forgjs.

oussamahamdaoui avatar oussamahamdaoui commented on May 27, 2024

Hey you are allready using laravel (PHP) as backend this lib is oriented for node js (Javascript)

from forgjs.

hiteshmungpara avatar hiteshmungpara commented on May 27, 2024

but i need client side validation

from forgjs.

oussamahamdaoui avatar oussamahamdaoui commented on May 27, 2024

Oh i havent made it client side friendly im still using require which is not undestood by all browsers i have to put in place somthing like babel

from forgjs.

oussamahamdaoui avatar oussamahamdaoui commented on May 27, 2024

Hi @mungpara, i finaly did it sorry it took some time check the example page hope this helps

from forgjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.