show books without parents and idArticle (books created from scratch)
authorrougeronj
Wed, 08 Apr 2015 17:16:31 +0200
changeset 84 57a60c21a059
parent 83 6a169ef52314
child 85 5c8d95d96c58
show books without parents and idArticle (books created from scratch) minor fix in books.html
client/app/books/books.html
client/app/search/modal.html
--- a/client/app/books/books.html	Wed Apr 08 17:02:32 2015 +0200
+++ b/client/app/books/books.html	Wed Apr 08 17:16:31 2015 +0200
@@ -13,7 +13,7 @@
 		        <a class="pull-right" ng-click="deleteItem(childBook)"><span class="glyphicon glyphicon-minus"></span></a>
         </div>
 	</accordion-group>
-	<accordion-group ng-repeat="parentBook in books | filter:{ parent_visit: 'null', idArticle: 'null' }" is-open=true>
+	<accordion-group is-open=true>
 		<accordion-heading>
 			Autres Books
 		</accordion-heading>
--- a/client/app/search/modal.html	Wed Apr 08 17:02:32 2015 +0200
+++ b/client/app/search/modal.html	Wed Apr 08 17:16:31 2015 +0200
@@ -4,7 +4,14 @@
 
 <div class="modal-body ng-scope">
 	<ul class="row ">
-		<li class="" ng-repeat="i in books | filter:{parent_visit:'!null'}">
+		Les books de vos visites:
+		<li class="" ng-repeat="i in books | filter:{parent_visit:'!null'}:filter:{ parent_visit: 'null', idArticle: 'null' }">
+			<div>
+				<a ng-click="addToBook(i.id)">{{ i.title }}</a>
+			</div>
+		</li>
+		Autres Books:
+		<li class="" ng-repeat="i in books | filter:{ parent_visit: 'null', idArticle: 'null' }">
 			<div>
 				<a ng-click="addToBook(i.id)">{{ i.title }}</a>
 			</div>