[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] tasks/skins/default/base.xsl, 1.1.2.8
From: |
nomail |
Subject: |
[Phpgroupware-cvs] tasks/skins/default/base.xsl, 1.1.2.8 |
Date: |
Wed, 30 Jun 2004 10:36:48 +0200 |
Update of /tasks/skins/default
Modified Files:
Branch: proposal-branch
base.xsl
date: 2004/06/30 08:36:48; author: jengo; state: Exp; lines: +110 -10
Log Message:
Edit task is starting to take form
=====================================================================
Index: tasks/skins/default/base.xsl
diff -u tasks/skins/default/base.xsl:1.1.2.7
tasks/skins/default/base.xsl:1.1.2.8
--- tasks/skins/default/base.xsl:1.1.2.7 Thu Jun 3 06:44:04 2004
+++ tasks/skins/default/base.xsl Wed Jun 30 08:36:48 2004
@@ -114,30 +114,30 @@
<td width="70%">
<select name="priority">
<option value="0">
- <xsl:if
test="/PHPGW/APP/task_data/priority = 0 or /PHPGW/APP/task_data/priority = ''">
+ <xsl:if
test="/PHPGW/APP/task_data/priority_id = 0 or /PHPGW/APP/task_data/priority_id
= ''">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
</option>
<option value="4">
- <xsl:if
test="/PHPGW/APP/task_data/priority = 4">
+ <xsl:if
test="/PHPGW/APP/task_data/priority_id = 4">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
Urgent
</option>
<option value="3">
- <xsl:if
test="/PHPGW/APP/task_data/priority = 3">
+ <xsl:if
test="/PHPGW/APP/task_data/priority_id = 3">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
High
</option>
<option value="2">
- <xsl:if
test="/PHPGW/APP/task_data/priority = 2">
+ <xsl:if
test="/PHPGW/APP/task_data/priority_id = 2">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
Normal
</option>
<option value="1">
- <xsl:if
test="/PHPGW/APP/task_data/priority = 1">
+ <xsl:if
test="/PHPGW/APP/task_data/priority_id = 1">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
Low
@@ -206,18 +206,18 @@
<td width="70%" align="left">
<select name="status">
<option value="0">
- <xsl:if
test="/PHPGW/APP/task_data/status = 0 or /PHPGW/APP/task_data/status = ''">
+ <xsl:if
test="/PHPGW/APP/task_data/status_id = 0 or /PHPGW/APP/task_data/status_id =
''">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
</option>
<option value="2">
- <xsl:if
test="/PHPGW/APP/task_data/status = 2">
+ <xsl:if
test="/PHPGW/APP/task_data/status_id = 2">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
Ongoing
</option>
<option value="1">
- <xsl:if
test="/PHPGW/APP/task_data/status = 1">
+ <xsl:if
test="/PHPGW/APP/task_data/status_id = 1">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
Done
@@ -235,7 +235,7 @@
<option value=""></option>
<xsl:for-each
select="responsible_user_list/responsible_user_list_item">
<option>
- <xsl:if
test="/PHPGW/APP/task_data/responsible = id">
+ <xsl:if
test="/PHPGW/APP/task_data/responsible_id = id">
<xsl:attribute
name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:attribute
name="value"><xsl:value-of select="id" /></xsl:attribute>
@@ -479,6 +479,106 @@
</table>
</xsl:template>
+<xsl:template match="APP[action_type='task_edit']">
+ <script>
+ function submit_form()
+ {
+ document.phpgw_form.form_submit.value = 'True';
+ document.phpgw_form.select_tab.value = <xsl:value-of
select="/PHPGW/APP/current_tab_index" />;
+ document.phpgw_form.submit();
+ }
+ </script>
+
+ <input type="hidden" name="form_submit" value="false" />
+ <input type="hidden" name="datamine_location"
value="{task_data/datamine_location}" />
+ <input type="hidden" name="dm_type" value="{task_data/dm_type}" />
+ <input type="hidden" name="dm_redirect" value="{task_data/dm_redirect}"
/>
+ <input type="hidden" name="task_id" value="{task_data/id}" />
+
+ <table border="0" width="95%" cellpadding="1" cellspacing="1">
+ <tr>
+ <td width="*" valign="top">
+
+ <table class="normalbox" cellSpacing="1"
cellPadding="0" width="100%" border="0">
+ <tr>
+ <td class="sideboxtitle"
align="Left" height="28" width="100%"> Edit task</td>
+ </tr>
+ <tr>
+ <td class="sideboxcontent"
bgColor="#efefef">
+ <table
class="sideboxtext" cellSpacing="1" cellPadding="1" width="1000%" border="0"
valign="top" align="center">
+ <tr>
+ <td
width="10%" align="left">Category:</td>
+ <td
width="*" align="left"><select name="category"><option
value="0">None</option></select></td>
+ </tr>
+ <xsl:if
test="task_data/dm_type != 'N'">
+ <tr>
+ <td
width="25%">Datamine type:</td>
+ <td
width="*" align="left">
+
<select name="dm_type">
+
<option value="H">
+
Hard link
+
<xsl:if test="note/dm_type = 'H'">
+
<xsl:attribute name="selected">selected</xsl:attribute>
+
</xsl:if>
+
</option>
+
<option value="S">
+
Symbolic link
+
<xsl:if test="note/dm_type = 'S'">
+
<xsl:attribute name="selected">selected</xsl:attribute>
+
</xsl:if>
+
</option>
+
</select>
+ </td>
+ </tr>
+ </xsl:if>
+ <tr>
+ <td
width="10%" align="left">
+
<font>
+
<xsl:if test="missing_fields/subject = 1">
+
<xsl:attribute name="class">text_missing</xsl:attribute>
+
</xsl:if>
+
Subject:
+
</font>
+ </td>
+ <td
width="*" align="left">
+
<input name="subject" size="64" value="{task_data/subject}">
+
<xsl:if test="missing_fields/subject = 1">
+
<xsl:attribute name="class">form_object_missing</xsl:attribute>
+
</xsl:if>
+
</input>
+ </td>
+ </tr>
+ <tr>
+ <td
colspan="2">
+
<xsl:call-template name="tab_widget">
+
<xsl:with-param name="values" select="tab_widget" />
+
</xsl:call-template>
+
+
<xsl:call-template name="display_tab_index" />
+ </td>
+ </tr>
+ <tr>
+ <td
colspan="2">
+
+
<table width="100%" border="0">
+
<tr>
+
<td width="*"> </td>
+
<td align="right" width="24"><input type="image" name="op"
src="{$api_image_path}/save.png" value="tasks.base.create" alt="Create"
title="Create" onClick="javascript: submit_form();"/></td>
+
</tr>
+
</table>
+
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+ </table>
+</xsl:template>
+
<xsl:template match="APP[action_type='task_create']">
<script>
function submit_form()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] tasks/skins/default/base.xsl, 1.1.2.8,
nomail <=