<div style="width:300px;" class="input-group">
  <div
    configwidget
    temp="js\XG\widgets\mapapp\simpleIntervention\views\config\config.html"
  ></div>
  <div bs-active-pane="tabs.activeTab" ng-model="tabs.activeTab" bs-tabs>
    <div ng-repeat="tab in tabs" title="{{ tab.title }}" bs-pane></div>
  </div>
  <!--Search-->
  <div ng-show="tabs.activeTab == 0">
    <!--{{searchparam}}
	<br>
	{{whereclause}}-->
    <div ng-repeat="att in searchAttribute" ng-switch on="att.type">
      <div gcattributefticomponent gcatt="att" result="searchparam"></div>
    </div>
    <div>
      <button type="button" class="btn btn-default" ng-click="search()">
        <span class="glyphicon glyphicon-filter"></span>
      </button>
    </div>

    <table class="table">
      <tr>
        <td>
          action
        </td>
        <td>
          gid
        </td>
        <td ng-repeat="f in searchView.fields">
          {{f.name}}
        </td>
      </tr>
      <tr ng-repeat="p in currentselect.features">
        <td>
          <div class="btn-group btn-group-justified" role="group" aria-label="">
            <div class="btn-group" role="group">
              <button
                type="button"
                class="btn btn-default btn-xs"
                ng-click="locate(p)"
              >
                <span class="glyphicon glyphicon-screenshot"></span>
              </button>
            </div>
            <div class="btn-group  btn-group-xs" role="group">
              <button
                type="button"
                class="btn btn-default btn-xs"
                ng-click="edit(p)"
              >
                <span class="glyphicon glyphicon-star"></span>
              </button>
            </div>
            <div class="btn-group" role="group">
              <button type="button" class="btn btn-default btn-xs">
                <span
                  class="glyphicon glyphicon-remove-sign"
                  ng-click="delete(p)"
                ></span>
              </button>
            </div>
          </div>
        </td>

        <td>
          {{p.id}}
        </td>
        <td ng-repeat="f in searchView.fields">
          {{p.properties[f.name]}}
        </td>
      </tr>
    </table>

    <div>
      <button type="button" class="btn btn-default" ng-click="add()">
        <span class="glyphicon glyphicon-plus"></span>
      </button>
    </div>
  </div>
  <!--Search Select-->
  <div ng-show="tabs.activeTab == 1">
    <div
      selectinterv
      fti="relatedfti"
      map="map"
      result="relatedFeature"
      toolbarwidget="toolBarWidget"
    ></div>
    <button type="button" class="btn btn-default" ng-click="generatebuffer()">
      <span class="glyphicon glyphicon-plus"></span>
    </button>
  </div>
  <div ng-show="tabs.activeTab == 2">
    <div ng-repeat="att in currentfti.attributes">
      <div
        gcattributefticomponent
        gcatt="att"
        res="intervFeature.properties"
        initvalue="intervFeature.properties[att.name]"
      ></div>
    </div>
    <div>
      <button type="button" class="btn btn-default" ng-click="save()">
        <span class="glyphicon glyphicon-floppy-disk"></span>
      </button>
    </div>
  </div>
</div>
