Skip to content

Use Sylius templates events for displays #94

@maximehuran

Description

@maximehuran

It could be nice for admin and shop to use sylius template events to do the displays without rewrite the templates.

  • Ui Event for admin channel form
  • Ui event for shop checkout complete form
  • Ui event for shop address form

Example for admin channel form

        sylius.admin.channel.form.second_column_content:
            blocks:
                mailchimp:
                    template: '/Admin/Channel/Form/_mailchimp.html.twig'
                    priority: 9

And in the template

<div class="ui attached segment">
    {{ form_row(form.displaySubscribeToNewsletterAtCheckout) }}
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions