| Text |
form-control |
<input type="text" class="form-control" placeholder="Enter text">
|
|
| Text Medium
Use in main forms (like create new sales order, purchase order, quote, etc..)
|
form-control form-control-md |
<div class="form-group form-group-md">
<label for="exampleCustomer">Customer Name</label>
<input type="text" class="form-control form-control-md" id="exampleCustomer" aria-describedby="customerHelp" placeholder="Enter email">
<small id="customerHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
|
We'll never share your email with anyone else.
|
| Text Medium Inline
Use in main forms (like create new sales order, purchase order, quote, etc..)
|
form-control form-control-md |
<div class="form-group form-group-inline form-group-md">
<div class="form-row">
<div class="col-4 col-form-label-md">
<label for="exampleCustomerInline">Customer Name</label>
</div>
<div class="col-8">
<input type="text" class="form-control form-control-md" id="exampleCustomerInline" placeholder="Enter customer name">
</div></div></div>
|
|
| Search field
|
form-control form-control-md |
<div class="form-group form-group-inline form-group-md">
<div class="form-row">
<div class="col-4 col-form-label-md">
<label for="exampleCustomerInline">Customer Name</label>
</div>
<div class="col-8">
<input type="text" class="form-control form-control-md" id="exampleCustomerInline" placeholder="Enter customer name">
</div></div></div>
|
|
| Date field
|
form-control form-control-md form-date |
<div class="form-group form-group-inline form-group-md">
<label for="searchField">Date</label>
<input type="text" class="form-control form-date" id="dateField" placeholder="Choose date..">
</div>
<div class="form-group form-group-inline form-group-md">
<label for="searchField">Browser Date</label>
<input type="date" class="form-control form-date" id="dateField" placeholder="Choose date..">
</div>
</div>
|
|
| Quantity
Input number, onclick: select all the text
|
form-control text-right |
<input type="text" onClick="this.setSelectionRange(0, this.value.length)" class="form-control text-right" placeholder="Enter quantity">
|
|
| Email |
form-control |
<input type="email" class="form-control" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="Enter email">
|
|
| Number |
form-control |
<input type="number" class="form-control" id="exampleInputNumber"
aria-describedby="numberHelp" placeholder="Enter number" max="100" min="2" step="3">
|
|
| Text with Label |
form-control |
<div class="form-group"> <label for="exampleInputEmail2">Email address</label> <input type="email" class="form-control" id="exampleInputEmail2" aria-describedby="emailHelp" placeholder="Enter email"> <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small> </div>
|
We'll never share your email with anyone else.
|
| Text with Label Inline |
form-control |
<div class="form-group form-group-inline">
<div class="form-row">
<div class="col-4 col-form-label">
<label for="exampleInputInline">Email address</label>
</div>
<div class="col-8">
<input type="email" class="form-control" id="exampleInputInline" placeholder="Enter email">
</div></div>
|
|
| Textarea |
form-control |
<div class="form-group">
<label for="exampleFormControlTextarea1">Example textarea</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>
|
|
Text Large Text Small |
form-control form-control-lg form-control form-control-sm |
<input class="form-control form-control-lg" type="text">
<input class="form-control form-control-sm" type="text">
|
|
| Text Read-only / Read-only Text |
form-control / form-control-plaintext |
<input class="form-control" type="text" placeholder="Readonly input here…" value="This is readonly input" readonly>
<input class="form-control" type="text" placeholder="Readonly input here…" readonly>
<input type="text" readonly class="form-control-plaintext" id="staticEmail" value="email@example.com">
|
|
| Text Disabled / Text Disabled Text |
form-control / form-control-plaintext |
<input class="form-control" type="text" placeholder="Readonly input here…" value="This is readonly input" disabled>
<input class="form-control" type="text" placeholder="Readonly input here…" disabled>
<input type="text" disabled class="form-control-plaintext" id="staticEmail" value="email@example.com">
<div class="form-group form-group-disabled"> <label class="form-label-disabled" for="exampleInputEmail2">Email address</label> <input type="email" class="form-control" id="exampleInputEmail2" aria-describedby="emailHelp" placeholder="Enter email"> <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small> </div>
|
|
| Error |
(was-validated) |
<form class="was-validated">
<div class="form-group">
<label for="ErrorInput1">Input Label</label>
<input class="form-control" id="ErrorInput1" type="text" placeholder="Error input here…" value="" required>
</div>
<div class="form-group"><div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" value="" id="invalidCheck" required>
<label class="custom-control-label" for="invalidCheck">
Invalid checkbox
</label>
</div></div>
</form>
|
|
| Error Feedback |
(was-validated) invalid-feedback |
<input class="form-control" type="text" placeholder="Error input here…" required>
<div class="invalid-feedback">Please fill in this form</div>
<div class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" value="" id="invalidCheck" required>
<label class="custom-control-label" for="invalidCheck">Invalid checkbox</label>
<div class="invalid-feedback">You must check this before submitting.</div>
</div>
|
|
| Valid Feedback |
(was-validated) valid-feedback |
<input class="form-control" type="text" placeholder="Valid input form" value="Input value valid">
<div class="valid-feedback">Input values is valid</div>
|
|