client/app/search/search.html
author rougeronj
Fri, 03 Apr 2015 15:03:04 +0200
changeset 63 bd7bcfc86232
parent 54 ccb586464a6f
child 96 3542155549e4
permissions -rw-r--r--
small update in models : idUser and idArtcle are not required anymore to allow anyone to connect and add a new empty book

<h1>
	Recherche <span ng-if="q !='' "> : {{ q }}</span>
</h1>
<h4 class="subtitle" ng-if="results.nhits>0">{{ results.nhits }} résultat(s)</h4>

<div ng-if="results.nhits>0">
	<div class="row search-item" ng-repeat="h in results.hits"
		ng-init="h.imgbig=false">
		<div ng-class="{'col-md-5': h.imgbig, 'col-md-3': !h.imgbig}">
			<img ng-src="{{ h.metas_dict.images }}" ng-class="{'search-img-max': !h.imgbig}" ng-click="h.imgbig=!h.imgbig" />
		</div>
		<div ng-class="{'col-md-5': h.imgbig, 'col-md-7': !h.imgbig}">
			<p>
				<strong>Nom&nbsp;:</strong> {{ h.metas_dict.name }}
			</p>
			<p>
				<strong>Description&nbsp;:</strong> {{ h.metas_dict.description }}
			</p>
			<div ng-show="h.imgbig">
				<p>
					<small><strong>Classification&nbsp;:</strong> {{ h.metas_dict.classification }}</small>
				</p>
				<p>
					<small><strong>Propriétaire actuel&nbsp;:</strong> {{ h.metas_dict.currentcustody }}</small>
				</p>
				<p>
					<small><strong>Ancien propriétaire&nbsp;:</strong> {{ h.metas_dict.formercustody }}</small>
				</p>
				<p>
					<small><strong>Mesures&nbsp;:</strong> {{ h.metas_dict.measures }}</small>
				</p>
				<p>
					<small><strong>Acteurs&nbsp;:</strong> {{ h.metas_dict.actors }}</small>
				</p>
				<p>
					<small><strong>Lieux&nbsp;:</strong> {{ h.metas_dict.places }}</small>
				</p>
			</div>
		</div>
		<div class="col-md-1">
			<a class="btn btn-default" ng-click="toggleModal($index)"><span class="glyphicon glyphicon-plus"></span></a>
			<a class="btn btn-default" ng-click="h.imgbig=!h.imgbig"><span class="glyphicon glyphicon-eye-open"></span></a>
		</div> 		
	</div>
</div>