summaryrefslogtreecommitdiffstats
path: root/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
diff options
context:
space:
mode:
authorkelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68>2010-02-01 16:56:53 +0000
committerkelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68>2010-02-01 16:56:53 +0000
commit667d3a02bc5867d349b548ac5eee5212026a2551 (patch)
treeb8d197336a3c835f11fc93c12ba7df0e5da5ec0c /sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
parent666eea81f0ac8ea88c04da729bf98a4542453344 (diff)
adding work items to existing milestone working - new milstone missing some logic, i/f needs tidying, backup of old plan not yet good enough
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@905337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html54
1 files changed, 33 insertions, 21 deletions
diff --git a/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html b/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
index ddb018ed74..a914dbe14e 100644
--- a/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
+++ b/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
@@ -42,18 +42,13 @@
mschoice+='<option>'+ms[i].ID+'</option>';
var mswi = ms[i].workItem.list;
mscontent +="<tr>"+
-
- "<th>Work Item</th>"+
- "<th>Owner</th>"+
"<th>Jira</th>"+
"<th>Jira title</th>"+
"<th>Jira Assigned To</th>"+
"<th>Status</th>"+
-
- "</tr>";
+ "</tr>";
for (var j=0; j<mswi.length; j++) {
- mscontent +="<tr>"+"<td>"+mswi[j].title+"</td>"+
- "<td>"+mswi[j].responsible+"</td>";
+ mscontent +="<tr>";
if(mswi[j].jira) {
mscontent +=
"<td><A HREF=\""+plan.issueBase+mswi[j].jira+"\">"+mswi[j].jira+"</A></td>"+
@@ -69,20 +64,25 @@
}
}
- mschoice += '<option>New Milestone..</option></select>';
+ mscontent += "</table><P>";
+ mschoice += '</select>';
+
+ document.getElementById('milestones').innerHTML='<h2>' + mscontent;
- mscontent += "</table>";
+
- mscontent += '<form name="newWorkItemForm">'+
- '<div id="addWorkItem">'+
- '<h4>New Work Item</h4>'+
+ var newmscontent =
+ '<form name="newWorkItemForm">'+
+ '<div id="addWorkItem">'+
'JIRA: <input type="text" name="JIRA" value="TUSCANY-"><br/>'+
- 'MileStone: '+mschoice+
- '<input type="button" onClick="addWorkItem()" value="Add Work Item">'+
- '</div>'+
- '</form>';
-
- document.getElementById('milestones').innerHTML='<h2>' + mscontent;
+ mschoice+
+ '<br/>New Milestone'+
+ '<input name="newmsname" type=text/></td></tr>'+
+ '<input type="button" onClick="addWorkItem()" value="Add Work Item">'+
+ '</div>'+
+ '</form>';
+
+ document.getElementById('addPlanData').innerHTML=newmscontent;
return;
}
@@ -94,6 +94,15 @@
}
function addWorkItem() {
+
+ planView.post(document.newWorkItemForm.newmsname.value,
+ document.newWorkItemForm.mschoice.value,
+ document.newWorkItemForm.JIRA.value)
+ .addCallback(plan_postNewItem_response);
+ }
+
+ function plan_postNewItem_response()
+ {
}
@@ -104,7 +113,10 @@
<body onload="init()">
<h1>Plan</h1>
-
- <div id="milestones"></div>
-</body>
+
+ <table>
+ <tr><td><div id="milestones"></div></td></tr>
+ <tr><td><div id="addPlanData"></div></td></tr>
+ </table>
+ </body>
</html> \ No newline at end of file