From d312c49455e8937a361954ee5e6cb740b12c855e Mon Sep 17 00:00:00 2001 From: leithoff Date: Tue, 19 Jul 2016 16:15:13 +0200 Subject: [PATCH] Updated CodeCorner3 (markdown) --- CodeCorner3.md | 53 ++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 12 deletions(-) diff --git a/CodeCorner3.md b/CodeCorner3.md index 429ecab..558b88e 100644 --- a/CodeCorner3.md +++ b/CodeCorner3.md @@ -114,21 +114,50 @@ Assume that we wanted to name our first eTemplate index.
Step 3
-
put in the basic template structure as it is used througout EGroupware +
put in the basic template stuff that is needed to build our template
-	<template id="test.index.dates" template="" lang="" group="0" version="1.1.001" >
-	
-	</template>
-	<template id="test.index.add" template="" lang="" group="0" version="1.1.001">
-	
-	</template>
-	<template id="test.index.rows" template="" lang="" group="0" version="1.1.001">
-
-	</template>
-	<template id="test.index" template="" lang="" group="0" version="1.9.001">
-		<nextmatch id="nm" options="test.index.rows" header_left="test.index.add" header_right="test.index.dates"/>
+	<template id="test.index" template="" lang="" group="0" version="1.9.101">
+		<groupbox id="debuginfo">
+			<caption label="Debuginfo"/>
+			<grid>
+				<columns>
+					<column/>
+				</columns>
+				<rows>
+					<row>
+						<textbox multiline="true" id="message" no_lang="1" readonly="true"/>
+					</row>
+					<row>
+						<textbox lable="record-id" id="test_id" no_lang="1" readonly="true"/>
+					</row>
+				</rows>
+			</grid>
+		</groupbox>
+		<hrule/>
+		<grid>
+			<columns>
+				<column/>
+				<column/>
+			</columns>
+			<rows>
+				<row>
+					<description font_style="20" href="40" value="firstname" no_lang="1"/>
+					<textbox blur="Type in a name" id="test_firstname" no_lang="1" size="25" maxlength="40"/>
+				</row>
+				<row>
+					<description value="name"/>
+					<textbox id="test_name" size="25" maxlength="40"/>
+				</row>
+				<row>
+					<button label="new " id="new"/>
+					<button align="right" label="submit" id="submit"/>
+				</row>
+			</rows>
+		</grid>
 	</template>
 
+Its a template with two grids. one, the first, placed within a groupbox to hold some debug-info. output after submit. +An h-rule and a grid with our inputboxes and two buttons. one to clear, one to submit