<form class="form-inline">
<fieldset class="form-fields">
<legend class="sr-only">Inline formulier</legend>
<div class="form-group input text">
<label for="naam">Naam:</label>
<input type="text" id="naam" class="form-control" />
</div>
<div class="form-group input email">
<label for="email">E-mailadres:</label>
<input type="email" id="email" class="form-control" />
</div>
<div class="form-group static">
<label>Beveiligd</label>
<p class="form-control-static">Ja</p>
</div>
</fieldset>
<div class="form-buttons">
<button type="submit" class="btn btn-primary">
Verstuur herinnering
</button>
</div>
</form>
<form class="form-inline">
<fieldset class="form-fields">
<legend class="sr-only">Inline formulier</legend>
{{#each groups }}
{{> (concat '@inline-group-' type) }}
{{/each}}
</fieldset>
<div class="form-buttons">
{{render '@button' submitButton merge=true }}
</div>
</form>
groups:
- id: naam
type: input
inputType: text
label: Naam
- id: email
type: input
inputType: email
label: E-mailadres
- id: secure
type: static
label: Beveiligd
value: Ja
submitButton:
modifier: primary
label: Verstuur herinnering
type: submit
Een inline formulier is een verticaal formulier met een .form-inline
op de form
.
Alle onderdelen van een inline formulier staan in een fieldset
. Eventueel kan de legend
verborgen worden met .sr-only
.
Om het formulier nog compacter te maken, is het mogelijk het label
te verbergen met .sr-only
. Als het label
element ongewenst is, is een alternatief @aria-label
of @title
op de input
This label's "for" attribute contains an ID that does not exist in the document fragment.
<label>Beveiligd</label>
This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 4.5:1.
<legend class="sr-only">Inline formulier</legend>
Check that the title element describes the document.
<title>Default
Check that a change of context does not occur when this input field receives focus.
<input type="text" id="naam" class="form-control">
If an input error is automatically detected in this form, check that the item(s) in error are identified and the error(s) are described to the user in text.
<form class="form-inline">
<fieldset class="form-fields">
<legend class="sr-only">Inline formulier</legend>
<div class="form-group input text">
<label for="naam">Naam:</label>
<input type="text" id="naam" class="form-control">
</div>
<div class="form-group input email">
<label for="email">E-mailadres:</label>
<input type="email" id="email" class="form-control">
</div>
<div class="form-group static">
<label>Beveiligd</label>
<p class="form-control-static">Ja</p>
</div>
</fieldset>
<div class="form-buttons">
<button type="submit" class="btn btn-primary">
Verstuur herinnering
</button>
</div>
</form>
Check that descriptive labels or instructions (including for required fields) are provided for user input in this form.
<form class="form-inline">
<fieldset class="form-fields">
<legend class="sr-only">Inline formulier</legend>
<div class="form-group input text">
<label for="naam">Naam:</label>
<input type="text" id="naam" class="form-control">
</div>
<div class="form-group input email">
<label for="email">E-mailadres:</label>
<input type="email" id="email" class="form-control">
</div>
<div class="form-group static">
<label>Beveiligd</label>
<p class="form-control-static">Ja</p>
</div>
</fieldset>
<div class="form-buttons">
<button type="submit" class="btn btn-primary">
Verstuur herinnering
</button>
</div>
</form>
Check that this form provides suggested corrections to errors in user input, unless it would jeopardize the security or purpose of the content.
<form class="form-inline">
<fieldset class="form-fields">
<legend class="sr-only">Inline formulier</legend>
<div class="form-group input text">
<label for="naam">Naam:</label>
<input type="text" id="naam" class="form-control">
</div>
<div class="form-group input email">
<label for="email">E-mailadres:</label>
<input type="email" id="email" class="form-control">
</div>
<div class="form-group static">
<label>Beveiligd</label>
<p class="form-control-static">Ja</p>
</div>
</fieldset>
<div class="form-buttons">
<button type="submit" class="btn btn-primary">
Verstuur herinnering
</button>
</div>
</form>
If this form would bind a user to a financial or legal commitment, modify/delete user-controllable data, or submit test responses, ensure that submissions are either reversible, checked for input errors, and/or confirmed by the user.
<form class="form-inline">
<fieldset class="form-fields">
<legend class="sr-only">Inline formulier</legend>
<div class="form-group input text">
<label for="naam">Naam:</label>
<input type="text" id="naam" class="form-control">
</div>
<div class="form-group input email">
<label for="email">E-mailadres:</label>
<input type="email" id="email" class="form-control">
</div>
<div class="form-group static">
<label>Beveiligd</label>
<p class="form-control-static">Ja</p>
</div>
</fieldset>
<div class="form-buttons">
<button type="submit" class="btn btn-primary">
Verstuur herinnering
</button>
</div>
</form>