<div class="ws-multiple-input-section">
  <input
    type="text"
    ng-repeat="i in $ctrl.range($ctrl.inputCount) track by $index"
    class="ws-multiple-input form-input-text"
    maxlength="1"
    ng-if="!$ctrl.singleInputMode"
    ng-keypress="$ctrl.onKeyPress($event)"
    ng-keydown="$ctrl.onKeyDown($event)"
    ng-paste="$ctrl.onPaste($event)"
    ng-model="$ctrl.inputs[$index]"
    ng-readonly="$ctrl.isReadonly" />

  <div class="input-group" ng-if="$ctrl.singleInputMode">
    <input
            type="text"
            class="form-input-text size-sm ws-multiple-input-single"
            maxlength="{{::$ctrl.inputCount}}"
            ng-model="$ctrl.singleInput"
            ng-readonly="$ctrl.isReadonly" />
    <button ng-click="$ctrl.submit()" class="button primary-action" translate="ws-multiple-input.submit"></button>
  </div>

</div>
