2016-03-23 18:39:41 +01:00
|
|
|
<section class="heading b-b">
|
|
|
|
<div class="row no-gutter">
|
|
|
|
<div class="col-xs-2 col-sm-2 col-md-1">
|
|
|
|
<section class="heading-btn">
|
2020-09-29 14:35:42 +02:00
|
|
|
<a href="#" ng-click="backPrevLocation($event)"><i class="fas fa-long-arrow-alt-left "></i></a>
|
2016-03-23 18:39:41 +01:00
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-10 col-sm-10 col-md-8 b-l ">
|
|
|
|
<section class="heading-title">
|
2020-02-11 11:46:40 +01:00
|
|
|
<h1 translate>{{ 'app.public.plans.subscriptions' }}</h1>
|
2016-03-23 18:39:41 +01:00
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
2021-03-22 13:13:51 +01:00
|
|
|
<div class="row no-gutter list-of-plans">
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="col-sm-12 col-md-9 b-r">
|
|
|
|
|
2021-04-28 16:17:56 +02:00
|
|
|
<div class="row m-t m-b padder" ng-repeat="plansGroup in plansClassifiedByGroup | groupFilter:ctrl.member" ng-class="{'active-group': plansGroup.actives > 0}">
|
2020-10-28 09:53:11 +01:00
|
|
|
<div ng-show="plansGroup.actives > 0">
|
2021-04-28 16:17:56 +02:00
|
|
|
<h2 class="text-u-c group-title">{{plansGroup.name}}</h2>
|
2020-10-28 09:53:11 +01:00
|
|
|
<div class="row row-centered padder">
|
2021-03-22 13:13:51 +01:00
|
|
|
<div class="plans-per-group">
|
2020-10-28 09:53:11 +01:00
|
|
|
|
2021-03-22 13:13:51 +01:00
|
|
|
<plan-card ng-repeat="(key, plan) in plansGroup.plans.filter(filterDisabledPlans) | orderBy: '-ui_weight'"
|
|
|
|
plan="plan"
|
2020-12-02 14:28:41 +01:00
|
|
|
user-id="ctrl.member.id"
|
|
|
|
subscribed-plan-id="ctrl.member.subscribed_plan.id"
|
2020-10-29 15:53:29 +01:00
|
|
|
operator="currentUser"
|
|
|
|
on-select-plan="selectPlan"
|
2021-03-22 13:13:51 +01:00
|
|
|
is-selected="isSelected(plan)"
|
2020-10-29 15:53:29 +01:00
|
|
|
</plan-card>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2020-10-28 09:53:11 +01:00
|
|
|
<div class="col-xs-12 col-md-12 col-lg-10 col-centered no-gutter" ng-if="ctrl.member.subscription && isInPast(ctrl.member.subscription.expired_at)">
|
|
|
|
<uib-alert type="info">
|
|
|
|
{{ 'app.public.plans.your_subscription_expires_on_the_DATE' | translate:{DATE:(ctrl.member.subscription.expired_at | amDateFormat:'L' )} }}
|
|
|
|
</uib-alert>
|
|
|
|
</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
</div>
|
2020-10-28 09:53:11 +01:00
|
|
|
</div>
|
|
|
|
<div ng-show="plansGroup.actives === 0 && ctrl.member" class="m-lg" translate>
|
|
|
|
{{ 'app.public.plans.no_plans' }}
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-12 col-lg-3">
|
|
|
|
|
2020-04-28 18:11:25 +02:00
|
|
|
<div ng-if="isAuthorized(['admin', 'manager'])">
|
2016-06-14 09:57:39 +02:00
|
|
|
<select-member subscription="false"></select-member>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<section class="widget panel b-a m m-t-lg" ng-show="ctrl.member">
|
|
|
|
<div class="panel-heading b-b">
|
2020-04-28 18:11:25 +02:00
|
|
|
<h3 ng-show="isAuthorized('member')" translate>{{ 'app.public.plans.my_group' }}</h3>
|
|
|
|
<h3 ng-show="isAuthorized(['admin', 'manager'])" translate translate-values="{GENDER:getGender(ctrl.member)}">{{ 'app.public.plans.his_group' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="widget-content no-bg auto wrapper">
|
2016-04-11 19:26:40 +02:00
|
|
|
<div ng-show="!group.change">
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="well well-warning">
|
|
|
|
<strong>{{getUserGroup().name}}</strong>
|
|
|
|
</div>
|
2018-10-15 16:51:44 +02:00
|
|
|
<button class="btn btn-default btn-no-overflow m-t"
|
2016-04-11 19:26:40 +02:00
|
|
|
ng-click="group.change = !group.change"
|
2016-08-11 18:30:59 +02:00
|
|
|
ng-show="(!selectedPlan && ctrl.member && !ctrl.member.subscribed_plan && ctrl.member.subscription) || (!paid.plan)"
|
2016-03-30 09:46:20 +02:00
|
|
|
translate
|
2020-04-28 18:11:25 +02:00
|
|
|
translate-values="{ROLE:ctrl.member.role}">{{ 'app.public.plans.he_wants_to_change_group' }}</button>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
2016-04-11 19:26:40 +02:00
|
|
|
<div ng-show="group.change">
|
|
|
|
<select class="form-control" ng-options="g.id as g.name for g in groups" ng-model="group.id"></select>
|
2016-03-30 09:46:20 +02:00
|
|
|
<button class="btn btn-success m-t"
|
|
|
|
ng-click="selectGroup()"
|
|
|
|
translate
|
2020-04-28 18:11:25 +02:00
|
|
|
translate-values="{ROLE:ctrl.member.role, GENDER:getGender(ctrl.member)}">{{ 'app.public.plans.change_my_group' }}</button>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="widget panel b-a m m-t-lg" ng-if="!selectedPlan && ctrl.member && !ctrl.member.subscribed_plan && ctrl.member.subscription">
|
|
|
|
<div class="panel-heading b-b">
|
2019-12-16 16:54:40 +01:00
|
|
|
<h3 translate>{{ 'app.public.plans.summary' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="widget-content no-bg auto wrapper">
|
2019-12-16 16:54:40 +01:00
|
|
|
<strong>{{ 'app.public.plans.your_subscription_has_expired_on_the_DATE' | translate:{DATE:(ctrl.member.subscription.expired_at | amDateFormat:'LL')} }}</strong>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
<div class="well well-warning m-t-sm">
|
|
|
|
<i class="font-sbold">{{ctrl.member.subscription.plan | humanReadablePlanName }}</i>
|
2019-12-16 16:54:40 +01:00
|
|
|
<div class="font-sbold">{{ 'app.public.plans.subscription_price' | translate }} {{ctrl.member.subscription.plan.amount | currency}}</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-04 16:22:31 +01:00
|
|
|
<cart events="{}"
|
|
|
|
user="ctrl.member"
|
|
|
|
plan="selectedPlan"
|
|
|
|
plan-selection-time="planSelectionTime"
|
|
|
|
settings="settings"
|
|
|
|
after-payment="afterPayment"></cart>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
|
2016-08-11 18:30:59 +02:00
|
|
|
<section class="widget panel b-a m m-t-lg" ng-if="paid.plan">
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="panel-heading b-b">
|
2019-12-16 16:54:40 +01:00
|
|
|
<h3 translate>{{ 'app.public.plans.summary' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="widget-content no-bg auto wrapper">
|
2019-12-16 16:54:40 +01:00
|
|
|
<span translate>{{ 'app.public.plans.you_ve_just_payed_the_subscription_html' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
<div class="well well-warning m-t-sm">
|
2016-08-11 18:30:59 +02:00
|
|
|
<i class="font-sbold">{{ paid.plan | humanReadablePlanName }}</i>
|
2019-12-16 16:54:40 +01:00
|
|
|
<div class="font-sbold">{{ 'app.public.plans.subscription_price' | translate }} {{paid.plan.amount | currency}}</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
2019-12-16 16:54:40 +01:00
|
|
|
<div class="alert alert-success">{{ 'app.public.plans.thank_you_your_subscription_is_successful' | translate }}<br>
|
|
|
|
<a ui-sref="app.logged.dashboard.invoices" translate>{{ 'app.public.plans.your_invoice_will_be_available_soon_from_your_dashboard' }}</a></div>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<uib-alert type="warning m">
|
|
|
|
<p class="text-sm">
|
|
|
|
<span ng-bind-html="subscriptionExplicationsAlert"></span>
|
|
|
|
</p>
|
|
|
|
</uib-alert>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|