Menu modal sizing and title

This commit is contained in:
Ben Ramey
2014-06-17 22:20:36 -05:00
parent 0bddd8f69d
commit ab7fbe46ef
3 changed files with 53 additions and 40 deletions

View File

@@ -1,6 +1,7 @@
lunchControllers = angular.module 'lunchControllers'
lunchControllers.controller 'RunCtrl', ['$scope', 'socket', '$routeParams', ($scope, socket, $routeParams) ->
lunchControllers.controller 'RunCtrl', ['$scope', 'socket', '$routeParams', '$sce',
RunController = ($scope, socket, $routeParams, $sce) ->
$scope.show = false
$scope.progress = 0
$scope.numOrders = 0
@@ -16,6 +17,7 @@ lunchControllers.controller 'RunCtrl', ['$scope', 'socket', '$routeParams', ($sc
$scope.show = true
$scope.run = response
$scope.showMenuUrl = response.menuUrl
$scope.menuUrl = $sce.trustAsResourceUrl(response.menuUrl)
socket.get '/invitee', run_id: response.id, (inviteeResponse) ->
$scope.invitees = inviteeResponse

View File

@@ -24,9 +24,20 @@ body {
text-align: right;
padding-top: 0;
padding-bottom: 0;
.modal-title {
font-size: 2em;
padding: 15px 0 0 10px;
}
}
}
.modal-dialog {
width: 90vw;
height: 90vh;
max-height: 90vh;
max-width: 90vw;
}
}
#page {
.interior {
padding: 0 40px 20px;

View File

@@ -2,7 +2,7 @@
.modal-dialog.modal-lg
.modal-content
.modal-header
|  
h4.modal-title.pull-left {{ run.name }} Menu
button.close(type='button',data-dismiss='modal',aria-hidden='true') ×
.modal-body
h4.hidden.modal-title#menuModalLabel Menu