1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-21 12:29:03 +01:00

display reservable name in summary after payment

This commit is contained in:
Sylvain 2017-02-21 17:26:54 +01:00
parent 4fa171da9d
commit 76478bc075
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -57,7 +57,8 @@
on-slot-cancel-success="markSlotAsRemoved"
after-payment="afterPayment"
reservable-id="{{machine.id}}"
reservable-type="Machine"></cart>
reservable-type="Machine"
reservable-name="{{machine.name}}"></cart>
<uib-alert type="warning m">
<p class="text-sm">

View File

@ -63,7 +63,7 @@
</div>
<div class="widget-content no-bg auto wrapper" ng-show="events.paid && events.paid.length > 0">
{{ 'you_have_settled_the_following_machine_hours' | translate }} <strong>{{machine.name}}</strong>:
{{ 'you_have_settled_the_following_machine_hours' | translate }} <strong>{{reservableName}}</strong>:
<div class="well well-warning m-t-sm" ng-repeat="paidSlot in events.paid">
<i class="font-sbold text-u-c">{{ 'datetime_to_time' | translate:{START_DATETIME:(paidSlot.start | amDateFormat:'LLLL'), END_TIME:(paidSlot.end | amDateFormat:'LT') } }}</i>