mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-19 02:51:14 +02:00
adjustments for families plan
This commit is contained in:
parent
4dd60c3844
commit
e17f94a67d
@ -106,14 +106,12 @@ angular.module('bit')
|
|||||||
noPayment: true,
|
noPayment: true,
|
||||||
upgradeSortOrder: -1
|
upgradeSortOrder: -1
|
||||||
},
|
},
|
||||||
personal: {
|
families: {
|
||||||
basePrice: 1,
|
basePrice: 1,
|
||||||
annualBasePrice: 12,
|
annualBasePrice: 12,
|
||||||
baseSeats: 5,
|
baseSeats: 5,
|
||||||
seatPrice: 1,
|
noAdditionalSeats: true,
|
||||||
annualSeatPrice: 12,
|
annualPlanType: 'familiesAnnually',
|
||||||
maxAdditionalSeats: 5,
|
|
||||||
annualPlanType: 'personalAnnually',
|
|
||||||
upgradeSortOrder: 1
|
upgradeSortOrder: 1
|
||||||
},
|
},
|
||||||
teams: {
|
teams: {
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.adjustSeats = function (add) {
|
$scope.adjustSeats = function (add) {
|
||||||
if ($scope.selfHosted) {
|
if ($scope.selfHosted || !$scope.canAdjustSeats) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,6 +221,7 @@
|
|||||||
apiService.organizations.getBilling({ id: $state.params.orgId }, function (org) {
|
apiService.organizations.getBilling({ id: $state.params.orgId }, function (org) {
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
$scope.noSubscription = org.PlanType === 0;
|
$scope.noSubscription = org.PlanType === 0;
|
||||||
|
$scope.canAdjustSeats = org.PlanType > 1;
|
||||||
|
|
||||||
var i = 0;
|
var i = 0;
|
||||||
$scope.expiration = org.Expiration;
|
$scope.expiration = org.Expiration;
|
||||||
|
@ -119,7 +119,7 @@
|
|||||||
You plan currently has a total of <b>{{plan.seats}}</b> seats.
|
You plan currently has a total of <b>{{plan.seats}}</b> seats.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-footer" ng-if="!selfHosted && !noSubscription">
|
<div class="box-footer" ng-if="!selfHosted && !noSubscription && canAdjustSeats">
|
||||||
<button type="button" class="btn btn-default btn-flat" ng-click="adjustSeats(true)">
|
<button type="button" class="btn btn-default btn-flat" ng-click="adjustSeats(true)">
|
||||||
Add Seats
|
Add Seats
|
||||||
</button>
|
</button>
|
||||||
|
@ -93,17 +93,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="radio radio-block" ng-if="!model.ownedBusiness" ng-click="changedPlan()">
|
<div class="radio radio-block" ng-if="!model.ownedBusiness" ng-click="changedPlan()">
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" ng-model="model.plan" name="PlanType" value="personal">
|
<input type="radio" ng-model="model.plan" name="PlanType" value="families">
|
||||||
Personal
|
Families
|
||||||
<span>For personal users such as families & friends.</span>
|
<span>For personal users such as families & friends.</span>
|
||||||
<span>- Add and share with up to 10 users (5 included with base price)</span>
|
<span>- Add and share with up to 5 users</span>
|
||||||
<span>- Create unlimited collections</span>
|
<span>- Create unlimited collections</span>
|
||||||
<span>- 1 GB encrypted file storage</span>
|
<span>- 1 GB encrypted file storage</span>
|
||||||
|
<span>- Self-hosting (optional)</span>
|
||||||
<span>- Priority customer support</span>
|
<span>- Priority customer support</span>
|
||||||
<span>- 7 day free trial, cancel anytime</span>
|
<span>- 7 day free trial, cancel anytime</span>
|
||||||
<span class="bottom-line">
|
<span class="bottom-line">
|
||||||
{{plans.personal.basePrice | currency:'$'}} /month includes {{plans.personal.baseSeats}} users,
|
{{plans.families.basePrice | currency:'$'}} /month includes {{plans.families.baseSeats}} users
|
||||||
additional users {{plans.personal.seatPrice | currency:'$'}} /month
|
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
@ -243,7 +243,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="radio radio-block" ng-if="model.plan !== 'personal'">
|
<div class="radio radio-block" ng-if="model.plan !== 'families'">
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" ng-model="model.interval" name="BillingInterval" value="month">
|
<input type="radio" ng-model="model.interval" name="BillingInterval" value="month">
|
||||||
Monthly
|
Monthly
|
||||||
|
Loading…
Reference in New Issue
Block a user