Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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:
label = _("Time")
icon = "fa-clock-o"
field_class = CoderedTimeField
widget = CoderedTimeInput
class CoderedStreamFormDateTimeFieldBlock(form_blocks.DateTimeFieldBlock, FormBlockMixin):
class Meta:
label = _("Date and Time")
icon = "fa-calendar"
field_class = CoderedDateTimeField
widget = CoderedDateTimeInput
'The value of the field in "Condition Trigger ID" that will trigger this field to be shown.') # noqa
)
class FormBlockMixin(BaseBlock):
class Meta:
abstract = True
advsettings_class = CoderedFormAdvSettings
class CoderedStreamFormFieldBlock(form_blocks.OptionalFormFieldBlock, FormBlockMixin):
pass
class CoderedStreamFormCharFieldBlock(form_blocks.CharFieldBlock, FormBlockMixin):
class Meta:
label = _("Text or Email input")
icon = "fa-window-minimize"
class CoderedStreamFormTextFieldBlock(form_blocks.TextFieldBlock, FormBlockMixin):
class Meta:
label = _("Multi-line text")
icon = "fa-align-left"
class CoderedStreamFormNumberFieldBlock(form_blocks.NumberFieldBlock, FormBlockMixin):
class Meta:
label = _("Numbers only")
icon = "fa-hashtag"
pass
class CoderedStreamFormCharFieldBlock(form_blocks.CharFieldBlock, FormBlockMixin):
class Meta:
label = _("Text or Email input")
icon = "fa-window-minimize"
class CoderedStreamFormTextFieldBlock(form_blocks.TextFieldBlock, FormBlockMixin):
class Meta:
label = _("Multi-line text")
icon = "fa-align-left"
class CoderedStreamFormNumberFieldBlock(form_blocks.NumberFieldBlock, FormBlockMixin):
class Meta:
label = _("Numbers only")
icon = "fa-hashtag"
class CoderedStreamFormCheckboxFieldBlock(form_blocks.CheckboxFieldBlock, FormBlockMixin):
class Meta:
label = _("Single Checkbox")
icon = "fa-check-square-o"
class CoderedStreamFormRadioButtonsFieldBlock(form_blocks.RadioButtonsFieldBlock, FormBlockMixin):
class Meta:
label = _("Radios")
icon = "fa-list-ul"
icon = "fa-hashtag"
class CoderedStreamFormCheckboxFieldBlock(form_blocks.CheckboxFieldBlock, FormBlockMixin):
class Meta:
label = _("Single Checkbox")
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"
required=False,
max_length=255,
label=_('Condition Trigger Value'),
help_text=_(
'The value of the field in "Condition Trigger ID" that will trigger this field to be shown.') # noqa
)
class FormBlockMixin(BaseBlock):
class Meta:
abstract = True
advsettings_class = CoderedFormAdvSettings
class CoderedStreamFormFieldBlock(form_blocks.OptionalFormFieldBlock, FormBlockMixin):
pass
class CoderedStreamFormCharFieldBlock(form_blocks.CharFieldBlock, FormBlockMixin):
class Meta:
label = _("Text or Email input")
icon = "fa-window-minimize"
class CoderedStreamFormTextFieldBlock(form_blocks.TextFieldBlock, FormBlockMixin):
class Meta:
label = _("Multi-line text")
icon = "fa-align-left"
class CoderedStreamFormNumberFieldBlock(form_blocks.NumberFieldBlock, FormBlockMixin):
icon = "fa-align-left"
class CoderedStreamFormNumberFieldBlock(form_blocks.NumberFieldBlock, FormBlockMixin):
class Meta:
label = _("Numbers only")
icon = "fa-hashtag"
class CoderedStreamFormCheckboxFieldBlock(form_blocks.CheckboxFieldBlock, FormBlockMixin):
class Meta:
label = _("Single Checkbox")
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"
abstract = True
advsettings_class = CoderedFormAdvSettings
class CoderedStreamFormFieldBlock(form_blocks.OptionalFormFieldBlock, FormBlockMixin):
pass
class CoderedStreamFormCharFieldBlock(form_blocks.CharFieldBlock, FormBlockMixin):
class Meta:
label = _("Text or Email input")
icon = "fa-window-minimize"
class CoderedStreamFormTextFieldBlock(form_blocks.TextFieldBlock, FormBlockMixin):
class Meta:
label = _("Multi-line text")
icon = "fa-align-left"
class CoderedStreamFormNumberFieldBlock(form_blocks.NumberFieldBlock, FormBlockMixin):
class Meta:
label = _("Numbers only")
icon = "fa-hashtag"
class CoderedStreamFormCheckboxFieldBlock(form_blocks.CheckboxFieldBlock, FormBlockMixin):
class Meta:
label = _("Single Checkbox")
icon = "fa-check-square-o"
icon = "fa-window-minimize"
class CoderedStreamFormTextFieldBlock(form_blocks.TextFieldBlock, FormBlockMixin):
class Meta:
label = _("Multi-line text")
icon = "fa-align-left"
class CoderedStreamFormNumberFieldBlock(form_blocks.NumberFieldBlock, FormBlockMixin):
class Meta:
label = _("Numbers only")
icon = "fa-hashtag"
class CoderedStreamFormCheckboxFieldBlock(form_blocks.CheckboxFieldBlock, FormBlockMixin):
class Meta:
label = _("Single Checkbox")
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"
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:
label = _("Time")
icon = "fa-clock-o"
field_class = CoderedTimeField
widget = CoderedTimeInput
icon = "fa-clock-o"
field_class = CoderedTimeField
widget = CoderedTimeInput
class CoderedStreamFormDateTimeFieldBlock(form_blocks.DateTimeFieldBlock, FormBlockMixin):
class Meta:
label = _("Date and Time")
icon = "fa-calendar"
field_class = CoderedDateTimeField
widget = CoderedDateTimeInput
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()