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

Improve the form for adding new News #66

Closed
2 of 3 tasks
ahnwarez opened this issue Jul 6, 2022 · 0 comments
Closed
2 of 3 tasks

Improve the form for adding new News #66

ahnwarez opened this issue Jul 6, 2022 · 0 comments

Comments

@ahnwarez
Copy link
Contributor

ahnwarez commented Jul 6, 2022

When users register to gardenz, they select their preferred gardenz from a drop-down list, including admins and this does not make sense, because admins should be able to manage any garden they want.

The News page component in client/views/admin/News/AddNews/AddNews.jsx calls a helper function called addNews that reads the gardenId from the user object from global state. Instead of reading it form global state, we're going to add a drop-down list in the client/subcomponents/News/NewsForm/NewsForm.jsx to show all gardens and let the administrator select a garden.

Basically we want update that form so that admins write the title, content, upload photos for a specific garden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants