<div id="searchresultdiv_{{$id}}">
	<table ng-model="features" id="table_{{thisId}}" ng-show="!displayModify">
		<tr>
		    <th style="min-width:130px;">Commandes
		    </th>
			<th align="center" ng-repeat="header in attributes track by $index"  >
			&nbsp;&nbsp;{{header.alias}}
			</th>
		</tr>
		<!-- 
		<tr ng-repeat="obj in features" >
		 -->
		<tr ng-repeat="obj in features" id="line_{{thisId}}_{{obj.id}}" >
			<td>
				<button ng-if="cmdView && obj.geometry!=undefined" title="Localiser" ng-click="gotoOnClick(obj)">
					<img src="img/common/16px-System-search.png"></img>
				</button>
				<button ng-if="cmdEdit" title="Editer" ng-click="modifyOnClick(obj)">
					<img src="img/common/16px-Text-x-generic_with_pencil.png" ></img>
				</button>
				<button ng-if="cmdDelete" title="Supprimer" ng-click="deleteOnClick(obj)">
					<img src="img/common/16px-Edit-cut.png"></img>
				</button>
			</td>
			<td ng-repeat="att in attributes track by $index" valign="middle">
			
				<input class="form-group" type="text" ng-if="att.type=='java.lang.String' || att.type=='java.lang.Integer'"
					   value="{{getValueFor(obj,att)}}"  title="{{getValueFor(obj,att)}}"
					   disabled="disabled" style="color:#000000;" />
				<input class="form-group" type="button" ng-if="att.type=='g2c.attachment'" 
					    title="{{getValueFor(obj,att)}}" value="Voir" />
	
				<div class="form-group" ng-if="att.type=='java.sql.Date'"
					ng-class="{'has-error': datepickerForm.date.$invalid}">
					  <input type="text" class="form-control"
						  data-date-format="dd/MM/yyyy"
						  style="min-width:100px;"
						  ng-model="obj.properties[att.name]"
						  name="date"
						  bs-datepicker
						  data-autoclose="true"
						  disabled="disabled" />
				</div>
			</td>
		</tr>
	</table>
</div>
