-
Notifications
You must be signed in to change notification settings - Fork 21
07 - Display the registrations for each event in the admin interface #12
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
Open
luca-rath
wants to merge
1
commit into
assignment/06
Choose a base branch
from
assignment/07
base: assignment/06
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22685d6 to
58315b4
Compare
df929f6 to
4ca8ac4
Compare
682a04e to
e101bd1
Compare
70dda22 to
aa37348
Compare
353f325 to
e90b1b2
Compare
62cab3f to
cb3a102
Compare
159ee52 to
e39eeec
Compare
cb3a102 to
7b5279e
Compare
e39eeec to
f99dddb
Compare
7b5279e to
19a62d0
Compare
19a62d0 to
b5ee042
Compare
4b60331 to
d5633e9
Compare
ab4aa3f to
a055186
Compare
d5633e9 to
eda2c4f
Compare
a055186 to
3b8fcc8
Compare
a5c4c4d to
8c34b43
Compare
7a8e7b1 to
c8bacf1
Compare
8c34b43 to
82fd37c
Compare
c8bacf1 to
e198fe3
Compare
75f3ced to
b67296b
Compare
b1a7d24 to
597546c
Compare
b67296b to
7e82250
Compare
7e82250 to
b1eb8a1
Compare
75105ca to
dfcfdd6
Compare
b1eb8a1 to
1eb6882
Compare
dfcfdd6 to
d20637c
Compare
31d532e to
b165370
Compare
b165370 to
abf77bf
Compare
3916d1e to
c04f48d
Compare
8743286 to
d2ce609
Compare
c04f48d to
fdf37dc
Compare
906becf to
25fee79
Compare
0f4da74 to
0467910
Compare
bab0d28 to
23c93cb
Compare
0467910 to
e9eb406
Compare
23c93cb to
1324c8f
Compare
1324c8f to
fc28698
Compare
7784d3e to
3534d84
Compare
fc28698 to
1f369f7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Display submitted event registrations in the admin interface
Goal
Our event managers need to keep track of all the incoming event registrations. Therefore we want to display a list
of all registrations for each of our events in the admin interface.
Steps
App\Controller\Admin\EventRegistrationControllerto query event-registrationsconfig/routes_admin.yamlevent_registrationsresource in yourconfig/packages/sulu_admin.yamlevent_registrationsin aconfig/lists/event_registrations.xmlListRouteBuilderto add a new admin route in yoursrc/Admin/EventAdmin.phpHints
App\Controller\Admin\EventControllerfor the Event entityconfig/lists/events.xmlfor the Event entitysrc/Admin/AppAdmin.phpfileMore Information
The Admin classes are used to configure available navigation items and routes in the Sulu administration interface.
Each route is associated to a javascript view and can customize the behaviour of the view by passing options to the
view. Sulu is shipped with several configurable javascript views, including a flexible form view and a list view.
The Sulu administration interface is implemented as a single-page application with React. It requires a standardized
REST API for loading and manipulating the different resources available in the system. For custom entities you need to
implement this REST endpoint by yourself.
Passing your REST API URLs to to each view of the JS application would be quite inconvenient. Therefore, Sulu utilizes
a concept called resources that associates entity specific API URLs used by the JS application to a unique resourceKey.
This resource key is then used to configure entity specific views of the JS application.
Another concept of the Sulu frontend application is the utilization of metadata when rendering javascript views. For
example, the list view utilizes metadata that is configured in XML files to determine the available columns and the
type of the data inside of these columns. This concepts enables the developer to built feature-rich UIs without the
need of writing javascript code.
Links