<div class="rate-calculator">
    <div class="tabs">
        <input id="tab-nav__item-0" type="radio" name="activeTab" value="0" checked />
        <input id="tab-nav__item-1" type="radio" name="activeTab" value="1" checked />
        <div class="tab-nav">
            <label for="tab-nav__item-0" role="button">
                Power
            </label>
            <label for="tab-nav__item-1" role="button">
                Gas
            </label>
        </div>
        <div class="tab-group">
            <div class="tab-group__item">
                <div class="py-3">
                    <div class="row align-items-center">
                        <div class="col-6 col-lg-3">
                            <div class="input input--text">
                                <input id="base-input" name="base-input" type="text" required placeholder="z.B. 40489" />
                                <label class="input__label" for="base-input">Ihre Postleitzahl&ast;</label>
                                <span class="input__error">
                                    Ihre Postleitzahl is invalid.
                                </span>
                            </div>
                        </div>
                        <div class="col-6 col-lg-3">
                            <div class="input input--text">
                                <input id="base-input" name="base-input" type="text" required placeholder="2500 kWh" />
                                <label class="input__label" for="base-input">Jahresverbrauch&ast;</label>
                                <span class="input__error">
                                    Jahresverbrauch is invalid.
                                </span>
                            </div>
                        </div>
                        <div class="col-6 col-lg-3">
                            <div class="input input--range " data-form-input>
                                <input type="range" id="input-range" name="input-range" value="0" min="1" max="6" step="1" required data-input-range>
                                <label for="input-range" role="button" class="input__label">Personen in Ihrem Haushalt</label>
                                <div class="input--range__steps">
                                    <button class="input__label" value="1" data-input-range-step>1</button>
                                    <button class="input__label" value="2" data-input-range-step>2</button>
                                    <button class="input__label" value="3" data-input-range-step>3</button>
                                    <button class="input__label" value="4" data-input-range-step>4</button>
                                    <button class="input__label" value="5" data-input-range-step>5</button>
                                    <button class="input__label" value="6" data-input-range-step>6</button>
                                </div>
                                <span class="input__error">Element is invalid</span>
                            </div>
                        </div>
                        <div class="col-6 col-lg-3">
                            <button class="button button--size-m" role="button" type="button">
                                <span class="caption">
                                    <i class="base-icon" title="">
                                        <svg class="icon" preserveAspectRatio="xMaxYMin">
                                            <use xlink:href="/static/symbol-defs.svg#icon-plus" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0"></use>
                                        </svg>
                                    </i> Jetzt berechnen
                                </span>
                            </button>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-auto ms-auto">
                            <div class="input input--checkbox">
                                <input id="base-checkbox" type="checkbox" name="" />
                                <label class="input__label" for="base-checkbox">Gewerbekunde</label>
                                <span class="input__error">Element is invalid</span>
                            </div>
                        </div>
                        <div class="col-auto">
                            <a class="link" href="#" role="link">
                                Ich in 18 - 25 Jahre alt.
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-group__item">
                <div class="py-3">
                    <div class="row align-items-center">
                        <div class="col-6 col-lg-3">
                            <div class="input input--text">
                                <input id="base-input" name="base-input" type="text" required placeholder="z.B. 40489" />
                                <label class="input__label" for="base-input">Ihre Postleitzahl&ast;</label>
                                <span class="input__error">
                                    Ihre Postleitzahl is invalid.
                                </span>
                            </div>
                        </div>
                        <div class="col-6 col-lg-3">
                            <div class="input input--text">
                                <input id="base-input" name="base-input" type="text" required placeholder="2500 kWh" />
                                <label class="input__label" for="base-input">Jahresverbrauch&ast;</label>
                                <span class="input__error">
                                    Jahresverbrauch is invalid.
                                </span>
                            </div>
                        </div>
                        <div class="col-6 col-lg-3">
                            <div class="input input--range " data-form-input>
                                <input type="range" id="input-range" name="input-range" value="0" min="25" max="150" step="25" required data-input-range>
                                <label for="input-range" role="button" class="input__label">Wohnfläche</label>
                                <div class="input--range__steps">
                                    <button class="input__label" value="25" data-input-range-step>25</button>
                                    <button class="input__label" value="50" data-input-range-step>50</button>
                                    <button class="input__label" value="75" data-input-range-step>75</button>
                                    <button class="input__label" value="100" data-input-range-step>100</button>
                                    <button class="input__label" value="125" data-input-range-step>125</button>
                                    <button class="input__label" value="150" data-input-range-step>150</button>
                                </div>
                                <span class="input__error">Element is invalid</span>
                            </div>
                        </div>
                        <div class="col-6 col-lg-3">
                            <button class="button button--size-m" role="button" type="button">
                                <span class="caption">
                                    <i class="base-icon" title="">
                                        <svg class="icon" preserveAspectRatio="xMaxYMin">
                                            <use xlink:href="/static/symbol-defs.svg#icon-plus" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0"></use>
                                        </svg>
                                    </i> Jetzt berechnen
                                </span>
                            </button>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-auto ms-auto">
                            <div class="input input--checkbox">
                                <input id="base-checkbox" type="checkbox" name="" />
                                <label class="input__label" for="base-checkbox">Gewerbekunde</label>
                                <span class="input__error">Element is invalid</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<div class="rate-calculator">
  {{#> @tabs tabs }}
    {{#each items}}
      <div class="tab-group__item">
        <div class="py-3">
          <div class="row align-items-center">
            <div class="col-6 col-lg-3">
              {{> @input (contextData '@input' tabItem.zip) }}
            </div>
            <div class="col-6 col-lg-3">
              {{> @input (contextData '@input' tabItem.consumption) }}
            </div>
            <div class="col-6 col-lg-3">
              {{#if tabItem.persons}}
                {{> @input-range (contextData '@input-range--step' tabItem.persons) }}
              {{/if}}
              {{#if tabItem.size}}
                {{> @input-range (contextData '@input-range--step' tabItem.size) }}
              {{/if}}
            </div>
            <div class="col-6 col-lg-3">
              {{> @button (contextData '@button' tabItem.submit) }}
            </div>
          </div>
          <div class="row">
            <div class="col-auto ms-auto">
              {{> @checkbox (contextData '@checkbox' tabItem.b2b) }}
            </div>
            {{#if tabItem.ageVerification}}
              <div class="col-auto">
                {{> @link (contextData '@link' tabItem.ageVerification) }}
              </div>
            {{/if}}
          </div>
        </div>
      </div>
    {{/each}}
  {{/@tabs }}
  </div>
</div>
{
  "tabs": {
    "items": [
      {
        "navItem": "Power",
        "active": true,
        "tabItem": {
          "zip": {
            "label": "Ihre Postleitzahl",
            "placeholder": "z.B. 40489",
            "required": true
          },
          "persons": {
            "label": "Personen in Ihrem Haushalt",
            "min": 1,
            "max": 6,
            "step": 1,
            "steps": [
              1,
              2,
              3,
              4,
              5,
              6
            ]
          },
          "consumption": {
            "label": "Jahresverbrauch",
            "placeholder": "2500 kWh",
            "required": true
          },
          "submit": {
            "text": "Jetzt berechnen",
            "icon": {
              "symbol": "plus"
            }
          },
          "b2b": {
            "label": "Gewerbekunde"
          },
          "ageVerification": {
            "text": "Ich in 18 - 25 Jahre alt."
          }
        }
      },
      {
        "navItem": "Gas",
        "active": true,
        "tabItem": {
          "zip": {
            "label": "Ihre Postleitzahl",
            "placeholder": "z.B. 40489",
            "required": true
          },
          "size": {
            "label": "Wohnfläche",
            "min": 25,
            "max": 150,
            "step": 25,
            "steps": [
              25,
              50,
              75,
              100,
              125,
              150
            ]
          },
          "consumption": {
            "label": "Jahresverbrauch",
            "placeholder": "2500 kWh",
            "required": true
          },
          "submit": {
            "text": "Jetzt berechnen",
            "icon": {
              "symbol": "plus"
            }
          },
          "b2b": {
            "label": "Gewerbekunde"
          }
        }
      }
    ]
  }
}

No notes defined.