2020-11-16 16:37:40 +01:00
|
|
|
<div class="widget panel b-a m m-t-lg" ng-if="user && !events.modifiable && !events.moved && !paidPlan">
|
2017-02-16 17:57:14 +01:00
|
|
|
<div class="panel-heading b-b small">
|
2019-12-17 18:06:56 +01:00
|
|
|
<h3 translate>{{ 'app.shared.cart.summary' }}</h3>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
2020-11-16 16:37:40 +01:00
|
|
|
<div class="widget-content no-bg auto wrapper" ng-show="(!events.reserved && !selectedPlan) || events.reserved.length == 0 && (!events.paid || events.paid.length == 0)">
|
|
|
|
<p class="font-felt fleche-left text-lg">
|
|
|
|
<img src="../../images/arrow-left.png" class="fleche-left visible-lg" />
|
|
|
|
<span ng-show="events.reserved">{{ 'app.shared.cart.select_one_or_more_slots_in_the_calendar' | translate:{SINGLE:limitToOneSlot} }}</span>
|
|
|
|
<span ng-hide="events.reserved" translate>{{ 'app.shared.cart.select_a_plan' }}</span>
|
|
|
|
</p>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
2017-02-21 13:42:12 +01:00
|
|
|
<div class="widget-content no-bg auto wrapper" ng-if="events.reserved.length > 0">
|
2017-02-16 17:57:14 +01:00
|
|
|
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold m-b-sm " translate>{{ 'app.shared.cart.you_ve_just_selected_the_slot' }}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
|
2017-02-21 17:23:53 +01:00
|
|
|
<div class="panel panel-default bg-light" ng-repeat="slot in events.reserved">
|
2017-02-16 17:57:14 +01:00
|
|
|
<div class="panel-body">
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold text-u-c">{{ 'app.shared.cart.datetime_to_time' | translate:{START_DATETIME:(slot.start | amDateFormat:'LLLL'), END_TIME:(slot.end | amDateFormat:'LT') } }}</div>
|
|
|
|
<div class="text-base">{{ 'app.shared.cart.cost_of_TYPE' | translate:{TYPE:reservableType} }} <span ng-class="{'text-blue': !slot.promo, 'red': slot.promo}">{{slot.price | currency}}</span></div>
|
2020-05-06 09:58:08 +02:00
|
|
|
<div ng-show="isAuthorized()" class="m-t">
|
2019-12-17 18:06:56 +01:00
|
|
|
<label for="offerSlot" class="control-label m-r" translate>{{ 'app.shared.cart.offer_this_slot' }}</label>
|
2017-02-16 17:57:14 +01:00
|
|
|
<input bs-switch
|
2017-02-21 17:23:53 +01:00
|
|
|
ng-model="slot.offered"
|
2017-02-16 17:57:14 +01:00
|
|
|
id="offerSlot"
|
|
|
|
type="checkbox"
|
|
|
|
class="form-control"
|
2019-12-17 18:06:56 +01:00
|
|
|
switch-on-text="{{ 'app.shared.buttons.yes' | translate}}"
|
|
|
|
switch-off-text="{{ 'app.shared.buttons.no' | translate}}"
|
2017-02-16 17:57:14 +01:00
|
|
|
switch-animate="true"
|
2017-02-21 17:23:53 +01:00
|
|
|
switch-readonly="{{slot.isValid}}"/>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
2020-02-12 12:58:17 +01:00
|
|
|
<div class="alert alert-warning m-t-sm m-b-none" ng-show="slot.plan_ids.length > 0">
|
|
|
|
<div ng-show="slot.plansGrouped.length > 0">
|
|
|
|
<div class="font-sbold text-u-c" translate>{{ 'app.shared.cart.slot_restrict_plans' }}</div>
|
|
|
|
<div ng-repeat="group in slot.plansGrouped">
|
|
|
|
<div class="font-sbold">{{::group.name}}</div>
|
|
|
|
<ul class="m-n" ng-repeat="plan in group.plans">
|
|
|
|
<li>{{::plan.name}}</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div ng-show="slot.plansGrouped.length === 0">
|
|
|
|
<div class="font-sbold text-u-c" translate>{{ 'app.shared.cart.slot_restrict_plans_of_others_groups' }}</div>
|
2020-02-07 17:37:00 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
2020-02-12 12:58:17 +01:00
|
|
|
<div ng-hide="slot.plan_ids.length > 0 && slot.plansGrouped.length === 0">
|
2019-12-17 18:06:56 +01:00
|
|
|
<button class="btn btn-valid btn-warning btn-block text-u-c r-b" ng-click="validateSlot(slot)" ng-if="!slot.isValid" translate>{{ 'app.shared.cart.confirm_this_slot' }}</button>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="clear"><a class="pull-right m-b-sm text-u-l ng-scope m-r-sm pointer" ng-click="removeSlot(slot, $index, $event)" ng-if="slot.isValid" translate>{{ 'app.shared.cart.remove_this_slot' }}</a></div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
2017-02-21 16:41:53 +01:00
|
|
|
<coupon show="isSlotsValid() && (!modePlans || selectedPlan)" coupon="coupon.applied" total="totalNoCoupon" user-id="{{user.id}}"></coupon>
|
2017-02-16 17:57:14 +01:00
|
|
|
|
2020-11-02 13:18:31 +01:00
|
|
|
<div ng-show="$root.modules.plans">
|
2017-02-21 16:41:53 +01:00
|
|
|
<div ng-if="isSlotsValid() && !user.subscribed_plan" ng-show="!modePlans">
|
2019-12-17 18:06:56 +01:00
|
|
|
<p class="font-sbold text-base l-h-2x" translate>{{ 'app.shared.cart.to_benefit_from_attractive_prices' }}</p>
|
|
|
|
<div><button class="btn btn-warning-full rounded btn-block text-xs" ng-click="showPlans()" translate>{{ 'app.shared.cart.view_our_subscriptions' }}</button></div>
|
|
|
|
<p class="font-bold text-base text-u-c text-center m-b-xs" translate>{{ 'app.shared.cart.or' }}</p>
|
2017-02-20 15:07:14 +01:00
|
|
|
</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
|
2017-02-20 15:07:14 +01:00
|
|
|
<div ng-if="selectedPlan">
|
2020-11-04 16:22:31 +01:00
|
|
|
<div class="m-t-md m-b-sm text-base" translate>{{ 'app.shared.cart.you_ve_just_selected_a_subscription_html' }}</div>
|
2017-02-20 15:07:14 +01:00
|
|
|
<div class="panel panel-default bg-light m-n">
|
|
|
|
<div class="panel-body m-b-md">
|
|
|
|
<div class="font-sbold text-u-c">{{selectedPlan | humanReadablePlanName }}</div>
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="text-base">{{ 'app.shared.cart.cost_of_the_subscription' | translate }} <span class="text-blue">{{selectedPlan.amount | currency}}</span></div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
2017-02-20 15:07:14 +01:00
|
|
|
</div>
|
2020-11-05 15:30:25 +01:00
|
|
|
<select-schedule show="selectedPlan.monthly_payment" selected="schedule.requested_schedule" on-change="togglePaymentSchedule" />
|
2017-02-20 15:07:14 +01:00
|
|
|
</div>
|
2017-02-22 10:28:14 +01:00
|
|
|
</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-11-04 16:22:31 +01:00
|
|
|
<div class="widget-content no-bg auto wrapper" ng-if="selectedPlan && !events.reserved">
|
|
|
|
<span translate>{{ 'app.shared.cart.you_ve_just_selected_a_subscription_html' }}</span>
|
|
|
|
|
|
|
|
<div class="well well-warning m-t-sm">
|
|
|
|
<i class="font-sbold">{{ selectedPlan | humanReadablePlanName }}</i>
|
|
|
|
<div class="font-sbold">{{ 'app.shared.cart.subscription_price' | translate }} {{selectedPlan.amount | currency}}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<coupon show="!user.subscribed_plan" coupon="coupon.applied" total="totalNoCoupon" user-id="{{user.id}}"></coupon>
|
2020-11-05 15:30:25 +01:00
|
|
|
<select-schedule show="selectedPlan.monthly_payment" selected="schedule.requested_schedule" on-change="togglePaymentSchedule" />
|
2020-11-04 16:22:31 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-if="schedule.payment_schedule">
|
2020-11-05 17:32:37 +01:00
|
|
|
<payment-schedule-summary schedule="schedule.payment_schedule"></payment-schedule-summary>
|
2020-11-04 16:22:31 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="widget-footer no-padder" ng-if="events.reserved.length > 0 || (selectedPlan && !events.reserved)">
|
2019-12-17 18:06:56 +01:00
|
|
|
<button class="btn btn-valid btn-info btn-block p-l btn-lg text-u-c r-b text-base" ng-click="payCart()" ng-if="isSlotsValid() && (!modePlans || selectedPlan)">{{ 'app.shared.cart.confirm_and_pay' | translate }} {{amountTotal | currency}}</button>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
2017-02-21 17:23:53 +01:00
|
|
|
<div class="widget-content no-bg auto wrapper" ng-show="events.paid && events.paid.length > 0">
|
2019-12-17 18:06:56 +01:00
|
|
|
{{ 'app.shared.cart.you_have_settled_the_following_TYPE' | translate:{TYPE:reservableType} }} <strong>{{reservableName}}</strong>:
|
2017-02-16 17:57:14 +01:00
|
|
|
|
2017-02-21 17:23:53 +01:00
|
|
|
<div class="well well-warning m-t-sm" ng-repeat="paidSlot in events.paid">
|
2019-12-17 18:06:56 +01:00
|
|
|
<i class="font-sbold text-u-c">{{ 'app.shared.cart.datetime_to_time' | translate:{START_DATETIME:(paidSlot.start | amDateFormat:'LLLL'), END_TIME:(paidSlot.end | amDateFormat:'LT') } }}</i>
|
|
|
|
<div class="font-sbold">{{ 'app.shared.cart.cost_of_TYPE' | translate:{TYPE:reservableType} }} {{paidSlot.price | currency}}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-if="selectedPlan">
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="m-t-md m-b-sm text-base">{{ 'app.shared.cart.you_have_settled_a_' | translate }} <br> <span class="font-sbold" translate>{{ 'app.shared.cart._subscription' }}</span> :</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
<div class="well well-warning m-t-sm">
|
|
|
|
<i class="font-sbold text-u-c">{{selectedPlan | humanReadablePlanName }}</i>
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold">{{ 'app.shared.cart.cost_of_the_subscription' | translate }} {{selectedPlan.amount | currency}}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="m-t-md font-sbold">{{ 'app.shared.cart.total_' | translate }} {{amountPaid | currency}}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="alert alert-success" ng-if="user.subscribed_plan">{{ 'app.shared.cart.thank_you_your_payment_has_been_successfully_registered' | translate }}<br>
|
|
|
|
{{ 'app.shared.cart.your_invoice_will_be_available_soon_from_your_' | translate }} <a ui-sref="app.logged.dashboard.invoices" translate>{{ 'app.shared.cart.dashboard' }}</a>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2017-02-22 10:28:14 +01:00
|
|
|
<div class="widget panel b-a m m-t-lg" ng-if="events.modifiable || events.moved">
|
2017-02-16 17:57:14 +01:00
|
|
|
<div class="panel-heading b-b small">
|
2019-12-17 18:06:56 +01:00
|
|
|
<h3 translate>{{ 'app.shared.cart.summary' }}</h3>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
2017-02-21 13:42:12 +01:00
|
|
|
<div class="widget-content no-bg auto wrapper" ng-if="events.modifiable">
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold m-b-sm " translate>{{ 'app.shared.cart.i_want_to_change_the_following_reservation' }}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
|
|
|
|
<div class="panel panel-warning bg-yellow">
|
|
|
|
<div class="panel-body">
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold text-u-c">{{ 'app.shared.cart.datetime_to_time' | translate:{START_DATETIME:(events.modifiable.start | amDateFormat:'LLLL'), END_TIME:(events.modifiable.end | amDateFormat:'LT') } }}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="clear"><a class="pull-right m-b-sm text-u-l ng-scope m-r-sm" href="#" ng-click="cancelModifySlot($event)" translate>{{ 'app.shared.cart.cancel_my_modification' }}</a></div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="widget-content no-bg">
|
2020-09-14 16:08:39 +02:00
|
|
|
<p class="font-felt fleche-left text-lg"><img src="../../images/arrow-left.png" class="fleche-left visible-lg" />
|
2019-12-17 18:06:56 +01:00
|
|
|
{{ 'app.shared.cart.select_a_new_slot_in_the_calendar' | translate }}</p>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
2017-02-21 13:42:12 +01:00
|
|
|
<div class="panel panel-info bg-info text-white" ng-if="events.placable">
|
2017-02-16 17:57:14 +01:00
|
|
|
<div class="panel-body">
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold text-u-c">{{ 'app.shared.cart.datetime_to_time' | translate:{START_DATETIME:(events.placable.start | amDateFormat:'LLLL'), END_TIME:(events.placable.end | amDateFormat:'LT') } }}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="clear"><a class="pull-right m-b-sm text-u-l ng-scope m-r-sm" href="#" ng-click="removeSlotToPlace($event)" translate>{{ 'app.shared.cart.cancel_my_selection' }}</a></div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
|
2017-02-22 11:23:32 +01:00
|
|
|
<div ng-if="events.placable && (events.modifiable.tags.length > 0 || events.placable.tags.length > 0)" ng-class="{'panel panel-danger bg-red': tagMissmatch()}">
|
2017-02-16 17:57:14 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div id="fromTags">
|
2019-12-17 18:06:56 +01:00
|
|
|
{{ 'app.shared.cart.tags_of_the_original_slot' | translate }}<br/>
|
2017-02-21 13:42:12 +01:00
|
|
|
<span ng-repeat="tag in events.modifiable.tags">
|
2017-02-22 11:23:32 +01:00
|
|
|
<span class='label label-success text-white' title="{{tag.name}}">{{tag.name}}</span>
|
|
|
|
</span>
|
|
|
|
<span ng-show="events.modifiable.tags.length == 0">
|
2019-12-17 18:06:56 +01:00
|
|
|
<span class='label label-warning text-white' title="{{ 'app.shared.cart.none' | translate }}" translate>{{ 'app.shared.cart.none' }}</span>
|
2017-02-22 11:23:32 +01:00
|
|
|
</span>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div><br/>
|
|
|
|
<div id="toTags">
|
2019-12-17 18:06:56 +01:00
|
|
|
{{ 'app.shared.cart.tags_of_the_destination_slot' | translate }}<br/>
|
2017-02-21 13:42:12 +01:00
|
|
|
<span ng-repeat="tag in events.placable.tags">
|
2017-02-22 11:23:32 +01:00
|
|
|
<span class='label label-success text-white' title="{{tag.name}}">{{tag.name}}</span>
|
|
|
|
</span>
|
|
|
|
<span ng-show="events.placable.tags.length == 0">
|
2019-12-17 18:06:56 +01:00
|
|
|
<span class='label label-warning text-white' title="{{ 'app.shared.cart.none' | translate }}" translate>{{ 'app.shared.cart.none' }}</span>
|
2017-02-22 11:23:32 +01:00
|
|
|
</span>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2017-02-21 13:42:12 +01:00
|
|
|
<div class="panel-footer no-padder" ng-if="events.modifiable && events.placable">
|
2019-12-18 13:04:38 +01:00
|
|
|
<button class="btn btn-invalid btn-default btn-block p-l btn-lg text-u-c r-n text-base" ng-click="cancelModifySlot()" translate>{{ 'app.shared.buttons.cancel' }}</button>
|
2017-02-16 17:57:14 +01:00
|
|
|
<div>
|
2019-12-17 18:06:56 +01:00
|
|
|
<button class="btn btn-valid btn-info btn-block p-l btn-lg text-u-c r-b text-base" ng-click="modifySlot()" translate>{{ 'app.shared.cart.confirm_my_modification' }}</button>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-02-22 10:28:14 +01:00
|
|
|
<div class="widget-content no-bg auto wrapper" ng-show="events.moved">
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold m-b-sm " translate>{{ 'app.shared.cart.your_booking_slot_was_successfully_moved_from_' }}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
|
|
|
|
<div class="panel panel-default bg-light">
|
|
|
|
<div class="panel-body">
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold text-u-c">{{ 'app.shared.cart.datetime_to_time' | translate:{START_DATETIME:(events.moved.oldSlot.start | amDateFormat:'LLLL'), END_TIME:(events.moved.oldSlot.end | amDateFormat:'LT') } }}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-12-17 18:06:56 +01:00
|
|
|
<p class="text-center font-bold m-b-sm text-u-c" translate>{{ 'app.shared.cart.to_date' }}</p>
|
2017-02-16 17:57:14 +01:00
|
|
|
|
|
|
|
<div class="panel panel-success bg-success bg-light">
|
|
|
|
<div class="panel-body">
|
2019-12-17 18:06:56 +01:00
|
|
|
<div class="font-sbold text-u-c">{{ 'app.shared.cart.datetime_to_time' | translate:{START_DATETIME:(events.moved.newSlot.start | amDateFormat:'LLLL'), END_TIME:(events.moved.newSlot.end | amDateFormat:'LT') } }}</div>
|
2017-02-16 17:57:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-09-12 12:25:13 +02:00
|
|
|
</div>
|
2020-12-01 17:55:23 +01:00
|
|
|
<div ng-if="stripe.showModal">
|
|
|
|
<stripe-modal is-open="stripe.showModal"
|
|
|
|
toggle-modal="toggleStripeModal"
|
|
|
|
after-success="afterStripeSuccess"
|
2020-12-02 10:06:18 +01:00
|
|
|
cart-items="stripe.cartItems"
|
2020-12-01 17:55:23 +01:00
|
|
|
current-user="currentUser"
|
2020-12-08 12:26:03 +01:00
|
|
|
customer="user"
|
2020-12-01 17:55:23 +01:00
|
|
|
schedule="schedule.payment_schedule"/>
|
|
|
|
</div>
|