2015-07-29 00:29:40 +08:00
|
|
|
<div class="form-element label-area">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.label}}
|
2023-10-31 15:57:50 +08:00
|
|
|
<label
|
|
|
|
class={{concat-class (if (eq @type "checkbox") "checkbox-label")}}
|
|
|
|
>{{i18n this.label}}</label>
|
2015-07-28 02:22:12 +08:00
|
|
|
{{else}}
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2015-07-29 00:29:40 +08:00
|
|
|
<div class="form-element input-area">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.wrapLabel}}
|
2023-10-31 15:57:50 +08:00
|
|
|
<label
|
|
|
|
class={{concat-class (if (eq @type "checkbox") "checkbox-label")}}
|
|
|
|
>{{yield}}</label>
|
2015-07-28 02:22:12 +08:00
|
|
|
{{else}}
|
|
|
|
{{yield}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|