ng-show="showPagination"
ng-class="{disabled : onFirstPage()}"
ng-click="offset(0);collect()"
- title="[% l('Start') %]">
+ title="[% l('Start') %]"
+ aria-label="[% l('Start') %]">
<span class="glyphicon glyphicon-fast-backward"></span>
</button>
<!-- previous page -->
<button type="button" class="btn btn-default"
ng-show="showPagination"
+
ng-class="{disabled : onFirstPage()}"
ng-click="decrementPage()"
- title="[% l('Previous Page') %]">
+ title="[% l('Previous Page') %]"
+ aria-label="[% l('Previous Page') %]">
<span class="glyphicon glyphicon-backward"></span>
</button>
ng-class="{disabled : !hasNextPage()}"
ng-disabled="!hasNextPage()"
ng-click="incrementPage()"
- title="[% l('Next Page') %]">
+ title="[% l('Next Page') %]"
+ aria-label="[% l('Next Page') %]">
<span class="glyphicon glyphicon-forward"></span>
</button>
<div class="btn-group" uib-dropdown is-open="gridRowCountIsOpen" ng-show="showPagination">
<button type="button" title="[% l('Select Row Count') %]"
+ aria-label="[% l('Select Row Count') %]"
class="btn btn-default" uib-dropdown-toggle>
[% l('Rows [_1]', '{{limit()}}') %]
<span class="caret"></span>
<div class="btn-group" uib-dropdown is-open="gridColumnPickerIsOpen" ng-show="showPicker">
<button type="button"
- class="btn btn-default" uib-dropdown-toggle>
+ class="btn btn-default" uib-dropdown-toggle
+ aria-label="Grid Options">
<span class="caret"></span>
</button>
<ul class="pull-right eg-grid-column-picker" uib-dropdown-menu>
$scope.get_copy_statuses().then(function() {
angular.forEach(next_statuses, function(st) {
if (egCore.env.ccs.map[st])
- $scope.next_statuses.push(egCore.env.ccs.map[st]);
+ $scope.next_statuses.push(egCore.env.ccs.map[st]);
});
$scope.params.the_next_status = $scope.next_statuses[0].id();
});
replace: true,
scope: {
list: "=", // list of strings
+ comboBoxAria: "@",
selected: "=",
onSelect: "=",
egDisabled: "=",
},
template:
'<div class="input-group">'+
- '<input placeholder="{{placeholder}}" type="text" ng-disabled="egDisabled" class="form-control" ng-model="selected" ng-change="makeOpen()" focus-me="focusMe">'+
+ '<input placeholder="{{placeholder}}" type="text" aria-labelledby="{{comboBoxAria}}" ng-disabled="egDisabled" class="form-control" ng-model="selected" ng-change="makeOpen()" focus-me="focusMe">'+
'<div class="input-group-btn" uib-dropdown ng-class="{open:isopen}">'+
- '<button type="button" ng-click="showAll()" ng-disabled="egDisabled" class="btn btn-default" uib-dropdown-toggle><span class="caret"></span></button>'+
+ '<button type="button" aria-labelledby="{{comboBoxAria}}" ng-click="showAll()" ng-disabled="egDisabled" class="btn btn-default" uib-dropdown-toggle><span class="caret"></span></button>'+
'<ul uib-dropdown-menu class="dropdown-menu-right">'+
'<li ng-repeat="item in list|filter:selected:compare"><a href ng-click="changeValue(item)">{{item}}</a></li>'+
'<li ng-if="complete_list" class="divider"><span></span></li>'+
// optional typeahead placeholder text
label : '@',
+ // this value will be passed to aria-labelled by
+ orgAria : '@',
+
// optional name of settings key for persisting
// the last selected org unit
stickySetting : '@'
return {
scope : {
id : '@',
+ dateAria: '@',
closeText : '@',
ngModel : '=',
ngChange : '=',