client/app/visites/visites.html
author rougeronj
Fri, 16 Oct 2015 12:16:20 +0200
changeset 189 0ffed992c271
parent 170 533a98367f99
permissions -rw-r--r--
show message in case no book or visit
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="visits.length" close-others="false">
170
533a98367f99 filter book in the request through 'type' parameter instead of filtering on client side
rougeronj
parents: 146
diff changeset
     2
    <accordion-group ng-repeat="visit in visits | orderBy: 'date' " is-open=true>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents:
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>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     5
            <a class="title" ng-click="$event.stopPropagation();" href="#/visites/{{ visit.id }}">{{ visit.title }}</a>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
     6
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation();"><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
     7
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); edit()"><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
     8
            <a class="pull-right" ng-click="$event.stopPropagation();" href="#/slideshow/{{ visit.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
     9
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); addBook(visit.id)">Créer un Book</a>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents:
diff changeset
    10
        </accordion-heading>
f7a844a9079e merge the changes of Camille
rougeronj
parents:
diff changeset
    11
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    12
        <p class="nbrObjects">{{visit.count}} objets</p>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents:
diff changeset
    13
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    14
        <ul ng:model="slides" class="list-unstyled list-inline gallery container-fluid">
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    15
            
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    16
            <li class="item" ng-class="{'no-img': !slide.details.images[0]}" ng-repeat="slide in visit.slides">
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    17
                <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
    18
            </li>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    19
        </ul>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents:
diff changeset
    20
98
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    21
      
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    22
    </accordion-group>
e165f7647ae3 Makes an external template for a galleryItem and include them in the templates
rougeronj
parents: 91
diff changeset
    23
    
189
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    24
</accordion>
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    25
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    26
 <p ng-hide="visits.length">
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    27
    Vous n'avez pas encore effectué de visites
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    28
 </p>
0ffed992c271 show message in case no book or visit
rougeronj
parents: 170
diff changeset
    29