1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02:00

adjustments for families plan

This commit is contained in:
Kyle Spearrin 2017-11-08 13:27:19 -05:00
parent 4dd60c3844
commit e17f94a67d
4 changed files with 12 additions and 13 deletions

View File

@ -106,14 +106,12 @@ angular.module('bit')
noPayment: true,
upgradeSortOrder: -1
},
personal: {
families: {
basePrice: 1,
annualBasePrice: 12,
baseSeats: 5,
seatPrice: 1,
annualSeatPrice: 12,
maxAdditionalSeats: 5,
annualPlanType: 'personalAnnually',
noAdditionalSeats: true,
annualPlanType: 'familiesAnnually',
upgradeSortOrder: 1
},
teams: {

View File

@ -59,7 +59,7 @@
};
$scope.adjustSeats = function (add) {
if ($scope.selfHosted) {
if ($scope.selfHosted || !$scope.canAdjustSeats) {
return;
}
@ -221,6 +221,7 @@
apiService.organizations.getBilling({ id: $state.params.orgId }, function (org) {
$scope.loading = false;
$scope.noSubscription = org.PlanType === 0;
$scope.canAdjustSeats = org.PlanType > 1;
var i = 0;
$scope.expiration = org.Expiration;

View File

@ -119,7 +119,7 @@
You plan currently has a total of <b>{{plan.seats}}</b> seats.
</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)">
Add Seats
</button>

View File

@ -93,17 +93,17 @@
</div>
<div class="radio radio-block" ng-if="!model.ownedBusiness" ng-click="changedPlan()">
<label>
<input type="radio" ng-model="model.plan" name="PlanType" value="personal">
Personal
<input type="radio" ng-model="model.plan" name="PlanType" value="families">
Families
<span>For personal users such as families &amp; 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>- 1 GB encrypted file storage</span>
<span>- Self-hosting (optional)</span>
<span>- Priority customer support</span>
<span>- 7 day free trial, cancel anytime</span>
<span class="bottom-line">
{{plans.personal.basePrice | currency:'$'}} /month includes {{plans.personal.baseSeats}} users,
additional users {{plans.personal.seatPrice | currency:'$'}} /month
{{plans.families.basePrice | currency:'$'}} /month includes {{plans.families.baseSeats}} users
</span>
</label>
</div>
@ -243,7 +243,7 @@
</span>
</label>
</div>
<div class="radio radio-block" ng-if="model.plan !== 'personal'">
<div class="radio radio-block" ng-if="model.plan !== 'families'">
<label>
<input type="radio" ng-model="model.interval" name="BillingInterval" value="month">
Monthly