2016-03-23 18:39:41 +01:00
|
|
|
<div class="modal-header">
|
|
|
|
<img ng-src="{{logoBlack.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="modal-logo"/>
|
2021-05-19 18:12:52 +02:00
|
|
|
<h1 translate ng-show="reservation">{{ 'app.shared.valid_reservation_modal.booking_confirmation' }}</h1>
|
|
|
|
<h1 translate ng-show="!reservation && subscription">{{ 'app.shared.valid_reservation_modal.subscription_confirmation' }}</h1>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2016-08-11 18:17:28 +02:00
|
|
|
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
|
2020-11-18 16:01:05 +01:00
|
|
|
<div class="row">
|
|
|
|
<div ng-class="{'col-md-6': schedule, 'm-h-sm': !schedule}">
|
2021-05-19 18:12:52 +02:00
|
|
|
<div ng-if="reservation">
|
2020-11-18 16:01:05 +01:00
|
|
|
<p translate>{{ 'app.shared.valid_reservation_modal.here_is_the_summary_of_the_slots_to_book_for_the_current_user' }}</p>
|
2021-05-19 18:12:52 +02:00
|
|
|
<ul ng-repeat="slot in reservation.slots_attributes">
|
2020-11-18 16:01:05 +01:00
|
|
|
<li><strong>{{slot.start_at | amDateFormat: 'LL'}} : {{slot.start_at | amDateFormat:'LT'}} - {{slot.end_at | amDateFormat:'LT'}}</strong></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2021-05-19 18:12:52 +02:00
|
|
|
<div ng-if="subscription">
|
2020-11-18 16:01:05 +01:00
|
|
|
<p translate>{{ 'app.shared.valid_reservation_modal.here_is_the_subscription_summary' }}</p>
|
|
|
|
<p>{{ plan | humanReadablePlanName }}</p>
|
|
|
|
</div>
|
|
|
|
<div ng-if="schedule">
|
|
|
|
<label for="method" translate>{{ 'app.shared.valid_reservation_modal.payment_method' }}</label>
|
|
|
|
<select id="method"
|
|
|
|
class="form-control m-b"
|
|
|
|
ng-model="method.payment_method">
|
2021-04-28 17:25:42 +02:00
|
|
|
<option value="card" translate>{{ 'app.shared.valid_reservation_modal.method_card' }}</option>
|
2020-11-18 16:01:05 +01:00
|
|
|
<option value="check" translate>{{ 'app.shared.valid_reservation_modal.method_check' }}</option>
|
|
|
|
</select>
|
2021-04-28 17:25:42 +02:00
|
|
|
<p ng-show="method.payment_method == 'card'" translate>{{ 'app.shared.valid_reservation_modal.card_collection_info' }}</p>
|
2020-11-18 16:01:05 +01:00
|
|
|
<p ng-show="method.payment_method == 'check'" translate translate-values="{DEADLINES: schedule.items.length}">{{ 'app.shared.valid_reservation_modal.check_collection_info' }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6" ng-if="schedule">
|
|
|
|
<ul class="full-schedule">
|
|
|
|
<li ng-repeat="item in schedule.items">
|
|
|
|
<span class="schedule-item-date">{{item.due_date | amDateFormat: 'L'}}</span>
|
|
|
|
<span> </span>
|
|
|
|
<span class="schedule-item-price">{{item.amount | currency}}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-11-23 11:48:44 +01:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2020-11-18 16:01:05 +01:00
|
|
|
<wallet-info current-user="currentUser"
|
2021-05-21 18:25:18 +02:00
|
|
|
cart="cartItems"
|
2020-11-18 16:01:05 +01:00
|
|
|
price="price"
|
|
|
|
wallet="wallet"/>
|
2020-11-10 09:51:13 +01:00
|
|
|
</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-07-28 10:28:43 +02:00
|
|
|
<button class="btn btn-info" ng-click="ok()" ng-disabled="attempting" ng-bind-html="validButtonName"></button>
|
2019-12-18 13:04:38 +01:00
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
|
2022-01-18 16:27:12 +01:00
|
|
|
<card-payment-modal is-open="isOpenOnlinePaymentModal"
|
|
|
|
toggle-modal="toggleOnlinePaymentModal"
|
|
|
|
after-success="afterCreatePaymentSchedule"
|
|
|
|
on-error="onCreatePaymentScheduleError"
|
|
|
|
cart="cartItems"
|
|
|
|
current-user="currentUser"
|
|
|
|
schedule="schedule"
|
|
|
|
customer="user"
|
|
|
|
processPayment="false"/>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|