Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class CoderedStreamFormImageFieldBlock(form_blocks.ImageFieldBlock, FormBlockMixin):
class Meta:
label = _("Image Upload")
icon = "fa-picture-o"
class CoderedStreamFormFileFieldBlock(form_blocks.FileFieldBlock, FormBlockMixin):
class Meta:
label = _("Secure File Upload")
icon = "fa-upload"
field_class = SecureFileField
class CoderedStreamFormStepBlock(form_blocks.FormStepBlock):
form_fields = blocks.StreamBlock()
def __init__(self, local_blocks=None, **kwargs):
super().__init__(
local_blocks=[
('form_fields', blocks.StreamBlock(local_blocks))
]
icon = "fa-check-square-o"
class CoderedStreamFormRadioButtonsFieldBlock(form_blocks.RadioButtonsFieldBlock, FormBlockMixin):
class Meta:
label = _("Radios")
icon = "fa-list-ul"
class CoderedStreamFormDropdownFieldBlock(form_blocks.DropdownFieldBlock, FormBlockMixin):
class Meta:
label = _("Dropdown")
icon = "fa-list-alt"
class CoderedStreamFormCheckboxesFieldBlock(form_blocks.CheckboxesFieldBlock, FormBlockMixin):
class Meta:
label = _("Checkboxes")
icon = "fa-list-ul"
class CoderedStreamFormDateFieldBlock(form_blocks.DateFieldBlock, FormBlockMixin):
class Meta:
label = _("Date")
icon = "fa-calendar"
field_class = CoderedDateField
widget = CoderedDateInput
class CoderedStreamFormTimeFieldBlock(form_blocks.TimeFieldBlock, FormBlockMixin):
class Meta: