Due date feature is hidden, will be restored later
This commit is contained in:
parent
11e232abfa
commit
46b4e52100
14
db/tasks.go
14
db/tasks.go
|
@ -209,13 +209,13 @@ func DeleteTask(username string, id int) error {
|
||||||
func AddTask(title, content, category string, taskPriority int, username string, hidden int) error {
|
func AddTask(title, content, category string, taskPriority int, username string, hidden int) error {
|
||||||
log.Println("AddTask: started function")
|
log.Println("AddTask: started function")
|
||||||
var err error
|
var err error
|
||||||
// var timeDueDate time.Time
|
/*var timeDueDate time.Time
|
||||||
// if dueDate != "" {
|
if duedate != "" {
|
||||||
// timeDueDate, err = time.Parse("31/12/2016", dueDate)
|
timeDueDate, err = time.Parse("12/31/2016", duedate)
|
||||||
// if err != nil {
|
if err != nil {
|
||||||
// log.Fatal(err)
|
log.Fatal(err)
|
||||||
// }
|
}
|
||||||
// }
|
}*/
|
||||||
userID, err := GetUserID(username)
|
userID, err := GetUserID(username)
|
||||||
if err != nil && (title != "" || content != "") {
|
if err != nil && (title != "" || content != "") {
|
||||||
return err
|
return err
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -22,7 +22,7 @@ $(document).ready(function(){
|
||||||
$('#addNoteModal').modal('show');
|
$('#addNoteModal').modal('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#datepicker").datepicker();
|
// $("#datepicker").datepicker();
|
||||||
|
|
||||||
$('#editCatFrmBtn').click(function(){
|
$('#editCatFrmBtn').click(function(){
|
||||||
$('#EditForm').toggleClass('hidden')
|
$('#EditForm').toggleClass('hidden')
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<!-- Custom CSS -->
|
<!-- Custom CSS -->
|
||||||
<link href="/static/css/styles.css" rel="stylesheet">
|
<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.css" rel="stylesheet">
|
||||||
<link href="/static/css/sidebar-bootstrap.css" rel="stylesheet">
|
<link href="/static/css/sidebar-bootstrap.css" rel="stylesheet">
|
||||||
<link href="/static/css/font-awesome.min.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>-->
|
<!--<script src="/static/js/modernizr-2.6.2.min.js"></script>-->
|
||||||
<!-- All Javascript at the bottom of the page for faster page loading -->
|
<!-- 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.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
|
<!-- 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>
|
<script>window.jQuery || document.write('<script src="/static/js/jquery-1.8.2.min.js"><\/script>')</script>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<span id="file-group" class="hidden">
|
<span id="file-group" class="hidden">
|
||||||
File: <input type="file" name="uploadfile" />
|
File: <input type="file" name="uploadfile" />
|
||||||
</span>
|
</span>
|
||||||
Date: <input id="datepicker" name="dueDate"/>
|
<!--Date: <input id="datepicker" name="dueDate"/>-->
|
||||||
<br> Priority:
|
<br> Priority:
|
||||||
<input type="radio" name="priority" value="3" /> High
|
<input type="radio" name="priority" value="3" /> High
|
||||||
<input type="radio" name="priority" value="2" /> Medium
|
<input type="radio" name="priority" value="2" /> Medium
|
||||||
|
|
Loading…
Reference in New Issue