<h4 class="bg-primary">Where do you want to use the learned commands?</h4>
<p>Do you want to add commands to a device that is already programmed in your sytem or create a new device for them?</p>


<form name="learnIrDeviceForm" ng-submit="learnIrDeviceForm.$valid && doNext()">
  <div class="form-group">
    <div class="radio">
      <label>
        <input type="radio" name="exists" ng-model="learnIr.exists" ng-value="true" required>
        Learn to an existing device
      </label>
    </div>
    <div class="radio">
      <label>
        <input type="radio" name="exists" ng-model="learnIr.exists" ng-value="false" required>
        Create a new device
      </label>
    </div>
  </div>

  <div class="left-and-right">
    <go-back state="menu.advanced.options"></go-back>
    <button class="btn btn-primary btn-next" type="submit" ng-disabled="learnIrDeviceForm.$invalid">Next</button>
  </div>
</form>


