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

Add Entry Functionality #12

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Jul 30, 2023

Description

This PR adds entry functionality to the swim-ranking-analysis website. It addresses Issue #10 by allowing users to enter new entries in the event tables and team tables. The entered data is saved to the database via a new API endpoint.

Summary of Changes

  • Added a form to each event table in templates/entries.html to allow users to enter a new entry. The event name is auto-filled based on the table it is inserting into.
  • Added a form to each table in templates/teams.html to allow users to enter a new entry. The name field is auto-filled.
  • Created a new API endpoint in main.py to handle the submission of new entries and save them to the database.

Please review and merge this PR to enable the entry functionality on the website.

Fixes #10.

To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-entry-functionality

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Jul 30, 2023
@alexboden
Copy link
Owner

You need to add corresponding javascript in the static folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Add Entry Functionality
1 participant