<div>
  <div class="form-group">
    <label class="col-sm-5 control-label" for="manufacturer-name">Enter the manufacturer name</label>
    <div class="col-sm-7">
      <input class="form-control" id="brand-name" type="text" name="brandName" placeholder="Manufacturer name" ng-model="device.db.brand" ng-maxlength="32" required>
      <!-- <p class="help-block" ng-show="deviceNameForm.deviceName.$error.required && deviceNameForm.deviceName.$dirty">A valid device name is required.</p>
      <p class="help-block" ng-show="deviceNameForm.deviceName.$error.maxlength && deviceNameForm.deviceName.$dirty">The device name cannot be longer than 32 characters.</p> -->
    </div>
  </div>

  <div class="form-group">
    <label class="col-sm-5 control-label" for="model">Enter the exact model number</label>
    <div class="col-sm-7">
      <input class="form-control" id="model" type="text" name="model" placeholder="Model number" ng-model="device.db.model.name" ng-maxlength="64" required>
      <!-- <p class="help-block" ng-show="deviceNameForm.deviceName.$error.required && deviceNameForm.deviceName.$dirty">A valid device name is required.</p>
      <p class="help-block" ng-show="deviceNameForm.deviceName.$error.maxlength && deviceNameForm.deviceName.$dirty">The device name cannot be longer than 64 characters.</p> -->
    </div>
  </div>


  <div class="form-group">
    <label class="col-sm-5 control-label" for="">Select how the device will be controlled</label>
    
    <div class="col-sm-7">
      <label class="radio-inline">
        <input type="radio" name="targetType" ng-model="device.target.type" ng-value="1"> IR controlled
      </label>

      <label class="radio-inline">
        <input type="radio" name="targetType" ng-model="device.target.type" ng-value="2"> Network controlled
      </label>
    </div>
  </div>
</div>