Updated CodeCorner3 (markdown)

leithoff 2016-07-19 16:15:13 +02:00
parent dd72afedc8
commit d312c49455

@ -114,21 +114,50 @@ Assume that we wanted to name our first eTemplate <em>index</em>.<br />
<dd>
<dl>
<dt>Step 3</dt>
<dd>put in the basic template structure as it is used througout EGroupware
<dd>put in the basic template stuff that is needed to build our template
<pre>
&lt;template id="test.index.dates" template="" lang="" group="0" version="1.1.001" &gt;
&lt;/template&gt;
&lt;template id="test.index.add" template="" lang="" group="0" version="1.1.001"&gt;
&lt;/template&gt;
&lt;template id="test.index.rows" template="" lang="" group="0" version="1.1.001"&gt;
&lt;/template&gt;
&lt;template id="test.index" template="" lang="" group="0" version="1.9.001"&gt;
&lt;nextmatch id="nm" options="test.index.rows" header_left="test.index.add" header_right="test.index.dates"/&gt;
&lt;template id="test.index" template="" lang="" group="0" version="1.9.101"&gt;
&lt;groupbox id="debuginfo"&gt;
&lt;caption label="Debuginfo"/&gt;
&lt;grid&gt;
&lt;columns&gt;
&lt;column/&gt;
&lt;/columns&gt;
&lt;rows&gt;
&lt;row&gt;
&lt;textbox multiline="true" id="message" no_lang="1" readonly="true"/&gt;
&lt;/row&gt;
&lt;row&gt;
&lt;textbox lable="record-id" id="test_id" no_lang="1" readonly="true"/&gt;
&lt;/row&gt;
&lt;/rows&gt;
&lt;/grid&gt;
&lt;/groupbox&gt;
&lt;hrule/&gt;
&lt;grid&gt;
&lt;columns&gt;
&lt;column/&gt;
&lt;column/&gt;
&lt;/columns&gt;
&lt;rows&gt;
&lt;row&gt;
&lt;description font_style="20" href="40" value="firstname" no_lang="1"/&gt;
&lt;textbox blur="Type in a name" id="test_firstname" no_lang="1" size="25" maxlength="40"/&gt;
&lt;/row&gt;
&lt;row&gt;
&lt;description value="name"/&gt;
&lt;textbox id="test_name" size="25" maxlength="40"/&gt;
&lt;/row&gt;
&lt;row&gt;
&lt;button label="new " id="new"/&gt;
&lt;button align="right" label="submit" id="submit"/&gt;
&lt;/row&gt;
&lt;/rows&gt;
&lt;/grid&gt;
&lt;/template&gt;
</pre>
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
</dd>
</dl>