PCoder
5985ded36f
Obtain product_slug from session
...
Obtaining slug from kwargs won't work in OrderConfirmation page
because we do not set the kwargs for that page. To resolve this,
I add the product_slug to the generic_payment_details dict in the
session
2018-10-06 07:31:41 +02:00
PCoder
2b7d4bbef5
Redirect to product page on error
2018-10-05 11:10:10 +02:00
PCoder
10dab1350a
Use refactored method clear_all_session_vars
2018-10-05 11:01:49 +02:00
PCoder
806726614e
Clear all session variables before loading DCLCalculatorPlugin
2018-10-05 10:37:23 +02:00
PCoder
5d9b2ee41a
Refactor clearing all session variables
2018-10-05 10:36:20 +02:00
PCoder
2fbee916cc
Correct help text for product slug field
2018-10-05 09:37:57 +02:00
PCoder
1dafa592a2
Update Changelog
2018-10-05 09:23:39 +02:00
Pcoder
e557a777c3
Merge pull request #666 from pcoder/task/5690/generic-payment-page
...
Task/5690/generic payment page
2018-10-05 09:16:08 +02:00
PCoder
f4579595c3
Add newline character to end of file
2018-10-05 09:05:47 +02:00
PCoder
12eabc5f6c
Redirect user to product page on login
...
For the case when user is on product page and tries logging in
2018-10-05 08:58:57 +02:00
PCoder
e3ec67d32c
ProductPaymentForm: Set input fields input-no-border style
2018-10-05 08:58:10 +02:00
PCoder
8758cd1cd8
Add style input-no-border
2018-10-05 08:57:20 +02:00
PCoder
1100d61b5d
Fix flake8 warnings
2018-10-03 23:17:25 +02:00
PCoder
b3e3af1c1a
Make ProductPaymentForm's recurring field hidden
2018-10-03 22:54:45 +02:00
PCoder
ec70cd1c83
Pass product_id to ProductPaymentForm
2018-10-03 22:53:24 +02:00
PCoder
74ec39498e
Update GenericProduct
...
Remove url field
Make slug mandatory
2018-10-03 09:58:49 +02:00
PCoder
e4bfdec0b6
Update ProductPaymentForm's validation
2018-10-03 09:38:49 +02:00
PCoder
193b87bbb5
Use proper payment form
2018-10-03 09:36:43 +02:00
PCoder
ca18004819
Remove stale reference to product_id
2018-10-03 09:36:00 +02:00
PCoder
e1c91d886b
Use explicit index in plan name formatting
2018-10-03 09:35:20 +02:00
PCoder
27a92780a6
Add amount label + Reset textarea height
2018-10-03 08:38:20 +02:00
PCoder
8a2734fa0e
Show GenericPaymentForm labels
2018-10-03 08:36:21 +02:00
PCoder
97693f0bb3
Format code
2018-10-03 08:27:22 +02:00
PCoder
495ac0c6d6
Use ProductPaymentForm instead of GenericPaymentForm
...
Only if product_id is in the session, which identifies that we are
coming here via product_slug
2018-10-03 08:19:33 +02:00
PCoder
530bbcd5f6
Create ProductPaymentForm from GenericPaymentForm
2018-10-03 08:18:45 +02:00
PCoder
1cdc9ea657
Clear product_id from session
2018-10-03 08:18:19 +02:00
PCoder
a4065c7e24
Handle product_slug
2018-10-03 07:55:56 +02:00
PCoder
e3bd963600
Test product_slug url (wip)
2018-10-02 10:02:44 +02:00
PCoder
e47f4f05b4
Handler if product_slug is given (wip)
2018-10-02 10:02:02 +02:00
PCoder
3bad37c605
Make GenericProduct slug unique
2018-10-02 10:00:59 +02:00
PCoder
930333357e
GenericProduct: Remove image field and add slug field
2018-10-02 09:27:38 +02:00
PCoder
dd9e7dde35
Merge branch 'master' into task/5690/generic-payment-page
2018-10-02 09:01:46 +02:00
PCoder
f2f95c8559
Update min attribute according to minimum ram in the plugin
2018-10-01 08:56:45 +02:00
PCoder
a93c900109
Pass 512 MB to memory parameter
2018-10-01 08:54:22 +02:00
PCoder
c2dbbf0424
Update views.py to include 512mb ram case
...
RAM server side validation is as follows:
- pid is a mandatory parameter for a valid RAM, otherwise a
validation error is raised
- check if enable_512mb_ram is enabled. In this case, validate
if the input ram is either a whole number or 0.5 and in the range
0.5 <= value <= 200
- otherwise check ram is a whole number in the range
1 <= value <= 200
2018-10-01 07:52:28 +02:00
PCoder
f85ef714ab
Pass instance context
...
Also POST plugin_id as a form parameter to check enable_512mb_ram
case
2018-10-01 07:50:18 +02:00
PCoder
24d719e4f1
Update migration
2018-09-29 07:37:23 +02:00
PCoder
5452c1c478
Merge master into task/5681/offer-512mb-ram
2018-09-28 08:36:35 +02:00
PCoder
8743853a7b
Update Changelog
2018-09-28 08:13:37 +02:00
PCoder
737d890a7c
Update Changelog for 2.2.2
2018-09-28 08:11:36 +02:00
PCoder
db20e3cbe7
Add plus minus ram handler for 512MB option
2018-09-28 08:07:12 +02:00
Pcoder
32767fed68
Merge pull request #668 from pcoder/task/5721/set_calculator_OS_order
...
Task/5721/set calculator OS order
2018-09-28 07:32:55 +02:00
PCoder
e1ce017ec8
Add migration
2018-09-27 22:48:23 +02:00
PCoder
b047ccdef1
Fix flake8 error
2018-09-27 22:33:24 +02:00
PCoder
56460ac8f0
Update migration
2018-09-27 22:16:05 +02:00
PCoder
d93861ca32
Set Devuan Ascii as default template
2018-09-27 22:14:42 +02:00
PCoder
a02c3c6973
Sort templates alphabetically
...
And also select the chosen template as the default one
2018-09-27 22:12:13 +02:00
PCoder
768f3532f7
Add default_selected_template field to DCLCalculatorPluginModel
2018-09-27 22:09:11 +02:00
PCoder
21084cdc9f
Initialize minRam js variable from what is passed from backend
2018-09-27 09:07:28 +02:00
PCoder
12f139976d
Simplify logic to set min_ram in the calculator form
2018-09-27 09:06:39 +02:00