Error
@jrmc.form()
@jrmc.form.control({ name: 'sampleError', error: false })
@!jrmc.form.input({ class: 'input-bordered' })
@end
@jrmc.form.control({ name: 'sample2Error', error: false })
@!jrmc.form.input({ class: 'input-bordered' })
@end
@jrmc.form.control({ label: false, error: false })
@!jrmc.button.input({ text: 'Login', type: 'submit', class: 'btn-primary' })
@end
@end
<form method="POST" > <input type='hidden' name='_csrf' value='MEPNpJji-lUpvouTeqcjZUh-cq3tNrX47QQU'>
<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>
<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>
<div class="form-control mb-5" >
<input
type="submit"
class="btn btn-primary"
value="Login" />
</div>
</form>
Error inline
@jrmc.form({ 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
@jrmc.form.control({ label: false, error: false })
@!jrmc.button.input({ text: 'Login', type: 'submit', class: 'btn-primary' })
@end
@end
<form method="POST" > <input type='hidden' name='_csrf' value='MEPNpJji-lUpvouTeqcjZUh-cq3tNrX47QQU'>
<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>
<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>
<div class="form-control mb-5" >
<input
type="submit"
class="btn btn-primary"
value="Login" />
</div>
</form>
Error disabled
@jrmc.form({ error: false })
@jrmc.form.control({ name: 'sampleError', error: false })
@!jrmc.form.input({ class: 'input-bordered' })
@end
@jrmc.form.control({ name: 'sample2Error', error: false })
@!jrmc.form.input({ class: 'input-bordered' })
@end
@jrmc.form.control({ label: false, error: false })
@!jrmc.button.input({ text: 'Login', type: 'submit', class: 'btn-primary' })
@end
@end
<form method="POST" > <input type='hidden' name='_csrf' value='MEPNpJji-lUpvouTeqcjZUh-cq3tNrX47QQU'>
<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>
<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>
<div class="form-control mb-5" >
<input
type="submit"
class="btn btn-primary"
value="Login" />
</div>
</form>
Error manual
@jrmc.form({ error: false })
@jrmc.form.control({ name: 'sampleError', error: false })
@!jrmc.form.input({ class: 'input-bordered' })
@end
@jrmc.form.control({ name: 'sample2Error', error: false })
@!jrmc.form.input({ class: 'input-bordered' })
@end
@jrmc.form.control({ label: false, error: false })
@!jrmc.button.input({ text: 'Login', type: 'submit', class: 'btn-primary' })
@end
@!jrmc.form.error.all({ class: 'mt-5'})
@end
<form method="POST" > <input type='hidden' name='_csrf' value='MEPNpJji-lUpvouTeqcjZUh-cq3tNrX47QQU'>
<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>
<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>
<div class="form-control mb-5" >
<input
type="submit"
class="btn btn-primary"
value="Login" />
</div>
</form>