show message in case no book or visit
authorrougeronj
Fri, 16 Oct 2015 12:16:20 +0200
changeset 189 0ffed992c271
parent 188 fd75c66c8e30
child 190 71552ee860b9
show message in case no book or visit
client/app/books/books.html
client/app/my_visit/my_visit.html
client/app/visites/visites.html
--- a/client/app/books/books.html	Thu Oct 15 16:33:32 2015 +0200
+++ b/client/app/books/books.html	Fri Oct 16 12:16:20 2015 +0200
@@ -1,6 +1,4 @@
-
-
-<accordion close-others="false">
+<accordion ng-show="books.length" close-others="false">
     <accordion-group ng-repeat="book in books" is-open=true>
 
         <accordion-heading>
@@ -31,4 +29,8 @@
     
 </accordion>
 
+<p ng-hide=books.length>
+    Vous n'avez pas encore ajouté de Book
+ </p>
+
 <a class="btn btn-default" ng-click="addBook()"><span class="glyphicon glyphicon-plus"></span></a>
\ No newline at end of file
--- a/client/app/my_visit/my_visit.html	Thu Oct 15 16:33:32 2015 +0200
+++ b/client/app/my_visit/my_visit.html	Fri Oct 16 12:16:20 2015 +0200
@@ -1,4 +1,4 @@
-<accordion close-others="false">
+<accordion ng-show="last_visit" close-others="false">
   <accordion-group is-open=true>
     <accordion-heading>
 
@@ -18,4 +18,9 @@
             </li>
         </ul>
     </accordion-group>
-</accordion>
\ No newline at end of file
+</accordion>
+
+ <p ng-hide="last_visit">
+    Vous n'avez pas encore effectué de visites
+ </p>
+    
\ No newline at end of file
--- a/client/app/visites/visites.html	Thu Oct 15 16:33:32 2015 +0200
+++ b/client/app/visites/visites.html	Fri Oct 16 12:16:20 2015 +0200
@@ -1,4 +1,4 @@
-<accordion close-others="false">
+<accordion ng-show="visits.length" close-others="false">
     <accordion-group ng-repeat="visit in visits | orderBy: 'date' " is-open=true>
 
         <accordion-heading>
@@ -21,4 +21,9 @@
       
     </accordion-group>
     
-</accordion>
\ No newline at end of file
+</accordion>
+
+ <p ng-hide="visits.length">
+    Vous n'avez pas encore effectué de visites
+ </p>
+    
\ No newline at end of file