<style>
  .widthCheckbox {
    min-width: 70px;
  }
</style>
<div>
  <h4 style=" font-weight: bold; color : #428bca; margin-bottom:5px">
    {{'aepintervention.intervRobinetterie' | translate}}
  </h4>
  <button
    ng-disabled="res.int.intRep['intRob'].geometry==undefined"
    type="button"
    class="btn btn-default"
    ng-click="localiaseAno(res.int.intRep['intRob'])"
    title="{{'bizedition.attributesPopupLocate'|translate}}"
  >
    <i class="fa fa-location-arrow"></i>
  </button>

  <table class="table">
    <thead>
      <tr>
        <th style="text-align:left;color : #ff4000;">
          {{'aepintervention.intervention' | translate}}
        </th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>
          <div class="row">
            <div class="col-xs-6">
              <label for="inputKey" class=" col-form-label"
                >{{'aepintervention.dateDebut' | translate}}</label
              >
              <div
                javautildate
                gcatt="{name:'date_debut'}"
                result="res.int.intRep['intRob'].properties"
                ng-init="res.int.intRep['intRob'].properties"
                class="input-group ng-isolate-scope"
                data-type="date"
                field-data="fieldData"
              ></div>
            </div>
            <div class="col-xs-6">
              <label for="example-text-input" class="col-form-label">
                Agent</label
              >
              <div class="form-group">
                <select
                  class="form-control"
                  ng-model="res.int.intRep['intRob'].properties.agent"
                >
                  <option disabled selected hidden value>
                    -------------------
                  </option>
                  <option ng-repeat="ag in agents"> {{ag}} </option>
                </select>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-xs-6">
              <label for="inputKey" class=" col-form-label"
                >{{'aepintervention.dateFin' | translate}}</label
              >
              <div
                javautildate
                gcatt="{name:'date_fin'}"
                result="res.int.intRep['intRob'].properties"
                ng-init="res.int.intRep['intRob'].properties"
                class="input-group ng-isolate-scope"
                data-type="date"
                field-data="fieldData"
              ></div>
            </div>
          </div>

          <table class="table table-xs">
            <thead>
              <tr>
                <th style="text-align:left; padding-left:2px">
                  {{'aepintervention.localisation' | translate}}
                </th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class="row">
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.colPriseCharge' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'loc_col_pc'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.robPriseCharge' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'loc_rob_pc'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.redPression' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'loc_pression'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.purgeuse' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'loc_purge'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.compteur' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'loc_compt'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.robArret' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'loc_robarret'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.canaAutre' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'loc_autre'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.nonConnue' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'loc_nc'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                  </div>
                </td>
              </tr>
            </tbody>
          </table>

          <table class="table table-xs">
            <thead>
              <tr>
                <th style="text-align:left; padding-left:2px">
                  {{'aepintervention.cause' | translate}}
                </th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class="row">
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.presseEtoupe' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'cause_presse'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.purge' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'cause_purge'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.nonEtanche' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'cause_ne'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.appareilDetruit' |
                        translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'cause_appdetruit'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.canaAutre' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'cause_autre'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.nonConnu' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['introb']"
                        ftid="ftis['introb'].uid"
                        map="map"
                        attname="'cause_nc'"
                        default=""
                        initvalue="res.int.intRep['intRob'].properties"
                        res="res.int.intRep['intRob'].properties"
                      ></div>
                    </div>
                  </div>
                </td>
              </tr>
            </tbody>
          </table>

          <div class="row">
            <label for="example-text-input" class=" col-xs-4 col-form-label"
              >{{'aepintervention.observations' | translate}}</label
            >
            <textarea
              class="form-control"
              ng-model="res.int.intRep['intRob'].properties.rob_observation"
            ></textarea>
          </div>
        </td>
      </tr>
    </tbody>
  </table>

  <button
    type="button"
    ng-if="res.int.intRep['intRob'].id==undefined"
    ng-click="saveInterventionFontRob(res.int.intRep['intRob'],geomInterRob,selectedRob, ftis['introb'].uid, 'Ano_RepRob')"
    title="{{'common.save' | translate}}"
    class="btn btn-default"
  >
    <i class="glyphicon glyphicon-floppy-save"></i>
  </button>
  <button
    type="button"
    ng-if="res.int.intRep['intRob'].id!=undefined"
    ng-disabled="currentAnomalie.properties.etat=='Dossier clos'"
    class="btn btn-default"
    ng-click="updateIntervention(res.int.intRep['intRob'],ftis['introb'].uid)"
    title="{{'common.save' | translate}}"
  >
    <i class="glyphicon glyphicon-floppy-save"></i>
  </button>
  <button
    type="button"
    ng-if="res.int.intRep['intRob'].id!=undefined"
    ng-disabled="currentAnomalie.properties.etat=='Dossier clos'"
    class="btn btn-default"
    ng-click="removeIntReparationRobFont(res.int.intRep['intRob'],'Ano_RepRob',ftis['introb'].uid,ftis['anomalie'].uid)"
    title="{{'common.delete' | translate}}"
  >
    <i class="glyphicon glyphicon-trash"></i>
  </button>
</div>
