Add generic header plugin & model
This commit is contained in:
parent
3d28b17c71
commit
249769f732
2 changed files with 44 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ from filer.fields.file import FilerFileField
|
|||
from filer.fields.image import FilerImageField
|
||||
|
||||
from datacenterlight.models import VMPricing, VMTemplate
|
||||
from hosting.models import GenericProduct
|
||||
|
||||
|
||||
class CMSIntegration(models.Model):
|
||||
|
|
@ -362,3 +363,22 @@ class DCLCalculatorPluginModel(CMSPlugin):
|
|||
" default when the calculator loads"
|
||||
)
|
||||
enable_512mb_ram = models.BooleanField(default=False)
|
||||
|
||||
|
||||
class GenericProductHeaderPluginModel(CMSPlugin):
|
||||
generic_product = models.ForeignKey(
|
||||
GenericProduct,
|
||||
related_name="dcl_generic_product_header_plugin",
|
||||
help_text='Choose or create a generic product that you want to link '
|
||||
'with this header',
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
header_text = models.TextField(
|
||||
help_text="Give a header text"
|
||||
)
|
||||
header_background_color = models.CharField(default="3c4e68", max_length=10)
|
||||
buy_button_text = models.TextField(
|
||||
default="Buy now",
|
||||
help_text="Input the text to be shown on the buy button"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue