dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #42072
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21490: minor
------------------------------------------------------------
revno: 21490
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-12-18 10:15:32 +0100
message:
minor
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/event-layout.html
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/event-layout.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/event-layout.html 2015-12-17 16:15:10 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/event-layout.html 2015-12-18 09:15:32 +0000
@@ -1,6 +1,6 @@
<div class="row col-sm-12">
- <div ng-repeat="dhis2Event in allEventsSorted.slice(eventPagingStart, eventPagingEnd)">
- <div class="event-container" ng-click="getEventPage('BACKWARD')" ng-if="$index === 0 && eventPagingStart > 0">
+ <div ng-repeat="dhis2Event in allEventsSorted.slice(eventPagingStart, eventPagingEnd)" ng-init="$index = $index + 1">
+ <div class="event-container" ng-click="getEventPage('BACKWARD')" ng-if="$index === 1 && eventPagingStart > 0">
<br/>
{{'previous'| translate}}
</div>
@@ -9,10 +9,10 @@
{{dhis2Event.orgUnitName}}<br/>
{{dhis2Event.name}}
</div>
- <div class="arrow-container" ng-if="$index + 1 % (eventPagingEnd - eventPagingStart) > 1">
+ <div class="arrow-container" ng-if="$index < eventPageSize && $index + eventPagingStart < allEventsSorted.length">
<i class="fa fa-arrow-right"></i>
</div>
- <div class="event-container" ng-click="getEventPage('FORWARD')" ng-if="$index + 1 === (eventPagingEnd - eventPagingStart)">
+ <div class="event-container" ng-click="getEventPage('FORWARD')" ng-if="$index === eventPageSize && $index < allEventsSorted.length">
<br/>
{{'next'| translate}}
</div>