Notes, edits, tigers, oh my!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@898 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#set ($title = $i18n.xlate("detail.title"))
|
||||
#import ("/header.wm")
|
||||
|
||||
<p>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0" width="60%">
|
||||
<tr bgcolor="$scolor"><td colspan="4" align="left">$task.complexity</td></tr>
|
||||
|
||||
<form action="index.wm">
|
||||
$form.fixedHidden("task", "$task.taskId")
|
||||
|
||||
<tr><td>
|
||||
#if ($task.owner)
|
||||
#if ($username == $task.owner)
|
||||
$form.imageSubmit("submit", "", "images/complete.png", "Mark as completed")
|
||||
#else
|
||||
|
||||
#end
|
||||
#else
|
||||
$form.imageSubmit("action", "claim", "images/claim.png", "Claim this task")
|
||||
#end
|
||||
</td>
|
||||
|
||||
<td>$task.summary
|
||||
<span class="small">[$task.creator]</span>
|
||||
</td>
|
||||
<td valign="top">$task.category</td>
|
||||
<td valign="top"><a href="edit.wm?task=$task.taskId">
|
||||
<img src="images/edit.png" border="0"></a></td>
|
||||
</tr>
|
||||
|
||||
#if (!$string.blank($notes))
|
||||
<tr><td> </td>
|
||||
<td colspan="3">
|
||||
<p>
|
||||
<code>$notes</code>
|
||||
</td></tr>
|
||||
#end
|
||||
|
||||
</form>
|
||||
</table>
|
||||
|
||||
#import ("/footer.wm")
|
||||
+85
-21
@@ -3,49 +3,113 @@
|
||||
|
||||
<p>
|
||||
|
||||
<form action="index.wm">
|
||||
$form.fixedHidden("action", "update")
|
||||
<table cellpadding="0" cellspacing="10"> <!-- two colum layout table -->
|
||||
<tr><td valign="top">
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0">
|
||||
<tr><td colspan="3" bgcolor="$scolor"> <br></td></tr>
|
||||
|
||||
#if ($task && $task.completor)
|
||||
<form action="edit.wm">
|
||||
$form.fixedHidden("action", "reopen")
|
||||
<input type="hidden" name="task" value="$task.taskId">
|
||||
<tr><td colspan="3" valign="center">
|
||||
Task is completed.
|
||||
</td></tr>
|
||||
<tr><td colspan="3" bgcolor="$scolor" align="right">
|
||||
$form.submit("submit", "Reopen")</td></tr>
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
#end
|
||||
|
||||
<form action="edit.wm">
|
||||
$form.fixedHidden("action", "update")
|
||||
<input type="hidden" name="task" value="$task.taskId">
|
||||
|
||||
<tr><td colspan="3">Summary:<br>
|
||||
<textarea name="summary" rows="5" cols="50">
|
||||
#if ($task)
|
||||
$task.summary
|
||||
#end
|
||||
</textarea>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>Category:<br>
|
||||
<font face="courier">
|
||||
$form.text("category", "size='10'", "")
|
||||
</font></td>
|
||||
$form.text("category", "size='10'", $task.category)
|
||||
</td>
|
||||
|
||||
<td>Complexity:<br>
|
||||
<font face="courier">
|
||||
<select name="complexity">
|
||||
$form.option("complexity", "1 - Simple hack", "Simple hack", "1 - Simple hack")
|
||||
$form.option("complexity", "2 - Minor feature", "Minor feature", "1 - Simple hack")
|
||||
$form.option("complexity", "3 - Major feature", "Major feature", "1 - Simple hack")
|
||||
$form.option("complexity", "4 - Subsystem", "Subsystem", "1 - Simple hack")
|
||||
$form.option("complexity", "5 - Major refactor", "Major refactor", "1 - Simple hack")
|
||||
$form.option("complexity", "1 - Simple hack", "Simple hack", $task.complexity)
|
||||
$form.option("complexity", "2 - Minor feature", "Minor feature", $task.complexity)
|
||||
$form.option("complexity", "3 - Major feature", "Major feature", $task.complexity)
|
||||
$form.option("complexity", "4 - Subsystem", "Subsystem", $task.complexity)
|
||||
$form.option("complexity", "5 - Major refactor", "Major refactor", $task.complexity)
|
||||
</select>
|
||||
</font></td>
|
||||
</td>
|
||||
|
||||
<td>Priority:<br>
|
||||
<font face="courier">
|
||||
<select name="priority">
|
||||
$form.option("priority", "50", "Urgent", "15")
|
||||
$form.option("priority", "25", "Next release", "15")
|
||||
$form.option("priority", "15", "Soon", "15")
|
||||
$form.option("priority", "10", "Before launch", "15")
|
||||
$form.option("priority", "5", "Post launch", "15")
|
||||
$form.option("priority", "1", "On the list", "15")
|
||||
$form.option("priority", "50", "Urgent", $task.priority)
|
||||
$form.option("priority", "25", "Next release", $task.priority)
|
||||
$form.option("priority", "15", "Soon", $task.priority)
|
||||
$form.option("priority", "10", "Before launch", $task.priority)
|
||||
$form.option("priority", "5", "Post launch", $task.priority)
|
||||
$form.option("priority", "1", "On the list", $task.priority)
|
||||
</select>
|
||||
</font></td></tr>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>Creator:<br>
|
||||
$form.text("creator", "size='10'", $task.creator)
|
||||
</td>
|
||||
<td> </td>
|
||||
<td>Owner:<br>
|
||||
#if ($task.owner)
|
||||
$form.text("owner", "size='10'", $task.owner)
|
||||
#else
|
||||
$form.text("owner", "size='10'", "")
|
||||
#end
|
||||
</td>
|
||||
|
||||
<tr><td colspan="3" align="right" bgcolor="$scolor">
|
||||
$form.submit("submit", "Update")</td></tr>
|
||||
</form>
|
||||
</table>
|
||||
|
||||
</td><td valign="top"> <!-- two colum layout table -->
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0">
|
||||
|
||||
<form action="edit.wm">
|
||||
$form.fixedHidden("action", "addnote")
|
||||
<input type="hidden" name="task" value="$task.taskId">
|
||||
|
||||
<tr><td>Add a note:<br>
|
||||
<textarea name="note" rows="5" cols="50">
|
||||
</textarea>
|
||||
</td></tr>
|
||||
|
||||
<tr><td align="right" bgcolor="$scolor">
|
||||
$form.submit("submit", "Add")</td></tr>
|
||||
</form>
|
||||
|
||||
<form action="edit.wm">
|
||||
$form.fixedHidden("action", "editnotes")
|
||||
<input type="hidden" name="task" value="$task.taskId">
|
||||
|
||||
<tr><td>Notes:<br>
|
||||
<textarea name="notes" rows="10" cols="50">
|
||||
#if ($task)
|
||||
$task.notes
|
||||
#end
|
||||
</textarea>
|
||||
</td></tr>
|
||||
|
||||
<tr><td align="right" bgcolor="$scolor">
|
||||
$form.submit("submit", "Update")</td></tr>
|
||||
</form>
|
||||
|
||||
</table>
|
||||
|
||||
</td></tr> <!-- two colum layout table -->
|
||||
</table>
|
||||
|
||||
#import ("/footer.wm")
|
||||
|
||||
+20
-13
@@ -13,9 +13,9 @@
|
||||
|
||||
#foreach ($otask in $otasks)
|
||||
#if ($vidx > 0)
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
<tr><td colspan="4"> </td></tr>
|
||||
#end
|
||||
<tr><td colspan="3" align="left" bgcolor="$scolor">$otask.name</td></tr>
|
||||
<tr><td colspan="4" align="left" bgcolor="$scolor">$otask.name</td></tr>
|
||||
|
||||
#foreach ($task in $otask.tasks)
|
||||
<form action="index.wm">
|
||||
@@ -34,7 +34,9 @@ $form.imageSubmit("submit", "", "images/complete.png", "Mark as completed")
|
||||
#end
|
||||
</td>
|
||||
<td>$task.summary</td>
|
||||
<td valign="top">$task.category</td></tr>
|
||||
<td valign="top">$task.category</td>
|
||||
<td valign="top"><a href="edit.wm?task=$task.taskId">
|
||||
<img src="images/edit.png" border="0"></a></td></tr>
|
||||
</form>
|
||||
#end
|
||||
#end
|
||||
@@ -48,10 +50,10 @@ $form.imageSubmit("submit", "", "images/complete.png", "Mark as completed")
|
||||
<table cellpadding="2" cellspacing="0" border="0" width="100%">
|
||||
#foreach ($xtask in $xtasks)
|
||||
#if ($vidx > 0)
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
<tr><td colspan="4"> </td></tr>
|
||||
#end
|
||||
<tr bgcolor="$scolor"><td colspan="2" align="left">$xtask.name</td>
|
||||
<td>
|
||||
<td colspan="2">
|
||||
#if ($xtask.pruned > 0)
|
||||
<a href="index.wm?expand=$xtask.name">($xtask.pruned ...)</a>
|
||||
#else
|
||||
@@ -70,8 +72,14 @@ $form.fixedHidden("task", "$task.taskId")
|
||||
<tr bgcolor="$rowcolor">
|
||||
<td>$form.imageSubmit("action", "claim", "images/claim.png", "Claim this task")</td>
|
||||
<td>$task.summary
|
||||
<span class="small">[$task.creator]</span></td>
|
||||
<span class="small">[$task.creator]</span>
|
||||
#if (!$string.blank($task.notes))
|
||||
<a href="detail.wm?task=$task.taskId">[...]</a>
|
||||
#end
|
||||
</td>
|
||||
<td valign="top">$task.category</td>
|
||||
<td valign="top"><a href="edit.wm?task=$task.taskId">
|
||||
<img src="images/edit.png" border="0"></a></td>
|
||||
</tr>
|
||||
</form>
|
||||
#end
|
||||
@@ -99,7 +107,9 @@ $form.fixedHidden("task", "$task.taskId")
|
||||
<tr bgcolor="$rowcolor">
|
||||
<td valign="top" align="center">$task.completion<br>[$task.completor]</td>
|
||||
<td>$task.summary</td>
|
||||
<td valign="top">$task.category</td></tr>
|
||||
<td valign="top">$task.category</td>
|
||||
<td valign="top"><a href="edit.wm?task=$task.taskId">
|
||||
<img src="images/edit.png" border="0"></a></td></tr>
|
||||
#end
|
||||
</table>
|
||||
|
||||
@@ -117,12 +127,10 @@ $form.fixedHidden("action", "create")
|
||||
</td></tr>
|
||||
|
||||
<tr><td>Category:<br>
|
||||
<font face="courier">
|
||||
$form.text("category", "size='10'", "")
|
||||
</font></td>
|
||||
</td>
|
||||
|
||||
<td>Complexity:<br>
|
||||
<font face="courier">
|
||||
<select name="complexity">
|
||||
$form.option("complexity", "1 - Simple hack", "Simple hack", "1 - Simple hack")
|
||||
$form.option("complexity", "2 - Minor feature", "Minor feature", "1 - Simple hack")
|
||||
@@ -130,10 +138,9 @@ $form.text("category", "size='10'", "")
|
||||
$form.option("complexity", "4 - Subsystem", "Subsystem", "1 - Simple hack")
|
||||
$form.option("complexity", "5 - Major refactor", "Major refactor", "1 - Simple hack")
|
||||
</select>
|
||||
</font></td>
|
||||
</td>
|
||||
|
||||
<td>Priority:<br>
|
||||
<font face="courier">
|
||||
<select name="priority">
|
||||
$form.option("priority", "50", "Urgent", "15")
|
||||
$form.option("priority", "25", "Next release", "15")
|
||||
@@ -142,7 +149,7 @@ $form.text("category", "size='10'", "")
|
||||
$form.option("priority", "5", "Post launch", "15")
|
||||
$form.option("priority", "1", "On the list", "15")
|
||||
</select>
|
||||
</font></td></tr>
|
||||
</td></tr>
|
||||
|
||||
<tr><td colspan="3" align="right" bgcolor="$scolor">
|
||||
$form.submit("submit", "Create")</td></tr>
|
||||
|
||||
Reference in New Issue
Block a user