client/app/books/books.html
author rougeronj
Thu, 04 Jun 2015 20:10:38 +0200
changeset 114 e4ffc4e13a8e
parent 106 cb13a9009bf5
child 146 c6fa8ee3f562
permissions -rw-r--r--
add a token field to the initialisation of the ammico app so the server can pass it and auto login with jwt
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
     1
24
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     2
75
288fb435874e Render parent books, child books, and other books separately - minor clean in modal.html
rougeronj
parents: 69
diff changeset
     3
<accordion close-others="false">
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     4
    <accordion-group ng-repeat="book in books | filter:{ parent_visit: '!null', idArticle: 'null' }" is-open=true>
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
        <accordion-heading>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
     7
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     8
            <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
     9
            <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
    10
            <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
    11
            <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
    12
            <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
    13
        
69
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    14
        </accordion-heading>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
    15
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    16
        <p class="nbrObjects">{{book.count}} objets</p>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
    17
        
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    18
        <div class="list-books" ng-repeat="childBook in books | filter:{ parent_visit: book.id }:true">
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    19
                <a href="#/books/{{ childBook.id }}">{{ childBook.title }}</a>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    20
                <a class="pull-right" ng-click="deleteItem(childBook)"><span class="glyphicon glyphicon-minus"></span></a>
75
288fb435874e Render parent books, child books, and other books separately - minor clean in modal.html
rougeronj
parents: 69
diff changeset
    21
        </div>
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    22
        
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 98
diff changeset
    23
        <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
    24
            <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
    25
                <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
    26
            </li>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    27
        </ul>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
    28
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    29
        <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
    30
                {{parentBook.title }}
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    31
        </div>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    32
 
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    33
        
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 84
diff changeset
    34
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    35
    </accordion-group>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    36
    
69
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    37
</accordion>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    38
53
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    39
<a class="btn btn-default" ng-click="addBook()"><span class="glyphicon glyphicon-plus"></span></a>