client/app/search/search.html
author rougeronj
Tue, 31 Mar 2015 12:24:05 +0200
changeset 47 dd750778535c
parent 12 1ada9d221ba3
child 54 ccb586464a6f
permissions -rw-r--r--
udate add fonction from a research and add a modal to select the book we want to add the slide

<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 popover-placement="right" popover-trigger="click" 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>