Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10 - Add a form to add, edit or delete locations in the admin interface #15

Open
wants to merge 1 commit into
base: assignment/09
Choose a base branch
from

Conversation

luca-rath
Copy link
Contributor

@luca-rath luca-rath commented Jul 7, 2020

Add a form to add, edit or delete locations in the admin interface

Goal

We have already added a list that display existing locations in the last assignment. To complete our location
management functionality, we want to implement a form that allows to add, edit and delete locations via the Sulu
administration interface.

Steps

  • Add the logic for adding, modifying and deleting locations to your App\Controller\Admin\LocationController
  • Configure the detail route for the locations resource in your config/packages/sulu_admin.yaml
  • Add a form-configuration for location_details in a config/forms/location_details.xml file
  • Add admin routes for adding and editing locations in your src\Admin\LocationAdmin
  • Log into the admin UI with user "admin" and password "admin"
  • Navigate to the locations list and add a new location

Hints

  • Have a look at the admin API-Controller App\Controller\Admin\EventController for the Event entity
  • Have a look at the existing admin-routes for the Event entity in src/Admin/AppAdmin.php file

More Information

Have a look at assignment 07 for more information.

Links

@alexander-schranz alexander-schranz added the assignment Pull request for a assignment solution label Sep 23, 2020
@niklasnatter niklasnatter force-pushed the assignment/10 branch 2 times, most recently from 6fb5f5b to ef573b2 Compare September 23, 2020 10:47
@niklasnatter niklasnatter force-pushed the assignment/10 branch 2 times, most recently from 053fdcc to 967ae4c Compare October 21, 2020 08:23
@niklasnatter niklasnatter force-pushed the assignment/09 branch 3 times, most recently from d95eb0f to ecbd097 Compare October 23, 2020 09:14
@niklasnatter niklasnatter force-pushed the assignment/10 branch 2 times, most recently from 592b243 to c38dfbb Compare October 23, 2020 09:16
@niklasnatter niklasnatter force-pushed the assignment/10 branch 2 times, most recently from e218ec8 to b7442cd Compare June 22, 2021 08:51
@niklasnatter niklasnatter force-pushed the assignment/10 branch 2 times, most recently from 4c56ca8 to 889543c Compare June 22, 2021 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assignment Pull request for a assignment solution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants