diff --git a/app/scripts/app.js b/app/scripts/app.js index b03d9e9a..38773984 100644 --- a/app/scripts/app.js +++ b/app/scripts/app.js @@ -20,7 +20,8 @@ angular 'ui.select', 'ui.bootstrap-slider', 'ui.keypress', - 'ui.grid' + 'ui.grid', + 'ui.grid.edit' ]) .config(function($routeProvider) { $routeProvider diff --git a/app/scripts/controllers/commonmap.js b/app/scripts/controllers/commonmap.js index 80f862ff..ebbb1bca 100644 --- a/app/scripts/controllers/commonmap.js +++ b/app/scripts/controllers/commonmap.js @@ -79,19 +79,28 @@ angular.module('accessimapEditeurDerApp') 'f0': 'Aucune interaction', 'f1': 'Valeur OSM' }, { - 'id': 'expandable', + 'id': 'Guidage', 'f0': false, - 'f1': false + 'f1': true, + 'type': 'boolean' }, { 'id': 'title', 'f0': 'Titre par défaut', }]; + var checkboxTemplate = '
{{row.entity[col.field]}}
'; + $scope.interactiveFilters = { - data: $scope.interactiveFiltersInit + data: $scope.interactiveFiltersInit, + showSelectionCheckbox: true, + enableSorting: false, + columnDefs: [ + { name: 'id', enableCellEdit: false }, + { name: 'f0', cellTemplate: checkboxTemplate }, + { name: 'f1', cellTemplate: checkboxTemplate } + ], }; - d3.select('svg').append('defs') .append('marker') .attr('id', 'midmarker') diff --git a/app/views/commonmap.html b/app/views/commonmap.html index f4a065aa..dc945988 100644 --- a/app/views/commonmap.html +++ b/app/views/commonmap.html @@ -102,6 +102,6 @@ Ajouter des interactions -
+