Due date feature is hidden, will be restored later

This commit is contained in:
Suraj Patil 2016-08-07 15:35:57 +05:30
parent 11e232abfa
commit 46b4e52100
6 changed files with 31 additions and 11 deletions

View File

@ -209,13 +209,13 @@ func DeleteTask(username string, id int) error {
func AddTask(title, content, category string, taskPriority int, username string, hidden int) error {
log.Println("AddTask: started function")
var err error
// var timeDueDate time.Time
// if dueDate != "" {
// timeDueDate, err = time.Parse("31/12/2016", dueDate)
// if err != nil {
// log.Fatal(err)
// }
// }
/*var timeDueDate time.Time
if duedate != "" {
timeDueDate, err = time.Parse("12/31/2016", duedate)
if err != nil {
log.Fatal(err)
}
}*/
userID, err := GetUserID(username)
if err != nil && (title != "" || content != "") {
return err

7
public/static/css/jquery-ui.min.css vendored Executable file

File diff suppressed because one or more lines are too long

13
public/static/js/jquery-ui.min.js vendored Executable file

File diff suppressed because one or more lines are too long

View File

@ -22,7 +22,7 @@ $(document).ready(function(){
$('#addNoteModal').modal('show');
});
$("#datepicker").datepicker();
// $("#datepicker").datepicker();
$('#editCatFrmBtn').click(function(){
$('#EditForm').toggleClass('hidden')

View File

@ -17,7 +17,7 @@
<!-- Custom CSS -->
<link href="/static/css/styles.css" rel="stylesheet">
<link href="/static/css/jquery-ui.min.css" rel="stylesheet">
<!--<link href="/static/css/jquery-ui.min.css" rel="stylesheet">-->
<link href="/static/css/sidebar.css" rel="stylesheet">
<link href="/static/css/sidebar-bootstrap.css" rel="stylesheet">
<link href="/static/css/font-awesome.min.css" rel="stylesheet">
@ -26,7 +26,7 @@
<!--<script src="/static/js/modernizr-2.6.2.min.js"></script>-->
<!-- All Javascript at the bottom of the page for faster page loading -->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/jquery-ui.min.js"></script>
<!--<script src="/static/js/jquery-ui.min.js"></script> ENABLE WHEN DUE DATE FEATURE IS REQUIRED-->
<!-- If no online access, fallback to our hardcoded version of jQuery
<script>window.jQuery || document.write('<script src="/static/js/jquery-1.8.2.min.js"><\/script>')</script>

View File

@ -25,7 +25,7 @@
<span id="file-group" class="hidden">
File: <input type="file" name="uploadfile" />
</span>
Date: <input id="datepicker" name="dueDate"/>
<!--Date: <input id="datepicker" name="dueDate"/>-->
<br> Priority:
<input type="radio" name="priority" value="3" /> High
<input type="radio" name="priority" value="2" /> Medium