action_create_edit.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Creating and Editing objects
  2. ============================
  3. .. note::
  4. This document is a stub representing a new work in progress. If you're reading
  5. this you can help contribute, no matter what your experience level with Sonata
  6. is. Check out the `issues on Github<https://github.com/sonata-project/SonataAdminBundle/issues/1519>`_
  7. for more information about how to get involved.
  8. This document will cover the Create and Edit actions. It will cover configuration
  9. of the fields and forms available in these views and any other relevant settings.
  10. Basic configuration
  11. -------------------
  12. To do:
  13. - global (yml) options that affect the create and edit actions
  14. - a note about Routes and how disabling them disables the related action
  15. - using configureFormFields() to set which fields to display
  16. - options available when adding fields, inc custom templates
  17. - link to the field_types document for more details about specific field types
  18. Embedding other Admins
  19. ----------------------
  20. To do:
  21. - how to embed one Admin in another (1:1, 1:M, M:M)
  22. - how to access the right object(s) from the embedded Admin's code
  23. Customizing just one of the actions
  24. -----------------------------------
  25. To do:
  26. - how to create settings/fields that appear on just one of the create/edit views
  27. and any controller changes needed to manage them