<?xml version='1.0' standalone='yes'?>
-<var:component xmlns="http://www.w3.org/1999/xhtml"
- xmlns:var="http://www.skyrix.com/od/binding"
- xmlns:const="http://www.skyrix.com/od/constant"
- xmlns:uix="OGo:uix"
- xmlns:label="OGo:label"
- className="UIxPageFrame"
- title="name"
+<var:component
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:var="http://www.skyrix.com/od/binding"
+ xmlns:const="http://www.skyrix.com/od/constant"
+ xmlns:uix="OGo:uix"
+ xmlns:label="OGo:label"
+ className="UIxPageFrame"
+ title="name"
>
- <form var:href="clientObject.baseURL">
+ <script language="JavaScript">
+ function validateAptEditor() {
+ var e;
+
+ e = document.getElementById('summary');
+ if (e.value.length == 0)
+ return confirm('<var:string label:value="validate_notitle"/>');
+ return true;
+ }
+ </script>
+
+ <form var:href="clientObject.baseURL" name="editform"
+ onsubmit="return validateAptEditor()">
+
<script language="JavaScript"> <!-- TODO: use a resource -->
<var:string value="jsCode" const:escapeHTML="NO" />
</script>
+
<table cellspacing="0" cellpadding="5" width="100%">
<tr>
<td>
<tr>
<td>
<var:if condition="hasErrorText">
- <div style="background-color: #AA0000;">
- <var:string value="errorText" />
+ <div style="background-color: #AA0000;">
+ <var:string value="errorText" />
</div>
<hr />
</var:if>
-
+
<table border="0" cellpadding="2" cellspacing="0" width="100%"
bgcolor="#e8e8e0"
>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <input type="text" name="summary" const:size="40"
- var:value="title" />
+ <input type="text" name="summary" id="summary"
+ const:size="40" var:value="title" />
</span>
</td>
</tr>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <var:popup list="priorities"
- item="item"
- string="itemPriorityText"
- selection="priority"
- />
+ <var:popup list="priorities" item="item"
+ string="itemPriorityText" selection="priority"/>
</span>
</td>
</tr>
<table>
<tr>
<td>
- <var:popup list="cycles"
- item="item"
+ <var:popup list="cycles" item="item"
label:string="$cycleLabel"
selection="cycle"
const:onChange="selectHasCycle(this);"
<td id="cycle_end_mode"
var:style="initialCycleVisibility"
>
- <var:popup list="cycleEnds"
- item="item"
- label:string="$item"
- value="item"
+ <var:popup list="cycleEnds" item="item"
+ label:string="$item" value="item"
selection="cycleEnd"
const:onChange="selectCycleEnd(this);"
const:id="cycle_end_mode_selection"
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <var:checkbox-list list="categoryItems"
- item="item"
+ <var:checkbox-list list="categoryItems" item="item"
suffix="itemCategoryText"
selections="categories"
/>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <input type="checkbox"
- var:selection="isPrivate"
- var:checked="isPrivate"
- /> <var:string label:value="is private" />
+ <input type="checkbox" var:selection="isPrivate"
+ var:checked="isPrivate" />
+ <var:string label:value="is private" />
</span>
</td>
</tr>