Ambrosia
view release on metacpan or search on metacpan
share/Templates/Templates/XSLT+DOJO/authorize.xsl view on Meta::CPAN
</xsl:template>
<xsl:template match="repository">
<table>
<tr>
<td>Username</td>
<td>
<xsl:variable name="value">,value:"<xsl:value-of select="./SysUser/@login"/>"</xsl:variable>
<input data-dojo-type="dijit.form.ValidationTextBox">
<xsl:attribute name="data-dojo-props">
<xsl:value-of select="concat('id:"id_Login",name:"login",type:"text",trim:true,maxLength:"32",promptMessage:"Login"',$value)"/>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td>Password</td>
<td>
<xsl:variable name="value">,value:"<xsl:value-of select="./SysUser/@pswd"/>"</xsl:variable>
<input data-dojo-type="dijit.form.ValidationTextBox">
<xsl:attribute name="data-dojo-props">
<xsl:value-of select="concat('id:"id_Password",name:"password",type:"password",trim:true,maxLength:"32",promptMessage:"Password"',$value)"/>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
</xslt:template>
share/Templates/Templates/XSLT+DOJO/edit_json.xsl view on Meta::CPAN
<xslt:choose>
<xslt:when test="@Type='Bool'">
<xsl:variable name="value">,value:1</xsl:variable>
</xslt:when>
<xslt:otherwise>
<xsl:variable name="value">,value:"<xsl:value-of><xslt:attribute name="select"><xslt:value-of select="$value" /></xslt:attribute></xsl:value-of>"</xsl:variable>
</xslt:otherwise>
</xslt:choose>
<xsl:variable name="regExp"><xslt:if test="@Type='Email'">,regExp:<xsl:variable name="s24"><xslt:value-of select="concat('{','2,4}')" /></xsl:variable>"[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]<xsl:value-of select="$s24" />"</xslt:if></xsl:vari...
<xslt:variable name="dojoProps">id:"id_<xslt:value-of select="$name" />",name:"<xslt:value-of select="$name" />",type:"<xslt:value-of select="$in_type" />",trim:true,maxLength:"<xslt:value-of select="@Size" />&qu...
<!--xslt:variable name="dojoProps">
id:"id_<xslt:value-of select="$name" />",
name:"<xslt:value-of select="$name" />",
type:"<xslt:value-of select="$in_type" />",
trim:true,
maxLength:"<xslt:value-of select="@Size" />",
promptMessage:"<xslt:value-of select="@Title" />"</xslt:variable-->
<xslt:variable name="dojoType">
<xslt:choose>
<xslt:when test="@Type='Email'">dijit.form.ValidationTextBox</xslt:when>
<xslt:when test="@Type='String'">dijit.form.ValidationTextBox</xslt:when>
<xslt:when test="@Type='Number'">dijit.form.NumberTextBox</xslt:when>
<xslt:when test="@Type='Double'">dijit.form.NumberTextBox</xslt:when>
<xslt:when test="@Type='Date'">dijit.form.DateTextBox</xslt:when>
<xslt:when test="@Type='Datetime'">dijit.form.DateTextBox</xslt:when>
<xslt:when test="@Type='Bool'">dijit.form.CheckBox</xslt:when>
share/Templates/Templates/XSLT+DOJO/edit_json.xsl view on Meta::CPAN
<xslt:with-param name="valueList" select="/atns:Application/atns:EntitysRef/atns:Entity[@Id=$p_ref_id]/atns:Field[@Hidden!='YES' or not(@Hidden)]/@Name"/>
<xslt:with-param name="separator" select="'_'"/>
</xslt:call-template>",
<! - - -->
items: data.repository.items}
});
var select = new Select({
id: 'id_<xslt:value-of select="@To"/>',
name: "<xslt:value-of select="@To"/>",
value: "<xsl:value-of select="$value_ref"/>",
promptMessage: "Select <xslt:value-of select="$label"/>",
store: readStore
}, "id_<xslt:value-of select="@To"/>");
select.set('style','width: 15em; overflow: hidden;');
select.startup();
});
});
</script>
<input id="id_"><xsl:attribute name="id">id_<xslt:value-of select="@To"/></xsl:attribute></input>
share/Templates/Templates/XSLT+DOJO/edit_json.xsl view on Meta::CPAN
.get('/<xslt:value-of select="$entityName" />/').then(function(data){
var readStore = new ItemFileReadStore({data: {
identifier: "<xslt:value-of select="/atns:Application/atns:Relations/atns:Relation[@RefId = $endId]/atns:EntityRef[@RefId = $bindId]/@To"/>",
label: "<xslt:value-of select="/atns:Application/atns:EntitysRef/atns:Entity[@Id=$endId]/@Name"/>",
items: data.repository.items}
});
var select = new Select({
id: 'id_<xslt:value-of select="/atns:Application/atns:Relations/atns:Relation[@RefId = $endId]/atns:EntityRef[@RefId = $bindId]/@To"/>',
name: "<xslt:value-of select="/atns:Application/atns:Relations/atns:Relation[@RefId = $endId]/atns:EntityRef[@RefId = $bindId]/@To"/>",
value: "",
promptMessage: "Select <xslt:value-of select="$label"/>",
store: readStore
}, "id_<xslt:value-of select="/atns:Application/atns:Relations/atns:Relation[@RefId = $endId]/atns:EntityRef[@RefId = $bindId]/@To"/>");
select.set('style','width: 15em; overflow: hidden;');
select.startup();
});
});
</script>
<input id="id_"><xsl:attribute name="id">id_<xslt:value-of select="/atns:Application/atns:Relations/atns:Relation[@RefId = $endId]/atns:EntityRef[@RefId = $bindId]/@To"/></xsl:attribute></input>
</td></tr>
share/Templates/Templates/XSLT+DOJO/tree_json.xsl view on Meta::CPAN
}
usGov.get(selectedObject.id).then(function(selectedObject){
selectedObject.children.push({
name: "New child",
id: Math.random()
});
usGov.put(selectedObject);
});
});
tree.on("dblclick", function(object){
object.name = prompt("Enter a new name for the object");
usGov.put(object);
}, true);
});
</script>
</head>
<body class="claro">
<div id="tree"></div>
</body>
</html>
</xsl:template>
( run in 1.957 second using v1.01-cache-2.11-cpan-6aa56a78535 )