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
e47f4f05b4
Handler if product_slug is given (wip)
2018-10-02 10:02:02 +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
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
db20e3cbe7
Add plus minus ram handler for 512MB option
2018-09-28 08:07:12 +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
PCoder
da21699212
Merge branch 'master' into task/5681/offer-512mb-ram
2018-09-26 23:10:17 +02:00
PCoder
3075cffd77
Include product_id in generic payment Stripe plan name
2018-09-26 23:01:04 +02:00
PCoder
232022aaaf
Fix flake8 errors
2018-09-26 22:51:34 +02:00
PCoder
b7929a16e2
Update datacenterlight django.po
2018-09-26 22:45:09 +02:00
PCoder
6c03e3f712
Change generic payment subject and correct misplaced comma
...
Data Center LightConfirmation of your payment ->
Confirmation of your payment
2018-09-26 22:42:33 +02:00
PCoder
72c16713a7
Update .po of datacenterlight
2018-09-26 22:37:32 +02:00
PCoder
52d048a555
Add missing Cheers string in email
2018-09-26 22:35:11 +02:00
PCoder
3148dbccf8
Translate text + reformat
2018-09-26 22:31:06 +02:00
PCoder
84056a5b36
Correct generic payment email as per Sanghee's corrections
2018-09-26 22:21:59 +02:00
PCoder
1041284866
Refactor moment.js locale date code to virutal_machine_detail.js
2018-09-26 21:52:12 +02:00
PCoder
737681136f
Correct flake8 error
2018-09-26 21:23:46 +02:00
PCoder
41cba9daa3
Show product name in dcl order detail template
2018-09-26 09:15:49 +02:00
PCoder
4575ff60ec
Refactor validation code + Add product_id to context
2018-09-26 09:15:24 +02:00
PCoder
9ff20491bd
Merge branch 'master' into task/5690/generic-payment-page
2018-09-25 23:25:22 +02:00
PCoder
c9ac959ff6
Change DCLNavbarPlugin to show login option only if set
2018-09-25 22:29:58 +02:00
PCoder
51c5fa98dd
Save description and product_id
2018-09-25 02:14:11 +02:00
PCoder
ed7ffb355f
Server side validation of the POSTed product
2018-09-25 02:13:39 +02:00
PCoder
1988020006
Handle generic-payment-form POST
...
To return pricing based on user's selected product
2018-09-25 02:12:42 +02:00
PCoder
b348c93fee
Add product hidden input type
...
To distinguish generic-payment-form submit
2018-09-25 01:56:10 +02:00
PCoder
481f13d20c
Check key existence
2018-09-24 22:27:25 +02:00
PCoder
d99271f71d
Redirect users to orders after generic payment is successful
2018-09-23 17:19:24 +02:00
PCoder
ff993e32db
Revert back to POST parameters for billing-form method
2018-09-23 17:01:29 +02:00
PCoder
dd82bdc9da
Fix a flake8 error
2018-09-23 13:27:33 +02:00
PCoder
7f3b916c58
Reformat code
2018-09-23 13:26:48 +02:00
PCoder
d23624c525
Modify datacenterlight/views.py to includes various cases of generic payment
2018-09-23 13:15:26 +02:00
PCoder
bc3eaaa7eb
Move csrf_token out of form loop
2018-09-23 13:10:26 +02:00
PCoder
bce47032ab
Handle generic payment separately in order_detail.html
2018-09-23 13:03:47 +02:00
PCoder
730492089b
Modify PaymentOrderView to accomodate the new generic payment case (WIP)
2018-09-22 08:20:49 +02:00
PCoder
429dd10b75
Modify dcl landing_payment.html to accomodate the new generic
...
payment form
2018-09-22 08:17:46 +02:00
PCoder
76efc35324
Add enable_512mb_ram option in model/plugin
2018-09-22 06:44:37 +02:00
PCoder
8a30100488
Use price in stripe plan name too
2018-09-05 23:26:51 +02:00
PCoder
e230f2ac8c
Merge master into 5151/gdpr_modal
2018-08-22 23:25:11 +02:00