Skip to content

Commit

Permalink
[skip ci] update crud doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheron committed Sep 20, 2021
1 parent a609c88 commit 9300d24
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions docs/scaffolding/crud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ The CRUD controllers allow you to perform basic operations on a Model class:
- Delete
- ...

Creation
---------

In the admin interface (web-tools), activate the **Controllers** part, and choose create **Crud controller**:
.. note::
Since version 2.4.6, Two types of CrudController exist:
- `ResourceCrudController` associated with a model
- `IndexCrudController`, displaying an index and allowing to navigate between models.

ResourceCrudController Creation
-------------------------------

In the admin interface (web-tools), activate the **Controllers** part, and choose create **Resource Crud controller**:

.. image:: /_static/images/crud/speControllerBtn.png

Expand Down Expand Up @@ -102,7 +108,7 @@ Display of the confirmation message before deletion:

Customization
-------------
Create again a CrudController from the admin interface:
Create again a ResourceCrudController from the admin interface:

.. image:: /_static/images/crud/createCrudForm2.png

Expand All @@ -116,8 +122,8 @@ Overview
Classes overriding
^^^^^^^^^^^^^^^^^^

CRUDController methods to override
##################################
ResourceCRUDController methods to override
##########################################

+-------------------------------------------------------------------+---------------------------------------------------------------------------------+-------------------+
| Method | Signification | Default return |
Expand Down

0 comments on commit 9300d24

Please sign in to comment.