|
From: <sv...@de...> - 2005-06-22 21:16:57
|
Author: pcamacho
Date: 2005-06-22 17:16:59 -0400 (Wed, 22 Jun 2005)
New Revision: 1396
Modified:
humano2/trunk/web/builder/site/xsl/createfolder.xsl
humano2/trunk/web/builder/site/xsl/createform.xsl
humano2/trunk/web/builder/site/xsl/createinterfacetools.xsl
humano2/trunk/web/builder/site/xsl/createreport.xsl
humano2/trunk/web/builder/site/xsl/createview.xsl
Log:
CHANGE:
* still factorizing xsl code...
* bug fix: when deleting a form,folder,view,report, the warning message =
was forgetting=20
"form","folder","view","report".
Modified: humano2/trunk/web/builder/site/xsl/createfolder.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/builder/site/xsl/createfolder.xsl 2005-06-22 20:55:=
20 UTC (rev 1395)
+++ humano2/trunk/web/builder/site/xsl/createfolder.xsl 2005-06-22 21:16:=
59 UTC (rev 1396)
@@ -138,37 +138,10 @@
<xsl:with-param name=3D"title">
</xsl:with-param>
</xsl:call-template>
- <tr align=3D"center">
- <td>
- <table>
- <tr>
- <td class=3D"ContentAlt">
- <div id=3D"CrudButtons1">
- <input type=3D"submit">
- <xsl:attribute name=3D=
"value">
- <xsl:value-of se=
lect=3D"/folder/folderDatas/saveName" />
- </xsl:attribute>
- <xsl:attribute name=3D=
"onclick">
- Form.UpdateSubmi=
tAll();
- </xsl:attribute>
- </input>
- </div>
- </td>
- <td>
- <div id=3D"CrudButtons2">
- <xsl:if test=3D"/folder/=
folderDatas/displayDeleteButton=3D'true'" >
- <input type=3D"submi=
t" value=3D"Delete">
- <xsl:attribute n=
ame=3D"onclick">
- FormDelete()=
;
- </xsl:attribute>
- </input>
- </xsl:if>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
+ <xsl:call-template name=3D"CreateButtons">
+ <xsl:with-param name=3D"SaveName" select=3D"=
/folder/folderDatas/saveName" />
+ <xsl:with-param name=3D"BoolDelete" select=3D=
"/folder/folderDatas/displayDeleteButton" /> =
=20
+ </xsl:call-template>
<!--######################### End:Buttons ######=
#################################### -->
</table>
<!-- This tag is used to create the inputs hidden to=
send all the data in one pass -->
Modified: humano2/trunk/web/builder/site/xsl/createform.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/builder/site/xsl/createform.xsl 2005-06-22 20:55:20=
UTC (rev 1395)
+++ humano2/trunk/web/builder/site/xsl/createform.xsl 2005-06-22 21:16:59=
UTC (rev 1396)
@@ -168,37 +168,10 @@
<xsl:with-param name=3D"title">
</xsl:with-param>
</xsl:call-template>
- <tr align=3D"center">
- <td>
- <table>
- <tr>
- <td class=3D"ContentAlt">
- <div id=3D"CrudButtons1"=
>
- <input type=3D"submi=
t">
- <xsl:attribute n=
ame=3D"value">
- <xsl:value-o=
f select=3D"/form/formDatas/saveName" />
- </xsl:attribute>
- <xsl:attribute n=
ame=3D"onclick">
- Form.UpdateS=
ubmitAll();
- </xsl:attribute>
- </input>
- </div>
- </td>
- <td>
- <div id=3D"CrudButtons2"=
>
- <xsl:if test=3D"/for=
m/formDatas/displayDeleteButton=3D'true'" >
- <input type=3D"s=
ubmit" value=3D"Delete">
- <xsl:attribu=
te name=3D"onclick">
- FormDele=
te();
- </xsl:attrib=
ute>
- </input>
- </xsl:if>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
+ <xsl:call-template name=3D"CreateButtons">
+ <xsl:with-param name=3D"SaveName" select=
=3D"/form/formDatas/saveName" />
+ <xsl:with-param name=3D"BoolDelete" sele=
ct=3D"/form/formDatas/displayDeleteButton" /> =
=20
+ </xsl:call-template>
</xsl:if>
<!--######################### End:Buttons ##=
######################################## -->
</table>
Modified: humano2/trunk/web/builder/site/xsl/createinterfacetools.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/builder/site/xsl/createinterfacetools.xsl 2005-06-2=
2 20:55:20 UTC (rev 1395)
+++ humano2/trunk/web/builder/site/xsl/createinterfacetools.xsl 2005-06-2=
2 21:16:59 UTC (rev 1396)
@@ -1,20 +1,20 @@
<xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"http://www.w3.org/1999/XSL/=
Transform">
<!-- $Id$ -->
<xsl:template name=3D"SeparationBar">
- <xsl:param name=3D"title" />
- <tr>
- <td colspan=3D"2">
- <table width=3D"100%" border=3D"0" cellSpacing=3D"0" cellPad=
ding=3D"0">
- <tr>
- <td width=3D"100%" colspan=3D"2" class=3D"separatorL=
ine">
- </td>
- </tr>
- <tr>
- <td class=3D"lev1head" valign=3D"top"><font size=3D"=
2"><xsl:value-of select=3D"$title" /></font></td>
- </tr>
- </table>
- </td>
- </tr>
+ <xsl:param name=3D"title" />
+ <tr>
+ <td colspan=3D"2">
+ <table width=3D"100%" border=3D"0" cellSpacing=3D"0" cel=
lPadding=3D"0">
+ <tr>
+ <td width=3D"100%" colspan=3D"2" class=3D"separa=
torLine">
+ </td>
+ </tr>
+ <tr>
+ <td class=3D"lev1head" valign=3D"top"><font size=
=3D"2"><xsl:value-of select=3D"$title" /></font></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
</xsl:template>
=20
<xsl:template name=3D"BuildLeftAndRightColumn">
@@ -69,4 +69,39 @@
</table>
</xsl:template>
=20
+ <xsl:template name=3D"CreateButtons">
+ <xsl:param name=3D"SaveName" />
+ <xsl:param name=3D"BoolDelete" />
+ <tr align=3D"center">
+ <td>
+ <table>
+ <tr>
+ <td class=3D"ContentAlt">
+ <div id=3D"CrudButtons1">
+ <input type=3D"submit">
+ <xsl:attribute name=3D"value">
+ <xsl:value-of select=3D"$SaveNam=
e" />
+ </xsl:attribute>
+ <xsl:attribute name=3D"onclick">
+ Form.UpdateSubmitAll();
+ </xsl:attribute>
+ </input>
+ </div>
+ </td>
+ <td>
+ <div id=3D"CrudButtons2">
+ <xsl:if test=3D"$BoolDelete=3D'true'" >
+ <input type=3D"submit" value=3D"Dele=
te">
+ <xsl:attribute name=3D"onclick">
+ Form.Delete();
+ </xsl:attribute>
+ </input>
+ </xsl:if>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </xsl:template>
</xsl:stylesheet>
Modified: humano2/trunk/web/builder/site/xsl/createreport.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/builder/site/xsl/createreport.xsl 2005-06-22 20:55:=
20 UTC (rev 1395)
+++ humano2/trunk/web/builder/site/xsl/createreport.xsl 2005-06-22 21:16:=
59 UTC (rev 1396)
@@ -6,12 +6,6 @@
<html>
<head>
<title>Report Edit</title>
- <script language=3D"javascript">
- function ConfirmDelete(userId)
- {
- return confirm("Are you sure you want to remove this=
report?");
- }
- </script>
<!-- For the graphical components -->
<script language=3D"Javascript" src=3D"js/grafcomponents/mis=
c.js"></script>
<script language=3D"javascript" src=3D"js/grafcomponents/tes=
t.js"></script>
@@ -403,37 +397,10 @@
<xsl:with-param name=3D"title">
</xsl:with-param>
</xsl:call-template>
- <tr align=3D"center">
- <td>
- <table>
- <tr>
- <td class=3D"ContentAlt"=
>
- <div id=3D"CrudButto=
ns1">
- <input type=3D"s=
ubmit">
- <xsl:attribu=
te name=3D"value">
- <xsl:val=
ue-of select=3D"/report/reportDatas/saveName" />
- </xsl:attrib=
ute>
- <xsl:attribu=
te name=3D"onclick">
- Form.Upd=
ateSubmitAll();
- </xsl:attrib=
ute>
- </input>
- </div>
- </td>
- <td>
- <div id=3D"CrudButto=
ns2">
- <xsl:if test=3D"=
/report/reportDatas/displayDeleteButton=3D'true'" >
- <input type=3D=
"submit" value=3D"Delete">
- <xsl:att=
ribute name=3D"onclick">
- Form=
Delete();
- </xsl:at=
tribute>
- </input>
- </xsl:if>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
+ <xsl:call-template name=3D"CreateButtons=
">
+ <xsl:with-param name=3D"SaveName" se=
lect=3D"/report/reportDatas/saveName" />
+ <xsl:with-param name=3D"BoolDelete" =
select=3D"/report/reportDatas/displayDeleteButton" /> =
=20
+ </xsl:call-template>
<!--######################### End:Button=
s ########################################## -->
</xsl:if>
</table>
Modified: humano2/trunk/web/builder/site/xsl/createview.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/builder/site/xsl/createview.xsl 2005-06-22 20:55:20=
UTC (rev 1395)
+++ humano2/trunk/web/builder/site/xsl/createview.xsl 2005-06-22 21:16:59=
UTC (rev 1396)
@@ -6,12 +6,6 @@
<html>
<head>
<title>View Edit</title>
- <script language=3D"javascript">
- function ConfirmDelete(userId)
- {
- return confirm("Are you sure you want to remove this=
view?");
- }
- </script>
<!-- For the graphical components -->
<script language=3D"Javascript" src=3D"js/grafcomponents/mis=
c.js"></script>
<script language=3D"javascript" src=3D"js/grafcomponents/tes=
t.js"></script>
@@ -316,37 +310,10 @@
<xsl:with-param name=3D"title">
</xsl:with-param>
</xsl:call-template>
- <tr>
- <td>
- <table width=3D"100%">
- <tr align=3D"center">
- <td class=3D"Content=
Alt">
- <div id=3D"CrudB=
uttons1">
- <input type=3D=
"submit">
- <xsl:att=
ribute name=3D"value">
- <xsl=
:value-of select=3D"/view/viewDatas/saveName" />
- </xsl:at=
tribute>
- <xsl:att=
ribute name=3D"onclick">
- retu=
rn Form.UpdateSubmitAll();=20
- </xsl:at=
tribute>
- </input>
- </div>
- </td>
- <td>
- <div id=3D"CrudB=
uttons2">
- <xsl:if test=
=3D"/view/viewDatas/displayDeleteButton=3D'true'" >
- <input t=
ype=3D"submit" value=3D"Delete">
- <xsl=
:attribute name=3D"onclick">
- =
FormDelete();
- </xs=
l:attribute>
- </input>
- </xsl:if>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
+ <xsl:call-template name=3D"CreateBut=
tons">
+ <xsl:with-param name=3D"SaveName=
" select=3D"/view/viewDatas/saveName" />
+ <xsl:with-param name=3D"BoolDele=
te" select=3D"/view/viewDatas/displayDeleteButton" /> =
=20
+ </xsl:call-template>
<!--######################### End:Bu=
ttons ########################################## -->
</xsl:if>
</table>
|