<form method="get">
    csrf

    <div class="form-control mb-5">
        <label class="label cursor-pointer" for="sampleError">
            <span class="label-text">
                Sample Error:</span>
        </label>
        <input type="text" class="input input-bordered" name="sampleError" id="sampleError" value="" />

        <div class="label"> <span class="label-text-alt text-error">This field is required</span>
        </div>
    </div>

    <div class="form-control mb-5">
        <label class="label cursor-pointer" for="sample2Error">
            <span class="label-text">
                Sample2 Error:</span>
        </label>
        <input type="text" class="input input-bordered" name="sample2Error" id="sample2Error" value="" />

        <div class="label"> <span class="label-text-alt text-error">This field is required</span>
        </div>
    </div>

</form>
@jrmc.form({ method: 'get', error: false})
  @jrmc.form.control({ name: 'sampleError' })
    @!jrmc.form.input({ class: 'input-bordered' })
  @end

  @jrmc.form.control({ name: 'sample2Error' })
    @!jrmc.form.input({ class: 'input-bordered' })
  @end
@end
  • Handle: @error-disabled
  • Preview:
  • Filesystem Path: fractal/components/03-form/10-error/03-error-disabled.edge

No notes defined.