The edit/create form is available if the user has the policy section/edit. It's a basic form with two fields:
- section name
- section identifier
Both fields are required. The identifier can only contains characters validated by the regex /(^[^A-Za-z])|\W/ (found in legacy kernel/section/edit.php). The identifier must also be unique in the system. After validating the form, the user is redirected to the section list.
Below the form, a link labeled "Go back to the section list" allows to get back to the section list.
The same feature is more or less available in the legacy admin (<url>/section/edit/1) or in the AdminBundle
The first step is to implement the form and the server side validation, the client side validation can come in a second step.