Skip to content

Use Sylius templates events for displays #94

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions