diff --git a/accounts/forms.py b/accounts/forms.py index f56b43659..2a4130c22 100644 --- a/accounts/forms.py +++ b/accounts/forms.py @@ -294,10 +294,26 @@ def __init__(self, *args, **kwargs): super(BundleTypeForm, self).__init__(*args, **kwargs) self.bundle_details = { - 'User': {'label': 'User Bundle 5 @ US$1500', 'quantity': 5}, - 'API': {'label': 'API Bundle 3 @ US$1500', 'quantity': 3}, - 'Project': {'label': 'Project Bundle 10 @ US$1500', 'quantity': 10}, - 'Notification': {'label': 'Notification Bundle 10 @ US$1500', 'quantity': 10}, + 'User': { + 'label': 'User Bundle', + 'description': 'Add 5 more users to this account.', + 'quantity': 5 + }, + 'API': { + 'label': 'API Bundle', + 'description': 'Add 3 more API keys to this account.', + 'quantity': 3 + }, + 'Project': { + 'label': 'Project Bundle', + 'description': 'Add 10 more projects to this account.', + 'quantity': 10 + }, + 'Notification': { + 'label': 'Notification Bundle', + 'description': 'Add 10 more notifications to this account.', + 'quantity': 10 + }, } self.fields['bundle_type'].choices = [ diff --git a/accounts/views.py b/accounts/views.py index 4ec62e209..7bd0a7c89 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -934,7 +934,7 @@ def subscription(request, pk, account_type, related=None): try: access_token = get_access_token_of_SF(request) for bundle in form.cleaned_data['bundle_type']: - bundle_data = BundleTypeForm().bundle_details[bundle] + bundle_data = form.bundle_details[bundle] quantity = bundle_data['quantity'] bundle_data = { "hubId": str(request.user.id) + "_i", diff --git a/localcontexts/static/css/main.css b/localcontexts/static/css/main.css index d28ecbaf5..dacf1f062 100644 --- a/localcontexts/static/css/main.css +++ b/localcontexts/static/css/main.css @@ -1844,4 +1844,14 @@ i[data-tooltip]:hover:after { visibility: visible; background-color: #EF6C00; color: #fff; +} + +.bundle-modal { + width: 690px; +} + +input[type="checkbox"]:focus { + background: none; + border: none; + box-shadow: none; } \ No newline at end of file diff --git a/templates/account_settings_pages/_subscription.html b/templates/account_settings_pages/_subscription.html index 3e3edac1d..7de4b027a 100644 --- a/templates/account_settings_pages/_subscription.html +++ b/templates/account_settings_pages/_subscription.html @@ -55,7 +55,10 @@ {% include 'partials/_alerts.html' %}
- + +
+
+
@@ -70,32 +73,40 @@