<div ng-show="ruleData['type']=='softwareupdate'">
  <div class="control-group">
    <label class="control-label" name="">
        <span>Package name</span>
    </label>

      <div class="controls">
          <select class="software-conditions"
                  data-placeholder="Select condition type"
                  chozen
                  search="false"
                  ng-model="ruleData.softwareUpdateConditions.condition"
                  ng-selected="ruleData.softwareUpdateConditions.condition"
                  ng-options="item for item in DCA.softwareFilterConditions"
                  disable="alertData.ruleid">
          </select>

          <?php // NOTE: we use data for autocomplete from software table ?>
          <input type="text"
                 autocomplete="off"
                 ng-model="ruleData.softwareUpdateConditions.patchname"
                 class="input-large patchname-input"
                 ng-readonly="alertData.ruleid"
                 typeahead-editable="true"
                 typeahead-min-length="1"
                 typeahead-wait-ms="1000"
                 typeahead-on-select="autocompleteValidateValue($item, 'ruleData.softwareUpdateConditions.patchname')"
                 typeahead="item for item in autocompleteList('softwarename', $viewValue) | limitTo:15"
                 ng-blur="autocompleteValidateValue($item, 'ruleData.softwareUpdateConditions.patchname')"
                 >
      </div>
    </div>
  <div class="control-group">
      <label class="control-label" name="">
          <span>Architecture</span>
      </label>
      <div class="controls">
          <?php // NOTE: we use data for autocomplete from software table ?>
          <input type="text"
                 autocomplete="off"
                 ng-model="ruleData.softwareUpdateConditions.patcharchitecture"
                 class="input-large"
                 ng-readonly="alertData.ruleid"
                 typeahead-editable="true"
                 typeahead-min-length="1"
                 typeahead-wait-ms="1000"
                 typeahead-on-select="autocompleteValidateValue($item, 'ruleData.softwareUpdateConditions.patcharchitecture')"
                 typeahead="item for item in autocompleteList('softwarearchitecture', $viewValue) | limitTo:15"
                 ng-blur="autocompleteValidateValue($item, 'ruleData.softwareUpdateConditions.patcharchitecture')"
                 >
          <span class="help-block">Leave fields blank for an alert on all packages.</span>
      </div>
  </div>

</div>