diff --git a/punch_list/backlog.html b/punch_list/backlog.html index 08744f4..b46bdba 100644 --- a/punch_list/backlog.html +++ b/punch_list/backlog.html @@ -6,6 +6,7 @@ + @@ -38,6 +39,8 @@ Time Boxer +
+
Backlog @@ -45,6 +48,7 @@
-
+ +
diff --git a/punch_list/backlogManage.js b/punch_list/backlogManage.js index b90b656..efea542 100644 --- a/punch_list/backlogManage.js +++ b/punch_list/backlogManage.js @@ -94,7 +94,24 @@ function genList(punchList, element) { if (punchList[i].progress.toLowerCase() === "done" && punchList[i].priority != 99999) { setPriority(punchList[i].uuid, 99999); } else if (punchList[i].progress.toLowerCase() != "done"){ - list += '
  • ' + punchList[i].priority + '
    ' + punchList[i].subject + '
    ' + punchList[i].progress + '
    Created:' + punchList[i].cDate + '
    Modified: ' + punchList[i].mDate + '

  • '; + list += '
  • '; + list += '
    '; + list += '
    '; + list += punchList[i].priority + '
    ' + punchList[i].subject + '
    '; + list += '
    ' + punchList[i].progress + '
    '; + if (style === "inProgress") { + list += ''; + } else if (style === "punch-default") { + list += ''; + } + list += '
    '; + list += '
    ' + punchList[i].progress + '
    '; + list += 'Created: ' + punchList[i].cDate + '
    '; + list += 'Modified: ' + punchList[i].mDate + '
    '; + list += 'Tags: ' + punchList[i].tags + '
    '; + list += '
    '; + list += ''; + list += '
  • '; } } @@ -134,6 +151,12 @@ function mkSortable() { }); $( "#sortable" ).disableSelection(); } ); + +// pop-over dialog + $( "#dialog" ).dialog({ autoOpen: false }); + $( "#opener" ).click(function() { + $( "#dialog" ).dialog( "open" ); + }); } function setPriority(sortObject, newPosition) { @@ -296,9 +319,7 @@ function editPunch(uuid) { /* Before doing this, Refresh the array, So that we don't overwrite data */ -getJson(); - disableElement("newEvent"); disableElement("punchListAll"); enableElement("editPunch"); @@ -312,29 +333,43 @@ getJson(); var progress = punchList[id].progress; var nDate = punchList[id].nDate; var notes = punchList[id].notes; + var tags = punchList[id].tags; + + var html = '
    '; + html += ''; + html += '
    Subject:
    '; + html += '
    Priority:
    '; + html += '
    Need By:
    '; + html += '
    Progress:
    '; + html += progress; + html += '
    '; + html += '
    Tags:
    '; + html += '
    Notes:
    '; + html += ''; + html += ''; + html += '
    '; + + document.getElementById("editPunch").innerHTML = html; - document.getElementById("editID").value = id; - document.getElementById("editSubject").value = subject; - document.getElementById("timepickerEdit").value = nDate; - document.getElementById("editNotes").value = notes; - document.getElementById("editProgress").value = progress; - document.getElementById("editPriority").value = priority; } -function submitEditPunch() { +function submitEditPunch(uuid) { punchList = window.punches; - var id = document.getElementById("editID").value; +// var uuid = document.getElementById("editID").value; + var id = findArrayId(uuid); var subjectField = document.getElementById("editSubject").value; var priorityField = document.getElementById("editPriority").value; - var progressField = document.getElementById("editProgress").value; + var progressField = document.getElementById("editProgress").innerHTML; var nDateField = document.getElementById("timepickerEdit").value; + var tagsField = document.getElementById("editTags").value.toLowerCase(); var notesField = document.getElementById("editNotes").value; punchList[id].subject = subjectField; punchList[id].priority = priorityField; punchList[id].progress = progressField; punchList[id].nDate = nDateField; + punchList[id].tags = tagsField; punchList[id].notes = notesField; jsonStr = JSON.stringify(punchList); diff --git a/punch_list/css/custom.css b/punch_list/css/custom.css index 57a1c90..f1da8ad 100644 --- a/punch_list/css/custom.css +++ b/punch_list/css/custom.css @@ -6,6 +6,7 @@ } .backlog-list-header { padding: 0.2em 0.3em; + padding-bottom: 0.9em; position: relative; } .portlet-toggle { @@ -25,13 +26,17 @@ } .ui-widget-content { background: #000; color: #aaa;} .ui-widget-header { background: #333; color: #aaa;} -.punch-default { border: 0px solid #AAA; background: #000; } -.inProgress { background: /*#80ffcc;*/ #555; color: #000; } +a.punch-default { color: #aaa; font-size: 12px; text-decoration: none;} +a.punch-default:hover { color: #00FFFF; } +.punch-default { border: 0px solid #AAA; color: #aaa; font-size: 12px; } +.inProgress { color: orange; font-size: 12px; } .hide { display: none; } .punch-list-backlog-details { font-size: 18px; color: #aaa; } +.edit-row { padding-top: 5px; } +.edit-text-box { width: 100%; min-height: 200px; } body { background: #222; color: #AAA; }