How to use the coderedcms.wagtail_flexible_forms.blocks 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 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))
            ]
github coderedcorp / coderedcms / coderedcms / blocks / stream_form_blocks.py View on Github external
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: