client/app/books/book.html
author rougeronj
Fri, 22 May 2015 12:47:16 +0200
changeset 91 f7a844a9079e
parent 81 ef4d8ed6eef2
child 98 e165f7647ae3
permissions -rw-r--r--
merge the changes of Camille
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     1
<accordion close-others="false"> 
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     2
	<accordion-group is-open=true>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     3
		<accordion-heading>  
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     4
			<a class="title" ng-click="$event.stopPropagation();" href="#/books/{{ parentBook.id }}">{{ parentBook.title }}</a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     5
			<a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation();"><span class="glyphicon glyphicon-share"></span></a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     6
			<a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation();"><span class="glyphicon glyphicon-cog"></span></a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     7
			<a class="pull-right" ng-click="$event.stopPropagation();" href="#/slideshow/{{ parentBook.id }}"><span class="glyphicon glyphicon-eye-open"></span></a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     8
		</accordion-heading>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
     9
            
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    10
		<a class="nbrObjects">{{parentBook.slides.length}} objets</a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    11
        <ul ui-sortable="sortableOptions" ng:model="parentBook.slides" class="list-unstyled list-inline gallery container">
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    12
			<li class="col-md-2 item" ng-repeat="i in parentBook.slides">
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    13
	            <div class="img-ctn">
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    14
                	<img class="img img-responsive image" ng-src="{{ i.details.images[0] }}" />
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    15
	                <p>{{ i.details.title }}</p>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    16
	
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    17
                    <div class="gallery-buttons">
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    18
						<a class="btn btn-default" href="#/slide/{{ i.id }}"><span class="glyphicon glyphicon-pencil"></span></a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    19
						<a class="btn btn-default" ng-click="toggleFavorite($index)"><span ng-class="{'glyphicon-star': i.favorite, 'glyphicon-star-empty': !i.favorite}" class="glyphicon"></span></a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    20
						<a class="btn btn-default" ng-click="toggleModal($index)"><span class="glyphicon glyphicon-plus"></span></a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    21
						<a class="btn btn-default" ng-click="deleteItem($index)"><span class="glyphicon glyphicon-trash"></span></a>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    22
					</div>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    23
				</div>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    24
			</li>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    25
		</ul>
24
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    26
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    27
		<div class="book in books | filter:{ id: parentBook.parent_visit }:true">
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    28
			{{book.title}}
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    29
		</div>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    30
	</accordion-group>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 81
diff changeset
    31
</accordion>