{{dashboards/subscription-dash/feature-header
  title=(bits-string 'chat_badge_settings_title')
  desc=(bits-string 'chat_badge_settings_desc')
}}

<form {{action "save" on="submit"}}>
  {{#dashboards/subscription-dash/feature-row title=(bits-string 'chat_badge_settings_tier_title')}}
    <ul class="bits-config__badge-list">
      {{#each tiers as |tier|}}
        <li class="bits-config__tier">
          <label class="subdash-feature__label">
            {{input type="checkbox" checked=tier.enabled}}
            <img class="bits-config__checkbox" src={{tier.badge}}>
            {{commatized tier.threshold}}
            {{bits-string 'chat_badge_tier_label'}}
          </label>
        </li>
      {{/each}}
    </ul>
    <p>
      {{bits-string 'chat_badge_tier_desc'}}
    </p>
  {{/dashboards/subscription-dash/feature-row}}

  <div class="subdash-feature-section__buttons">
    {{saving-button isSaving=isSaving type='submit' save=(action 'noop')}}
  </div>
</form>
