<div class="clearfix formField">
  <div class="input-group input-group-sm">
    <div ng-if="att.restrictions.length>0">
      <attribute-restrictions
        attribute="att"
        set-attr="setAttr"
        fti="fti"
        res="res"
        elastic-data="elasticFilterValues"
        field-data="fieldData"
        show-clean-value-button="true"
      ></attribute-restrictions>
    </div>
    <div ng-if="att.restrictions.length==0">
      <div ng-switch="att.type ">
        <div ng-switch-when="java.util.Date">
          <div
            javautildate
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            model-date-format="fieldData.showHours?'hours':'normal'"
            field-data="fieldData"
            missingMandatoryAttributes="missingMandatoryAttributes"
          ></div>
        </div>
        <div ng-switch-when="java.lang.String">
          <div
            javalangstring
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            attribute-data="attributeData"
            missingMandatoryAttributes="missingMandatoryAttributes"
            delete-null-default-values="deleteNullDefaultValues()"
          ></div>
        </div>
        <div ng-switch-when="java.lang.Double">
          <div
            javalangdouble
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            missingMandatoryAttributes="missingMandatoryAttributes"
            delete-null-default-values="deleteNullDefaultValues()"
          ></div>
        </div>
        <div ng-switch-when="java.lang.Float">
          <div
            javalangdouble
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            missingMandatoryAttributes="missingMandatoryAttributes"
            delete-null-default-values="deleteNullDefaultValues()"
          ></div>
        </div>
        <div ng-switch-when="java.lang.Boolean">
          <div
            javalangboolean
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
          ></div>
        </div>
        <div ng-switch-when="java.math.BigDecimal">
          <div
            javalangdouble
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            missingMandatoryAttributes="missingMandatoryAttributes"
            delete-null-default-values="deleteNullDefaultValues()"
          ></div>
        </div>
        <div ng-switch-when="java.lang.Integer">
          <div
            javalanginteger
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            missingMandatoryAttributes="missingMandatoryAttributes"
            delete-null-default-values="deleteNullDefaultValues()"
          ></div>
        </div>
        <div ng-switch-when="java.sql.Timestamp">
          <div
            javautildate
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            model-date-format="fieldData.showHours?'hours':'normal'"
            missingMandatoryAttributes="missingMandatoryAttributes"
          ></div>
        </div>
        <div ng-switch-when="java.sql.Time">
          <div
            javautildate
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            missingMandatoryAttributes="missingMandatoryAttributes"
          ></div>
        </div>
        <div ng-switch-when="java.sql.Date">
          <div
            javautildate
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            model-date-format="fieldData.showHours?'hours':'normal'"
            missingMandatoryAttributes="missingMandatoryAttributes"
          ></div>
        </div>

        <div ng-switch-when="g2c.attachment">
          <div
            gcattachment
            ftid="fti"
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            current="current"
            uploadfile="uploadfile"
          ></div>
        </div>

        <div ng-switch-when="g2c.attachments">
          <div
            gcattachments
            ftid="fti"
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
            current="current"
            uploadfile="uploadfile"
          ></div>
        </div>

        <div ng-switch-when="g2c.hyperlink">
          <div
            gchyperlink
            gcatt="att"
            result="res"
            initvalue="initvalue"
            class="input-group"
            field-data="fieldData"
          ></div>
        </div>
        <div ng-switch-default></div>
      </div>
      <div ng-if="(att.type === 'java.sql.Timestamp' || att.type === 'java.util.Date') && fieldsApplyCurrentDate" 
             ng-click="fieldsApplyCurrentDateChange(true)"
             ng-attr-title="{{(fieldsApplyCurrentDate[att.name] ? 'gcimportfeatures.disableSystemeDate' : 'gcimportfeatures.enableSystemeDate')  | translate}}">
        <i ng-class="fieldsApplyCurrentDate[att.name] ? 'fa fa-calendar-check-o fontSize20 greenColor' : 'fa fa-calendar-o fontSize20'"></i>
      </div>
    </div>
    <i
      ng-if="att.showHelpTooltip"
      class="attribute-tooltip fa fa-info-circle"
      aria-hidden="true"
      ng-attr-title="{{att.helpTooltip}}">
    </i>
    <i
      ng-if="attTriggers && attTriggers.length>0"
      ng-class="att.showHelpTooltip ? 'r-15' : ''"
      class="attribute-tooltip fa fa-warning"
      aria-hidden="true"
      ng-attr-title="{{attTriggersMsg}}">
    </i>
  </div>
</div>
