Merge remote-tracking branch 'origin/v2' into v2

pull/3/head
KostyaDanovsky 2015-11-25 13:13:03 +03:00
commit 823fb46fe6
11 changed files with 94 additions and 22 deletions

View File

@ -25,6 +25,10 @@ $panel-title-height: 35px;
&.large-panel { &.large-panel {
height: $large-panel-height; height: $large-panel-height;
} }
&.viewport100 {
height: calc(100vh - 212px);
}
&.with-scroll { &.with-scroll {
.panel-body { .panel-body {
height: calc(100% - #{$panel-title-height}); height: calc(100% - #{$panel-title-height});

View File

@ -23,7 +23,11 @@ blurAdminApp.directive('contentTop', ['$location', function ($location) {
'/tables': 'Tables', '/tables': 'Tables',
'/typography': 'Typography', '/typography': 'Typography',
'/form-layouts': 'Form Layouts', '/form-layouts': 'Form Layouts',
'/form-inputs': 'Form Inputs' '/form-inputs': 'Form Inputs',
'/maps/gmap': 'Google Map',
'/maps/leaflet': 'Leaflet Map',
'/maps/line': 'Line Map',
'/maps/bubble': 'Bubble Map'
}; };
$scope.$watch(function () { $scope.$watch(function () {

View File

@ -63,7 +63,24 @@ blurAdminApp.directive('sidebar', function () {
{ {
title: 'Maps', title: 'Maps',
icon: 'ion-ios-location-outline', icon: 'ion-ios-location-outline',
root: '#/maps' subMenu: [
{
title: 'Google Maps',
root: '#/maps/gmap'
},
{
title: 'Leaflet',
root: '#/maps/leaflet'
},
{
title: 'Bubble Map',
root: '#/maps/bubble'
},
{
title: 'Line Map',
root: '#/maps/line'
}
]
}, },
{ {
title: 'User Profile', title: 'User Profile',

View File

@ -1,7 +1,7 @@
<div class="widgets"> <div class="widgets">
<div ng-repeat="widgetBlock in ngModel" ng-class="{'row': widgetBlock.widgets.length > 1}"> <div ng-repeat="widgetBlock in ngModel" ng-class="{'row': widgetBlock.widgets.length > 1}">
<div ng-repeat="widgetCol in widgetBlock.widgets" ng-class="{'col-md-6': widgetBlock.widgets.length === 2}" ng-model="widgetCol" class="widgets-block"> <div ng-repeat="widgetCol in widgetBlock.widgets" ng-class="{'col-md-6': widgetBlock.widgets.length === 2}" ng-model="widgetCol" class="widgets-block">
<blur-panel title="{{::widget.title}}" ng-repeat="widget in widgetCol" class-container="with-scroll"> <blur-panel title="{{::widget.title}}" ng-repeat="widget in widgetCol" class-container="with-scroll {{widget.panelClass}}">
<div ng-include="widget.url"></div> <div ng-include="widget.url"></div>
</blur-panel> </blur-panel>
</div> </div>

View File

@ -712,4 +712,8 @@ a.fc-more {
content: "="; content: "=";
} }
} }
}
.fc-day-grid-container.fc-scroller {
height: auto!important;
} }

View File

@ -3,33 +3,77 @@
angular.module('BlurAdmin.mapsPage', ['ngRoute']) angular.module('BlurAdmin.mapsPage', ['ngRoute'])
.config(['$routeProvider', function ($routeProvider) { .config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/maps', { $routeProvider.when('/maps/gmap', {
templateUrl: 'app/pages/maps/maps.html', templateUrl: 'app/pages/maps/maps.html',
controller: 'mapsPageCtrl' controller: 'gmapPageCtrl'
});
$routeProvider.when('/maps/leaflet', {
templateUrl: 'app/pages/maps/maps.html',
controller: 'leafletPageCtrl'
});
$routeProvider.when('/maps/bubble', {
templateUrl: 'app/pages/maps/maps.html',
controller: 'mapBubblePageCtrl'
});
$routeProvider.when('/maps/line', {
templateUrl: 'app/pages/maps/maps.html',
controller: 'mapLinePageCtrl'
}); });
}]) }])
.controller('mapsPageCtrl', ['$scope', function ($scope) { .controller('gmapPageCtrl', ['$scope', function ($scope) {
$scope.widgetBlocks = [ $scope.widgetBlocks = [
{ {
widgets: [ widgets: [
[ [
{ {
title: 'Google Maps', title: 'Google Maps',
url: 'app/pages/maps/widgets/google-maps/google-maps.html' url: 'app/pages/maps/widgets/google-maps/google-maps.html',
}, panelClass: 'viewport100'
{
title: 'Map with Lines',
url: 'app/pages/maps/widgets/map-lines/map-lines.html'
} }
], ]
]
}
];
}])
.controller('leafletPageCtrl', ['$scope', function ($scope) {
$scope.widgetBlocks = [
{
widgets: [
[
{
title: 'Leaflet',
url: 'app/pages/maps/widgets/leaflet/leaflet.html',
panelClass: 'viewport100'
}
]
]
}
];
}])
.controller('mapBubblePageCtrl', ['$scope', function ($scope) {
$scope.widgetBlocks = [
{
widgets: [
[ [
{ {
title: 'Map with Bubbles', title: 'Map with Bubbles',
url: 'app/pages/maps/widgets/map-bubbles/map-bubbles.html' url: 'app/pages/maps/widgets/map-bubbles/map-bubbles.html',
}, panelClass: 'viewport100'
}
]
]
}
];
}])
.controller('mapLinePageCtrl', ['$scope', function ($scope) {
$scope.widgetBlocks = [
{
widgets: [
[
{ {
title: 'Leaflet', title: 'Map with Lines',
url: 'app/pages/maps/widgets/leaflet/leaflet.html' url: 'app/pages/maps/widgets/map-lines/map-lines.html',
panelClass: 'viewport100'
} }
] ]
] ]

View File

@ -1,5 +1,4 @@
#google-maps { #google-maps {
width: 100%; width: 100%;
height: 400px; height: calc(100vh - 277px);
} }

View File

@ -1,5 +1,5 @@
#leaflet-map { #leaflet-map {
height: 400px; height: calc(100vh - 277px);
} }
/* required styles */ /* required styles */

View File

@ -1,6 +1,6 @@
#map-bubbles { #map-bubbles {
width: 100%; width: 100%;
height: 400px; height: calc(100vh - 277px);
font-size : 11px; font-size : 11px;
} }

View File

@ -1,4 +1,4 @@
#map-lines { #map-lines {
width: 100%; width: 100%;
height: 400px; height: calc(100vh - 277px);
} }

View File

@ -1,6 +1,6 @@
.modal-buttons { .modal-buttons {
margin-top: -12px; margin-top: -12px;
margin-right: -24px; margin-right: -22px;
button { button {
float: left; float: left;
margin-right: 24px; margin-right: 24px;