<div class="form-group">

  <label for="id"
         class="col-sm-1 control-label">{{ "object_id" | translate }}:</label>
  <div class="col-sm-3">
    <input id="id"
           class="form-control"
           type="text"
           ng-model="filter.object_id"/>
  </div>

  <label for="id"
         class="col-sm-1 control-label">{{ "object_type" | translate }}:</label>
  <div class="col-sm-2">
    <input id="id"
           class="form-control"
           type="text"
           ng-model="filter.object_type"/>
  </div>

  <div ng-show="vm.currentUser.role !== 'user'">
    <label for="user"
           class="col-sm-1 control-label">{{ "USER" | translate }}:</label>
    <div class="col-sm-2">
      <input id="user"
             class="form-control"
             type="text"
             ng-model="filter.username"/>
    </div>
  </div>

  <div class="col-sm-2"
       ng-init="showAdvanced=true">
    <a ng-click="showAdvanced = !showAdvanced"
       ng-show="!showAdvanced"
       class="pull-right checkbox-inline">{{ "MORE_FILTERS" | translate }}</a>
    <a ng-click="showAdvanced = !showAdvanced"
       ng-show="showAdvanced"
       class="pull-right checkbox-inline">{{ "LESS_FILTERS" | translate }}</a>
  </div>

</div>

<div ng-show="showAdvanced">
  <div class="form-group">
    <label for="text"
           class="col-sm-1 control-label">{{ "ACTION" | translate }}:</label>
    <div class="col-sm-3">
      <select ng-model="filter.action"
        class="form-control">
        <option ng-value="{{ undefined }}"></option>
        <option value="ADD_COMMENT">{{ "ADD_COMMENT" | translate }}</option>
        <option value="CHANGE_STATUS">{{ "CHANGE_STATUS" | translate }}</option>
        <option value="CHANGE_USERNAME">{{ "CHANGE_USERNAME" | translate }}</option>
        <option value="ADD_TO_LISTENTRY">{{ "ADD_TO_LISTENTRY" | translate }}</option>
        <option value="ADD_INQUIRY">{{ "ADD_INQUIRY" | translate }}</option>
        <option value="DELETE">{{ "DELETE" | translate }}</option>
        <option value="ADD_TO_PROCESS">{{ "ADD_TO_PROCESS" | translate }}</option>
        <option value="CHANGE_TASK_STATUS">{{ "CHANGE_TASK_STATUS" | translate }}</option>
        <option value="SINGLE_NAMECHECK_START">{{ "SINGLE_NAMECHECK_START" | translate }}</option>
        <option value="SINGLE_NAMECHECK_END">{{ "SINGLE_NAMECHECK_END" | translate }}</option>
        <option value="LEXISNEXIS">{{ "LEXISNEXIS" | translate }}</option>
        <option value="MEDIASEARCH_START">{{ "MEDIASEARCH_START" | translate }}</option>
        <option value="GOOGLESEARCH">{{ "GOOGLE_SEARCH" | translate }}</option>
        <option value="BINGSEARCH">{{ "BINGSEARCH" | translate }}</option>
        <option value="MROS_START">{{ "MROS_START" | translate }}</option>
        <option value="MROS_END">{{ "MROS_END" | translate }}</option>
        <option value="CREATE_USER">{{ "CREATE" | translate }} {{ "USER" | translate }}</option>
        <option value="UPDATE_USER">{{ "UPDATE" | translate }} {{ "USER" | translate }}</option>
        <option value="DELETE_USER">{{ "DELETE" | translate }} {{ "USER" | translate }}</option>
        <option value="RISK_VALUE_CHANGED">{{ "RISK_VALUE_CHANGED" | translate }}</option>
        <option value="DELETE_CUSTOMER_DATA">{{ "DELETE_CUSTOMER_DATA" | translate }}</option>
      </select>
    </div>
    <label class="col-sm-1 control-label">{{ "DATES" | translate }}:</label>
    <div class="col-sm-7">
      <dates-from-to data="filter.date"></dates-from-to>
    </div>
  </div>
</div>