-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
billing: marketplace UI (PROJQUAY-6551) (quay#2595)
* billing: marketplace UI adds UI in billing section for managing user and org-bound skus add more unit tests for org binding changed endpoint for bulk attaching skus to orgs
- Loading branch information
Showing
14 changed files
with
456 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.org-binding-settings-element .btn { | ||
margin-top: 10px; | ||
} | ||
|
||
.org-binding-settings-element .form-control { | ||
margin-top: 10px; | ||
} | ||
|
||
.org-binding-settings-element td.add-remove-section { | ||
margin: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<div class="org-binding-settings-element" > | ||
<span><h3>Monthly Subscriptions From Red Hat Customer Portal</h3></span> | ||
<div class="cor-loader-inline" ng-show="marketplaceLoading"></div> | ||
<span ng-show="!organization && !marketplaceLoading"> | ||
<div ng-repeat="(sku, subscriptions) in userMarketplaceSubscriptions"> | ||
{{subscriptions.length}}x {{ sku }} | ||
</div> | ||
</span> | ||
|
||
<table ng-show="organization && !marketplaceLoading"> | ||
<tr class="indented-row" ng-repeat="(sku, subscriptions) in orgMarketplaceSubscriptions"> | ||
<td> | ||
{{ subscriptions.length }} x {{ sku }} attached to this org | ||
</td> | ||
</tr> | ||
<tr class="indented-row"> | ||
<td style="padding: 10px"> | ||
<select class="form-control" ng-model="subscriptionBinding"> | ||
<option ng-repeat="(sku, subscriptions) in availableSubscriptions" value="{{ subscriptions }}"> | ||
{{subscriptions.length}} x {{sku}} | ||
</option> | ||
</select> | ||
<input class="form-control" type="number" min="1" max="{{subscriptions.length}}" ng-model="numSubscriptions" placeholder="Number of subscriptions"> | ||
<a class="btn btn-primary" ng-click="bindSku(subscriptionBinding, numSubscriptions)">Attach subscriptions</a> | ||
</td> | ||
<td style="padding: 10px"> | ||
<select class="form-control" ng-model="subscriptionRemovals"> | ||
<option ng-repeat="(sku, orgSubscriptions) in orgMarketplaceSubscriptions" value="{{orgSubscriptions}}"> | ||
{{sku}} | ||
</option> | ||
</select> | ||
<input class="form-control" | ||
type="number" | ||
min="1" | ||
max="{{JSON.parse(subscriptions).length}}" | ||
ng-model="numRemovals" | ||
placeholder="Number of subscriptions" | ||
> | ||
<a class="btn btn-default" ng-click="batchRemoveSku(subscriptionRemovals, numRemovals)"> | ||
Remove subscriptions | ||
</a> | ||
</td> | ||
</tr> | ||
<div class="co-alert co-alert-success" ng-show="bindOrgSuccess"> | ||
Successfully bound subscription to org | ||
</div> | ||
<div class="co-alert co-alert-success" ng-show="removeSkuSuccess"> | ||
Successfully removed subscription from org | ||
</div> | ||
<tr> | ||
</tr> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.