js form and css
This commit is contained in:
parent
6f04566334
commit
dc19892362
|
@ -233,6 +233,7 @@ textarea {
|
|||
|
||||
/* Larger than tablet */
|
||||
@media (min-width: 750px) {
|
||||
body { width: 800px; }
|
||||
/* Navbar */
|
||||
.clock-wrapper {
|
||||
display: block;
|
||||
|
|
|
@ -200,7 +200,7 @@ function enablePunchDetail(item) {
|
|||
enableElement("punchDetail");
|
||||
console.log(`punchDetail Enabled`);
|
||||
// html = "";
|
||||
html = "<p>subject: " + punchList[item].subject + "<br />Created: " + punchList[item].cDate + "<br />Modified Date: " + punchList[item].mDate + "<br />Priority: " + punchList[item].priority + "<br />Progress: " + punchList[item].progress + "<br /><textarea>" + punchList[item].notes + "</textarea></p><input type=button value=close onClick=getJson(genList)>";
|
||||
html = "<p>subject: " + punchList[item].subject + "<br />Created: " + punchList[item].cDate + "<br />Modified Date: " + punchList[item].mDate + "<br />Priority: " + punchList[item].priority + "<br />Progress: " + punchList[item].progress + "<br /><textarea>" + punchList[item].notes + "</textarea><br /><input onfocus='clearDefault(this)' type='text' id='tag' value='Add tag'><input onClick='addTag()' type=button value='Add' /></p><input type=button value=close onClick=getJson(genList)>";
|
||||
document.getElementById("punchDetail").innerHTML = html;
|
||||
}
|
||||
|
||||
|
@ -348,6 +348,9 @@ function addTag() {
|
|||
enableElement("punchListAll");
|
||||
}
|
||||
|
||||
|
||||
|
||||
function clearDefault(a){
|
||||
if (a.defaultValue == a.value) {
|
||||
a.value="";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,21 +33,22 @@
|
|||
|
||||
<div class="row" id="editPunch">
|
||||
<input type=hidden id=editID>
|
||||
|
||||
<input class="u-full-width" type="text" id="editSubject" value=""><br />
|
||||
<input class="u-full-width" type="text" id="editPriority" value=""><br />
|
||||
<input class="u-full-width" type="text" id="editProgress" READONLY><br />
|
||||
<input type='text' id='timepickerEdit' class='datepicker-here u-full-width' data-timepicker='true' data-language='en'><br />
|
||||
<!-- <input type="text" id="editStartDate" value=""> -->
|
||||
<textarea class="u-full-width" id="editNotes" value=""></textarea>
|
||||
<input type='text' id='tag' value="new Tag"><input onClick="addTag()" type=button value="ADD" />
|
||||
<input onfocus="clearDefault(this)" type='text' id='tag' value="new Tag"><input onClick="addTag()" type=button value="ADD" />
|
||||
<input class="u-full-width" onClick="submitEditPunch()" id="test" type="button" value="Update" />
|
||||
</div>
|
||||
<div class="container row" id="newEvent">
|
||||
<form id="newEventForm" onSubmit="return processEventForm(this.form)">
|
||||
<input class="u-full-width" type="text" id="newSubject" value="subject">
|
||||
<input class="u-full-width" type="text" id="newPriority" value="priority">
|
||||
<input onfocus="clearDefault(this)" class="u-full-width" type="text" id="newSubject" value="subject">
|
||||
<input onfocus="clearDefault(this)" class="u-full-width" type="text" id="newPriority" value="priority">
|
||||
<input type="hidden" id="newProgress" value="new">
|
||||
<input type='text' id='timepickerCreate' class='datepicker-here u-full-width' data-timepicker='true' data-language='en' value="date">
|
||||
<input onfocus="clearDefault(this)" type='text' id='timepickerCreate' class='datepicker-here u-full-width' data-timepicker='true' data-language='en' value="date">
|
||||
<textarea class="u-full-width" id="newNotes" value="Notes"></textarea>
|
||||
<input class="u-full-width" onClick="createNewEvent()" id="test" type="button" value="Update" />
|
||||
</form>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var version = "0.3.021",
|
||||
var version = "0.3.022",
|
||||
debug = false,
|
||||
jsonUrl = "https://api.myjson.com/bins/1dodsj",
|
||||
showDone = false,
|
||||
|
|
Loading…
Reference in New Issue