Conversation
|
|
||
| <div class="form-group col-md-4 col-sm-4" style="padding-right: 20px;"> | ||
| <input type="text" id="datepicker" class="form-control" name="deadlineDate" required> | ||
| <input type="date" id="deadlineDate" class="form-control" name="deadlineDate" required> |
There was a problem hiding this comment.
So when you switched from datepicker as an id to deadlineDate it didn't have any impact because deadlineDate id is not use in any other place at all. form the deadlineDate name it does as it is the value that the backend grab when they called data['deadlineData']. So you don't need to change the id at all. In fact, the id can be removed as the id is not use else where at all on the front-end.
| <div class="form-group col-md-4 col-sm-4" style="padding-right: 20px;"> | ||
| <input type="text" id="datepicker" class="form-control" name="deadlineDate" required> | ||
| <input type="date" id="deadlineDate" class="form-control" name="deadlineDate" required> | ||
| </div> |
There was a problem hiding this comment.
Moreover, because you switch from the type as text to date we no longer need the .datepicker() jquery UI. I tried cross browser capability test. They work with both safari, mozilla and chrome. So you can remove the .datepicker() use for the older datepicker id.
| ''' | ||
| import os, sys | ||
| import importlib | ||
| import pymysql |
There was a problem hiding this comment.
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
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
type="date"for visual calendar selection.<input>tag and redundantid="datepicker"attribute.</div>tag to restore proper Bootstrap form grid layout.placeholder="mm/dd/yyyy"attribute.deadlineManagement.pyto handle ISO format (%Y-%m-%d).How to Test