Skip to content

Commit

Permalink
Issue #91: affichage du tableau et chargement des données initiales
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericbonifas committed Jul 21, 2015
1 parent 5a003df commit 79a0070
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="bower_components/seiyria-bootstrap-slider/dist/css/bootstrap-slider.css" />
<link rel="stylesheet" href="bower_components/fontawesome/css/font-awesome.css" />
<link rel="stylesheet" href="bower_components/angular-ui-grid/ui-grid.css" />
<!-- endbower -->
<!-- endbuild -->
<!-- build:css(.tmp) styles/main.css -->
Expand Down Expand Up @@ -94,6 +95,7 @@ <h3 class="text-muted">Editeur de DER</h3>
<script src="bower_components/file-saver.js/FileSaver.js"></script>
<script src="bower_components/turf/turf.min.js"></script>
<script src="bower_components/angular-ui-utils/ui-utils.js"></script>
<script src="bower_components/angular-ui-grid/ui-grid.js"></script>
<!-- endbower -->
<!-- endbuild -->

Expand Down
3 changes: 2 additions & 1 deletion app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ angular
'angularSpinner',
'ui.select',
'ui.bootstrap-slider',
'ui.keypress'
'ui.keypress',
'ui.grid'
])
.config(function($routeProvider) {
$routeProvider
Expand Down
16 changes: 16 additions & 0 deletions app/scripts/controllers/commonmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ angular.module('accessimapEditeurDerApp')
$scope.rightMenuVisible = true;
};

$scope.interactiveFiltersInit = [{
'id': 'name',
'f0': 'Aucune interaction'
}, {
'id': 'expandable',
'f0': false
}, {
'id': 'title',
'f0': 'Titre par défaut'
}];

$scope.interactiveFilters = {
data: $scope.interactiveFiltersInit
};


d3.select('svg').append('defs')
.append('marker')
.attr('id', 'midmarker')
Expand Down
5 changes: 5 additions & 0 deletions app/styles/map.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@
.menu-right {
background-color: #EEEEEE;
}

.myGrid {
width: 500px;
height: 250px;
}
3 changes: 2 additions & 1 deletion app/views/commonmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
<span class="pull-right" id="slide-submenu" ng-click="hideMenu()">
<i class="fa fa-times"></i>
</span>
Ici, affichage des filtres d'interaction
Ajouter des interactions
<div ui-grid="interactiveFilters" class="myGrid"></div>
</div>

3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"file-saver.js": "~1.20150304.1",
"turf": "~2.0.2",
"fontawesome": "~4.3.0",
"angular-ui-utils": "~0.2.3"
"angular-ui-utils": "~0.2.3",
"angular-ui-grid": "~3.0.1"
},
"devDependencies": {
"angular-mocks": "~1.3.0",
Expand Down

0 comments on commit 79a0070

Please sign in to comment.