summaryrefslogtreecommitdiffstats
path: root/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html')
-rw-r--r--sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html28
1 files changed, 22 insertions, 6 deletions
diff --git a/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html b/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
index 90e34be917..ddb018ed74 100644
--- a/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
+++ b/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
@@ -26,7 +26,7 @@
<script language="JavaScript">
//@Reference
- var plan = new tuscany.sca.Reference("plan");
+ var planView = new tuscany.sca.Reference("plan");
var ms;
function plan_getResponse(plan,exception) {
@@ -36,8 +36,10 @@
}
ms = plan.milestone.list;
var mscontent = "<table border=\"1\" align=\"left\">";
+ var mschoice = '<select name="mschoice">';
for(var i=0; i<ms.length; i++) {
mscontent += "<tr><th colspan=\"6\" align=\"left\">Milestone " + ms[i].ID + "</th></tr>";
+ mschoice+='<option>'+ms[i].ID+'</option>';
var mswi = ms[i].workItem.list;
mscontent +="<tr>"+
@@ -67,9 +69,18 @@
}
}
+ mschoice += '<option>New Milestone..</option></select>';
+ mscontent += "</table>";
- mscontent += "</table>";
+ mscontent += '<form name="newWorkItemForm">'+
+ '<div id="addWorkItem">'+
+ '<h4>New Work Item</h4>'+
+ '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;
return;
@@ -77,10 +88,13 @@
}
-function init()
-{
- plan.get().addCallback(plan_getResponse);
-}
+ function init()
+ {
+ planView.get().addCallback(plan_getResponse);
+ }
+
+ function addWorkItem() {
+ }
</script>
@@ -89,6 +103,8 @@ function init()
<body onload="init()">
<h1>Plan</h1>
+
+
<div id="milestones"></div>
</body>
</html> \ No newline at end of file