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

Admin page for CUD operations #36

Open
elimelt opened this issue Jul 13, 2023 · 3 comments
Open

Admin page for CUD operations #36

elimelt opened this issue Jul 13, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@elimelt
Copy link
Contributor

elimelt commented Jul 13, 2023

Need to create a simple interface for updating the website content so that the tech team can focus on more than just updating static page content.

Posting new content will look like filling the following forms, which will create respective entries in our DB:

Event

Field Desc.
Attendees int simple number field/dropdown
Date string should be a form that enforces format ex:'2192-10-20T16:00-07:00'
Description String text area for arbitrary amount of input
Image URL file upload from local machine
Location String arbitrary string meant to describe the event location
Name String event name
Sponsor String event sponsor

Project

Field Desc.
Description String text area for arbitrary amount of input
Image URL file upload from local machine
Name String project team name

Lead

Field Desc.
Active bool checkbox
Grad year int drop-down
Image URL file upload from local machine
Date joined string should be a form that enforces format ex:'2192-10-20T16:00-07:00'
Date left string should be a form that enforces format ex:'2192-10-20T16:00-07:00'
Name String name
Role String club role
Email String email
Team String team name

Updating/Deleting content would ideally be done in a way that the user can navigate a simple menu consisting on the above DB entities, with the option to either update or delete any given record.

First, implement the creation forms to the point where you can output all of the form data. Then we will change the names and process the data so that it can be hooked up to our backend.

@elimelt elimelt added enhancement New feature or request help wanted Extra attention is needed labels Jul 13, 2023
@sidlak-c137
Copy link
Member

One thing that might be tricky about the image part is that the url is a thing generated by firebase (so might need to do multiple calls to firebase to allow a user to upload an image)

@elimelt
Copy link
Contributor Author

elimelt commented Jul 15, 2023

Ah, I see. Are the URLs static, or can they change over time?

@sidlak-c137
Copy link
Member

I believe that they are static

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants