client/app/books/books.html
author rougeronj
Fri, 03 Apr 2015 16:21:27 +0200
changeset 69 88f76bf93465
parent 53 dac1df90b49e
child 75 288fb435874e
permissions -rw-r--r--
update list book view with accordeons and add delete fonction on a book
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     1
<p>Liste des books&nbsp;:</p>
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     2
69
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
     3
<accordion>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
     4
	<accordion-group ng-repeat="i in books | orderBy:'-date'">
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
     5
		<accordion-heading>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
     6
			{{ i.title }}
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
     7
            <a class="pull-right" ng-click="$event.stopPropagation();" href="#/slideshow/{{ i.id }}"><span class="glyphicon glyphicon-eye-open"></span></a>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
     8
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); deleteItem($index)"><span class="glyphicon glyphicon-minus"></span></a>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
     9
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); edit()"><span class="glyphicon glyphicon-wrench"></span></a>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    10
        </accordion-heading>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    11
	</accordion-group>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    12
</accordion>
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    13
53
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    14
<a class="btn btn-default" ng-click="addBook()"><span class="glyphicon glyphicon-plus"></span></a>