diff --git a/app/assets/javascripts/directives/cart.coffee.erb b/app/assets/javascripts/directives/cart.coffee.erb index 7d0dbdd90..9b7cd5f0c 100644 --- a/app/assets/javascripts/directives/cart.coffee.erb +++ b/app/assets/javascripts/directives/cart.coffee.erb @@ -22,6 +22,7 @@ Application.Directives.directive 'cart', [ '$rootScope', '$uibModal', 'dialogs', afterPayment: '=' reservableId: '@' reservableType: '@' + reservableName: '@' templateUrl: '<%= asset_path "shared/_cart.html" %>' link: ($scope, element, attributes) -> ## will store the user's plan if he choosed to buy one diff --git a/app/assets/templates/machines/reserve.html.erb b/app/assets/templates/machines/reserve.html.erb index 7c1d00ff5..262201554 100644 --- a/app/assets/templates/machines/reserve.html.erb +++ b/app/assets/templates/machines/reserve.html.erb @@ -57,7 +57,8 @@ on-slot-cancel-success="markSlotAsRemoved" after-payment="afterPayment" reservable-id="{{machine.id}}" - reservable-type="Machine"> + reservable-type="Machine" + reservable-name="{{machine.name}}">

diff --git a/app/assets/templates/shared/_cart.html.erb b/app/assets/templates/shared/_cart.html.erb index 5ee364cf1..a3edf91b6 100644 --- a/app/assets/templates/shared/_cart.html.erb +++ b/app/assets/templates/shared/_cart.html.erb @@ -63,7 +63,7 @@

- {{ 'you_have_settled_the_following_machine_hours' | translate }} {{machine.name}}: + {{ 'you_have_settled_the_following_machine_hours' | translate }} {{reservableName}}:
{{ 'datetime_to_time' | translate:{START_DATETIME:(paidSlot.start | amDateFormat:'LLLL'), END_TIME:(paidSlot.end | amDateFormat:'LT') } }}