<commit_before><label class={{config.css.label}} for={{name}}>
  {{label}}{{#if required}} *{{/if}}
</label>

{{#if (eq type "select")}}
  {{one-way-select
    value            = (get model name)
    options          = options
    optionLabelPath  = optionLabelPath
    optionValuePath  = optionValuePath
    optionTargetPath = optionTargetPath
    name             = name
    class            = config.css.control
    update           = (action "update")
    focusOut         = (action "setDirty")
    includeBlank     = includeBlank
    }}

{{else if (eq type "radioGroup")}}

  {{#each options as |option|}}
    <div class="radio">
      <label>
      {{one-way-radio
        value    = (get model name)
        option   = option.key
        name     = name
        update   = (action "update")
        focusOut = (action "setDirty")
        }}
        {{option.label}}</label>
    </div>
  {{/each}}

{{else}}

  {{component (concat "one-way-" type)
    value       = (get model name)
    options     = options
    name        = name
    class       = config.css.control
    update      = (action "update")
    focusOut    = (action "setDirty")
    placeholder = placeholder
    }}

{{/if}}

{{#if help}}
  <p class={{config.css.help}}>{{help}}</p>
{{/if}}

{{#if showError}}
  <span class={{config.css.help}}>{{firstError}}</span>
{{/if}}
<commit_msg>Add disabled and readonly support<commit_after><label class={{config.css.label}} for={{name}}>
  {{label}}{{#if required}} *{{/if}}
</label>

{{#if (eq type "select")}}
  {{one-way-select
    value            = (get model name)
    options          = options
    optionLabelPath  = optionLabelPath
    optionValuePath  = optionValuePath
    optionTargetPath = optionTargetPath
    name             = name
    class            = config.css.control
    update           = (action "update")
    focusOut         = (action "setDirty")
    includeBlank     = includeBlank
    disabled         = disabled
    }}

{{else if (eq type "radioGroup")}}

  {{#each options as |option|}}
    <div class="radio">
      <label>
      {{one-way-radio
        value    = (get model name)
        option   = option.key
        name     = name
        update   = (action "update")
        focusOut = (action "setDirty")
        disabled = disabled
        }}
        {{option.label}}</label>
    </div>
  {{/each}}

{{else}}

  {{component (concat "one-way-" type)
    value       = (get model name)
    options     = options
    name        = name
    class       = config.css.control
    update      = (action "update")
    focusOut    = (action "setDirty")
    placeholder = placeholder
    disabled    = disabled
    readonly    = readonly
    }}

{{/if}}

{{#if help}}
  <p class={{config.css.help}}>{{help}}</p>
{{/if}}

{{#if showError}}
  <span class={{config.css.help}}>{{firstError}}</span>
{{/if}}

{'fraction_non_alphanumeric': 0.15741391426563597, 'fraction_numerical': 0.0, 'mean_word_length': 2.084507042253521, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4814213', 'n_tokens_mistral': 884, 'n_tokens_neox': 875, 'n_words': 212}