Skip to content

Implemented Calendar date picker - #114

Open
zapataa0 wants to merge 16 commits into
developmentfrom
CalendarDatePicker
Open

zapataa0 wants to merge 16 commits into
developmentfrom
CalendarDatePicker

Conversation

@zapataa0

Copy link
Copy Markdown
Collaborator

Related Issue

Fixes #88

Description

Updated the deadline creation form to use a native HTML5 date picker (type="date"), allowing users to select dates visually via a calendar pop-up while allowing users to continue using direct keyboard input. Also cleaned up broken HTML code in the template.

Changes Made

  • Updated input type to type="date" for visual calendar selection.
  • Removed duplicate <input> tag and redundant id="datepicker" attribute.
  • Fixed missing closing </div> tag to restore proper Bootstrap form grid layout.
  • Removed unnecessary placeholder="mm/dd/yyyy" attribute.
  • Updated backend date parsing in deadlineManagement.py to handle ISO format (%Y-%m-%d).

How to Test

  1. Navigate to the Create a Deadline Section.
  2. Click the calendar icon to the right of the date input field to trigger the browser's calendar picker.
  3. Select a date visually, or type a date directly into the field.
  4. Verify the form submits properly and layout aligns cleanly across screen sizes.

Comment thread app/templates/snips/createDeadline.html Outdated
Comment thread app/templates/snips/createDeadline.html
Comment thread create_db.py
'''
import os, sys
import importlib
import pymysql

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those are files that shouldn not be push as they are not part of your issue description: setup.sh, readme.md, secret_config.md, config.yaml and create_db.py

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Calendar Date Picker for Deadline Creation

2 participants