client/app/books/books.html
author ymh <ymh.work@gmail.com>
Wed, 08 Jan 2020 17:49:53 +0100
changeset 205 147583c43f0d
parent 189 0ffed992c271
permissions -rw-r--r--
add poetry on sync
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
189
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
     1
<accordion ng-show="books.length" close-others="false">
170
533a98367f99 filter book in the request through 'type' parameter instead of filtering on client side
rougeronj
parents: 166
diff changeset
     2
    <accordion-group ng-repeat="book in books" is-open=true>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
     3
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     4
        <accordion-heading>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
     5
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     6
            <a class="title" ng-click="$event.stopPropagation();" href="#/books/{{ book.id }}">{{ book.title }}</a>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     7
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); addBook(book.id)"><span class="glyphicon glyphicon-share"></span></a>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     8
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation();"><span class="glyphicon glyphicon-cog"></span></a>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     9
            <a class="pull-right" ng-click="$event.stopPropagation();" href="#/slideshow/{{ book.id }}"><span class="glyphicon glyphicon-eye-open"></span></a>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    10
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); addBook(book.id)">Nouveau Book</a>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    11
        
69
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    12
        </accordion-heading>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
    13
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    14
        <p class="nbrObjects">{{book.count}} objets</p>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
    15
        
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 98
diff changeset
    16
        <ul ng:model="slides" class="list-inline gallery container-fluid">
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    17
            <li class="item" ng-class="{'no-img': !slide.details.images[0]}" ng-repeat="slide in book.slides">
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    18
                <ng-include src="'books/galleryItem.html'"></ng-include>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    19
            </li>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    20
        </ul>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
    21
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    22
        <div ng-repeat="parentBook in books | filter:{ id: book.parent_visit }:true" >
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    23
                {{parentBook.title }}
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    24
        </div>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    25
 
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    26
        
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
    27
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    28
    </accordion-group>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    29
    
69
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    30
</accordion>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    31
189
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    32
<p ng-hide=books.length>
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    33
    Vous n'avez pas encore ajouté de Book
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    34
 </p>
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    35
53
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    36
<a class="btn btn-default" ng-click="addBook()"><span class="glyphicon glyphicon-plus"></span></a>