<style>
  .widthCheckbox {
    min-width: 70px;
  }
</style>
<div>
  <h4 style=" font-weight: bold; color : #428bca; margin-bottom:5px">
    {{'aepintervention.intervFontainerie' | translate}}
  </h4>
  <button
    ng-disabled="res.int.intRep['intfont'].geometry==undefined"
    type="button"
    class="btn btn-default"
    ng-click="localiaseAno(res.int.intRep['intfont'])"
    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['intfont'].properties"
                ng-init="res.int.intRep['intfont'].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['intfont'].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['intfont'].properties"
                ng-init="res.int.intRep['intfont'].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.vanne' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_vanne'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.PIouPB' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_pibi'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.regulPression' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_regul'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].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.ventouse' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_vent'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.vidange' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_vid'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.bouchLavage' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_bl'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].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.boucharrosage' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_ba'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.sAntibeler' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_antib'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-4">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.borneFontaine' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_bf'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].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['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_autre'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].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['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'loc_nc'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].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['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'cause_presse'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].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['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'cause_purge'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].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['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'cause_ne'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-xs-3">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.appareilDetruit' |
                        translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'cause_appdetruit'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-3">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.ouvert' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'cause_ouvert'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-3">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.canaAutre' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'cause_autre'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].properties"
                      ></div>
                    </div>
                    <div class="col-xs-3">
                      <label
                        style="font-weight:200"
                        for="example-text-input"
                        class="col-form-label"
                        >{{'aepintervention.nonConnu' | translate}}</label
                      >
                      <div
                        form-field
                        fti="ftis['intfont']"
                        ftid="ftis['intfont'].uid"
                        map="map"
                        attname="'cause_nc'"
                        default=""
                        initvalue="res.int.intRep['intfont'].properties"
                        res="res.int.intRep['intfont'].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['intfont'].properties.font_observation"
            ></textarea>
          </div>
        </td>
      </tr>
    </tbody>
  </table>

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