loops/organize/work/work_macros.pt
helmutm 92bacf05d4 work in progress: task management with work items
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3091 fd906abe-77d9-0310-91a1-e0d9ade77398
2008-12-28 14:26:02 +00:00

67 lines
2.7 KiB
XML

<html i18n:domain="loops">
<!-- $Id$ -->
<metal:block define-macro="create_workitem">
<form method="post"
id="addWorkitem_form" class="dialog"
dojoType="dijit.form.Form">
<input type="hidden" name="form.action" value="create_workitem" />
<input type="hidden" name="workitem.action" value="finish" />
<div class="heading" i18n:translate="">Add Work Item</div>
<div>
<label i18n:translate=""
for="description">Description</label>
<div>
<textarea name="description" cols="80" rows="4" id="description"
dojoType="dijit.form.SimpleTextarea"
style="width: 60em"></textarea></div>
</div>
<div>
<label i18n:translate=""
for="start-end">Start - End</label>
<div id="start-end">
<input type="text" style="width: 8em"
dojoType="dijit.form.DateTextBox"
name="start_date" required="true"
tal:attributes="value view/defaultDate" />
<input type="text" style="width: 6em"
dojoType="dijit.form.TimeTextBox"
name="start_time" required="true"
tal:attributes="value view/defaultTime" /> -
<input type="text" style="width: 6em"
dojoType="dijit.form.TimeTextBox"
name="end_time" required="true"
tal:attributes="value view/defaultTime" /></div>
<label i18n:translate=""
for="duration-effort">Duration / Effort (hh:mm)</label>
<div id="duration-effort">
<input type="text" style="width: 5em"
dojoType="dijit.form.ValidationTextBox"
regexp="[0-9]{1,2}(:[0-5][0-9]){0,1}"
name="duration" /> /
<input type="text" style="width: 5em"
dojoType="dijit.form.ValidationTextBox"
regexp="[0-9]{1,2}(:[0-5][0-9]){0,1}"
name="effort" /></div>
</div>
<div>
<label i18n:translate=""
for="comment">Comment</label>
<div>
<textarea name="comment" cols="80" rows="4" id="comment"
dojoType="dijit.form.SimpleTextarea"
style="width: 60em"></textarea></div>
</div>
<div class="buttons">
<input value="Save" type="submit"
onClick="return closeDialog(true)"
i18n:attributes="value">
<input type="button" value="Cancel"
onClick="return closeDialog(false)"
i18n:attributes="value"></div>
</form>
</metal:block>
</html>