diff --git a/punch_list/css/custom.css b/punch_list/css/custom.css index 3de4566..05ea465 100644 --- a/punch_list/css/custom.css +++ b/punch_list/css/custom.css @@ -7,19 +7,31 @@ textarea { height:50%; color: lime; border: 1px solid #999; } - .one.column, - .one.columns { width: 4.66666666667%; } - .two.columns { width: 13.3333333333%; } - .three.columns { width: 22%; } - .four.columns { width: 30.6666666667%; } - .five.columns { width: 39.3333333333%; } - .six.columns { width: 48%; } - .seven.columns { width: 56.6666666667%; } - .eight.columns { width: 65.3333333333%; } - .nine.columns { width: 74.0%; } - .ten.columns { width: 82.6666666667%; } - .eleven.columns { width: 91.3333333333%; } - .twelve.columns { width: 100%; margin-left: 0; } +.listWrapper:after { + content: ""; + clear: both; } +.listWrapper { + margin: 5px; + margin-bottom: 10px; + border: 1px solid #999; } +.punchListHeader { + color: #00bfff; + padding: 4px; + font-size: 2rem; + font-weight: 999; } + .one.column, + .one.columns { width: 4.66666666667%; } + .two.columns { width: 13.3333333333%; } + .three.columns { width: 22%; } + .four.columns { width: 30.6666666667%; } + .five.columns { width: 39.3333333333%; } + .six.columns { width: 48%; } + .seven.columns { width: 56.6666666667%; } + .eight.columns { width: 65.3333333333%; } + .nine.columns { width: 74.0%; } + .ten.columns { width: 82.6666666667%; } + .eleven.columns { width: 91.3333333333%; } + .twelve.columns { width: 100%; margin-left: 0; } #newEvent { display: none;} #editPunch { diff --git a/punch_list/eventManage.js b/punch_list/eventManage.js index e873a87..491d34d 100644 --- a/punch_list/eventManage.js +++ b/punch_list/eventManage.js @@ -42,7 +42,7 @@ function genList(punchList) { document.getElementById("showDone").innerHTML = "Show Done: " + showDone + ""; disableElement("punchDetail"); - enableElement("punchList"); + enableElement("punchListAll"); var itemStyle = "punches"; isItArray(punchList); @@ -52,12 +52,13 @@ function genList(punchList) { // list = ""; - list = "
"; // //prioritize in-progress + var list = ''; for (i = 0; i < listLength; i++) { if (punchList[i].progress.toLowerCase() === "in progress") { console.log(`in progress`); // list += "
"; + list += "
"; // list += "
"; // list += "
"; list += "
" + punchList[i].subject + "
"; // @@ -77,14 +78,18 @@ function genList(punchList) { list += "
"; list += "
"; list += "
"; + list += ""; + document.getElementById("punchListInProgress").innerHTML = list; } } // then !done + var list = ''; for (i = 0; i < listLength; i++) { if (punchList[i].progress.toLowerCase() != "in progress") { if (punchList[i].progress.toLowerCase() != "done") { console.log(`not in progress or not done`); + list += "
"; // list += "
"; // list += "
"; list += "
" + punchList[i].subject + "
"; // @@ -104,16 +109,21 @@ function genList(punchList) { list += "
"; list += "
"; list += "
"; + list += ""; + document.getElementById("punchListNew").innerHTML = list; } } } // then done + var list = ''; for (i = 0; i < listLength; i++) { if (showDone === true) { + enableElement("punchListDoneWrapper"); if (punchList[i].progress.toLowerCase() === "done") { console.log(`show done.`); - list += "
"; // + list += "
"; // + list += "
"; // list += "
"; list += "
" + punchList[i].subject + "
"; // list += "
Status: " + punchList[i].progress + "
"; @@ -132,12 +142,13 @@ function genList(punchList) { list += "
"; list += "
"; list += "
"; + list += "
"; + document.getElementById("punchListDone").innerHTML = list; } + } else { + disableElement("punchListDoneWrapper"); } } - - list += ""; - document.getElementById("punchList").innerHTML = list; } function startPunch(item) { @@ -159,7 +170,7 @@ function completePunch(item) { function enablePunchDetail(item) { var punchList = window.punches; console.log(`inside enablePunchDetail`); - disableElement("punchList"); + disableElement("punchListAll"); console.log(`punchList Disabled`); enableElement("punchDetail"); console.log(`punchDetail Enabled`); @@ -186,7 +197,7 @@ function createNewEvent() { jsonStr = JSON.stringify(punchList); putJson(jsonStr); disableElement("newEvent"); - enableElement("punchList"); + enableElement("punchListAll"); // document.getElementById("newEventList").innerHTML = jsonStr; } @@ -249,7 +260,7 @@ function toggleShowDone() { function editPunch(item) { disableElement("newEvent"); - disableElement("punchList"); + disableElement("punchListAll"); enableElement("editPunch"); punchList = window.punches; diff --git a/punch_list/index.html b/punch_list/index.html index 3ae521f..676cf06 100644 --- a/punch_list/index.html +++ b/punch_list/index.html @@ -47,16 +47,32 @@ - - - -
+ +
+
+ In Progress +
+
+ +
+ New +
+
+ +
+ Done +
+
+
+
+ +


Punch ItemStatusPriorityAction