Initial version of basic project task management application.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@897 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Two Due:
|
||||
<a href="index.wm">$i18n.xlate("app_footer.summary_link")</a> |
|
||||
<a href="/register/">$i18n.xlate("app_footer.account_link")</a>
|
||||
@@ -0,0 +1,51 @@
|
||||
#set ($title = $i18n.xlate("edit.title"))
|
||||
#import ("/header.wm")
|
||||
|
||||
<p>
|
||||
|
||||
<form action="index.wm">
|
||||
$form.fixedHidden("action", "update")
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0">
|
||||
<tr><td colspan="3" bgcolor="$scolor"> <br></td></tr>
|
||||
|
||||
<tr><td colspan="3">Summary:<br>
|
||||
<textarea name="summary" rows="5" cols="50">
|
||||
</textarea>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>Category:<br>
|
||||
<font face="courier">
|
||||
$form.text("category", "size='10'", "")
|
||||
</font></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")
|
||||
</select>
|
||||
</font></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")
|
||||
</select>
|
||||
</font></td></tr>
|
||||
|
||||
<tr><td colspan="3" align="right" bgcolor="$scolor">
|
||||
$form.submit("submit", "Update")</td></tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
#import ("/footer.wm")
|
||||
@@ -0,0 +1,16 @@
|
||||
<p>
|
||||
<table cellpadding=6 cellspacing=0 border=0 width="100%">
|
||||
<tr bgcolor="$hcolor">
|
||||
<td>
|
||||
#import ("app_footer.wm")
|
||||
</td>
|
||||
<!--
|
||||
<td align="right">
|
||||
©2002
|
||||
<a href="http://www.samskivert.com/">Michael Bayne</a>
|
||||
</td>
|
||||
-->
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,26 @@
|
||||
## This is the header and footer color
|
||||
#set ($hcolor = "#CCCCCC")
|
||||
## These colors are used for common UI elements
|
||||
#set ($tcolor = "#99CCFF")
|
||||
#set ($scolor = "#CCCCCC")
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>$i18n.xlate("header.combined_title", $i18n.xlate("app_name"), $title)</title>
|
||||
<link rel="stylesheet" type="text/css" href="/twodue/style.css">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" vlink="#003366">
|
||||
|
||||
<table cellpadding="6" cellspacing="0" border="0" width="100%">
|
||||
<tr bgcolor="$hcolor"><td align=right>
|
||||
<span class="big"><b>$i18n.xlate("header.title", $i18n.xlate("app_name"))</b></span><br>
|
||||
$title</td>
|
||||
</table>
|
||||
|
||||
#if ($error)
|
||||
<p>
|
||||
<table cellpadding="6" cellspacing="0" border="0" width="100%">
|
||||
<tr><td><font color="#FF0000">$i18n.xlate($error)</font></td></tr>
|
||||
</table>
|
||||
#end
|
||||
@@ -0,0 +1,156 @@
|
||||
#set ($title = $i18n.xlate("index.title"))
|
||||
#import ("/header.wm")
|
||||
|
||||
<p>
|
||||
|
||||
<table cellpadding="0" cellspacing="15" border="0">
|
||||
<tr><td width="50%"><b>Owned tasks:</b></td>
|
||||
|
||||
<td width="50%"><b>Outstanding tasks:</b></td></tr>
|
||||
|
||||
<tr><td valign="top">
|
||||
<table cellpadding="2" cellspacing="0" border="0" width="100%">
|
||||
|
||||
#foreach ($otask in $otasks)
|
||||
#if ($vidx > 0)
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
#end
|
||||
<tr><td colspan="3" align="left" bgcolor="$scolor">$otask.name</td></tr>
|
||||
|
||||
#foreach ($task in $otask.tasks)
|
||||
<form action="index.wm">
|
||||
$form.fixedHidden("action", "complete")
|
||||
$form.fixedHidden("task", "$task.taskId")
|
||||
#if ($vidx%2 == 0)
|
||||
#set ($rowcolor = "#FFFFFF")
|
||||
#else
|
||||
#set ($rowcolor = "#EEEEEE")
|
||||
#end
|
||||
<tr bgcolor="$rowcolor"><td>
|
||||
#if ($username == $task.owner)
|
||||
$form.imageSubmit("submit", "", "images/complete.png", "Mark as completed")
|
||||
#else
|
||||
|
||||
#end
|
||||
</td>
|
||||
<td>$task.summary</td>
|
||||
<td valign="top">$task.category</td></tr>
|
||||
</form>
|
||||
#end
|
||||
#end
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<center class="small">Click the check box to mark a task as completed.</center>
|
||||
|
||||
</td><td valign="top">
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0" width="100%">
|
||||
#foreach ($xtask in $xtasks)
|
||||
#if ($vidx > 0)
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
#end
|
||||
<tr bgcolor="$scolor"><td colspan="2" align="left">$xtask.name</td>
|
||||
<td>
|
||||
#if ($xtask.pruned > 0)
|
||||
<a href="index.wm?expand=$xtask.name">($xtask.pruned ...)</a>
|
||||
#else
|
||||
|
||||
#end
|
||||
</td></tr>
|
||||
|
||||
#foreach ($task in $xtask.tasks)
|
||||
<form action="index.wm">
|
||||
$form.fixedHidden("task", "$task.taskId")
|
||||
#if ($vidx%2 == 0)
|
||||
#set ($rowcolor = "#FFFFFF")
|
||||
#else
|
||||
#set ($rowcolor = "#EEEEEE")
|
||||
#end
|
||||
<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>
|
||||
<td valign="top">$task.category</td>
|
||||
</tr>
|
||||
</form>
|
||||
#end
|
||||
#end
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<center class="small">Click the wrench to claim a task.</center>
|
||||
|
||||
</td></tr>
|
||||
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
|
||||
<tr><td><b>Recent completed tasks:</b></td>
|
||||
<td><b>Create new task:</b></td></tr>
|
||||
|
||||
<tr><td valign="top">
|
||||
<table cellpadding="2" cellspacing="0" border="0" width="100%">
|
||||
#foreach ($task in $dtasks)
|
||||
#if ($vidx%2 == 0)
|
||||
#set ($rowcolor = "#EEEEEE")
|
||||
#else
|
||||
#set ($rowcolor = "#FFFFFF")
|
||||
#end
|
||||
<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>
|
||||
#end
|
||||
</table>
|
||||
|
||||
</td><td valign="top">
|
||||
|
||||
<form action="index.wm">
|
||||
$form.fixedHidden("action", "create")
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0">
|
||||
<tr><td colspan="3" bgcolor="$scolor"> <br></td></tr>
|
||||
|
||||
<tr><td colspan="3">Summary:<br>
|
||||
<textarea name="summary" rows="5" cols="50">
|
||||
</textarea>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>Category:<br>
|
||||
<font face="courier">
|
||||
$form.text("category", "size='10'", "")
|
||||
</font></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")
|
||||
</select>
|
||||
</font></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")
|
||||
</select>
|
||||
</font></td></tr>
|
||||
|
||||
<tr><td colspan="3" align="right" bgcolor="$scolor">
|
||||
$form.submit("submit", "Create")</td></tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
#import ("/footer.wm")
|
||||
@@ -0,0 +1,17 @@
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
th, td, center, div { /* ns 4 */
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: Courier;
|
||||
font-size: 12pt
|
||||
}
|
||||
|
||||
.big { font-size: 16pt }
|
||||
.small { font-size: 10pt }
|
||||
Reference in New Issue
Block a user