solidusio-contrib / solidus_content

BSD 3-Clause "New" or "Revised" License
8 stars 9 forks source link

Dynamic entry type options fields #31

Closed vassalloandrea closed 4 years ago

vassalloandrea commented 4 years ago

Until now we can update the option_type adding the options using a custom JSON fields. The problem is that we need to save different fields, which is mandatory, for each provider.

With this PR, we added the ability to render the correct option form based on the chosen provider during the option type creation. This means that the admin user can't change the provider of an option type if it has already been created.

elia commented 4 years ago

BTW thanks for getting after and solving this problem! As already stated elsewhere this is really great stuff! 👏