41 lines
606 B
HTML
41 lines
606 B
HTML
---
|
|
id:
|
|
type: 'string'
|
|
class:
|
|
type: 'string'
|
|
default: ''
|
|
value:
|
|
type: 'string'
|
|
required:
|
|
type: 'bool'
|
|
default: false
|
|
autofocus:
|
|
type: 'bool'
|
|
default: false
|
|
name:
|
|
type: 'string'
|
|
default: ''
|
|
aria_label:
|
|
type: 'string'
|
|
default: ''
|
|
attributes:
|
|
type: 'string'
|
|
default: ''
|
|
---
|
|
{%- assign attributes = attributes | append: ' ' | append: 'switch' -%}
|
|
|
|
<div class="form-check form-switch">
|
|
{%
|
|
render 'forms/input.html',
|
|
type: 'checkbox',
|
|
id:,
|
|
class: 'form-check-input',
|
|
required:,
|
|
autofocus:,
|
|
name:,
|
|
value:,
|
|
aria_label:,
|
|
attributes:
|
|
%}
|
|
</div>
|