mirror of
https://github.com/status-im/consul.git
synced 2025-01-18 17:52:17 +00:00
6589cbbd0d
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
33 lines
1.1 KiB
Handlebars
33 lines
1.1 KiB
Handlebars
{{#let (hash
|
|
|
|
Element=(component 'form-group/element' group=@group name=@name)
|
|
|
|
Text=(component 'form-group/element/text' didinsert=(action this.connect) name=this.name oninput=(action (mut this.touched) true))
|
|
Checkbox=(component 'form-group/element/checkbox' didinsert=(action this.connect) name=this.name onchange=(action (mut this.touched) true))
|
|
Radio=(component 'form-group/element/radio' didinsert=(action this.connect) name=this.name onchange=(action (mut this.touched) true))
|
|
|
|
|
|
Label=(component 'form-group/element/label')
|
|
Error=(component 'form-group/element/error')
|
|
|
|
state=state
|
|
)
|
|
as |el|}}
|
|
{{#if (contains this.type (array 'radiogroup' 'checkbox-group' 'checkboxgroup'))}}
|
|
<div
|
|
data-property={{this.prop}}
|
|
class="type-{{this.type}}{{if (state-matches state 'error') ' has-error'}}"
|
|
...attributes
|
|
>
|
|
{{yield el}}
|
|
</div>
|
|
{{else}}
|
|
<label
|
|
data-property={{this.prop}}
|
|
class="type-{{this.type}}{{if (state-matches state 'error') ' has-error'}}"
|
|
...attributes
|
|
>
|
|
{{yield el}}
|
|
</label>
|
|
{{/if}}
|
|
{{/let}} |