How to use the coderedcms.blocks.stream_form_blocks.FormBlockMixin function in coderedcms

To help you get started, we’ve selected a few coderedcms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
'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"
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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"
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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"
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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):
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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"
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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"
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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"
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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()