mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-13 18:17:07 +02:00
Updated CodeCorner3 (markdown)
@ -1,7 +1,7 @@
|
|||||||
> [Wiki](Home) ▸ [Developer Docs](Developer Docs) ▸ [Code Corner](Code Corner) ▸ **day three** ▸ [a day in between](CodeCorner3a)
|
> [Wiki](Home) ▸ [Developer Docs](Developer Docs) ▸ [Code Corner](Code Corner) ▸ **day three** ▸ [a day in between](CodeCorner3a)
|
||||||
|
|
||||||
***
|
***
|
||||||
on day three we went out of base camp eGroupware and stepped into the high fields of ((eTemplate))s.<br />
|
on day three we went out of base camp eGroupware and stepped into the high fields of our template system.<br />
|
||||||
|
|
||||||
<h4>Motivation</h4>
|
<h4>Motivation</h4>
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ thats a typical textbox with label up front (description), placed in a grid (for
|
|||||||
<dd>
|
<dd>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Step 5</dt>
|
<dt>Step 5</dt>
|
||||||
<dd>now we need a button to send our data that we collect to us. To accomplish this, we have to add a column to our grid.</dd>
|
<dd>now we need a button to send our data that we collect to us. </dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
@ -212,27 +212,40 @@ those are buttons in a row (of a grid)
|
|||||||
<dd>
|
<dd>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Step 6</dt>
|
<dt>Step 6</dt>
|
||||||
<dd>Create a widget before the grid</dd>
|
<dd>Create an area to display some info before the grid</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Doubleclick on the label of our name-text-field.</li>
|
<li>put in some separator before the grid <pre><hrule/></pre>.</li>
|
||||||
<li>Click on the word <em>grid</em></li>
|
<li>put in a box <pre><groupbox id="debuginfo"> </groupbox></pre></li>
|
||||||
<li>in the upper area of the properties window is a bar with two select boxes. Within the second one select <em>insert a widget before</em>.</li>
|
<li>assign a label/caption to the box (just below the groupbox)
|
||||||
<li>select <em>grid</em> as type</li>
|
<pre>
|
||||||
|
<groupbox id="debuginfo">
|
||||||
|
<caption label="Debuginfo"/>
|
||||||
|
</pre></li>
|
||||||
|
<li>put in a grid
|
||||||
|
<pre>
|
||||||
|
<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>
|
||||||
|
</pre>
|
||||||
|
</li>
|
||||||
<li>Save</li>
|
<li>Save</li>
|
||||||
<li>doubleclick the small rectangle right below the horizontal rule below the button CSS-Style (that is the newly created grid, first cell).</li>
|
<li>now clear cache and cookies of your browser, call <em>Clear cache and register hooks</em> in admin . :
|
||||||
<li>select <em>text</em> as type, <em>Hello</em> as label and <em>who</em> as name.</li>
|
|
||||||
<li>disable the cell within the grid-row attributes, by typing <tt>!@who</tt> in the disabled property</li>
|
|
||||||
<li>check the checkbox <em>readonly</em> to make it an read-only textfield. This has two effects:
|
|
||||||
<ul>
|
|
||||||
<li>for one thing the value of @who is not editable</li>
|
|
||||||
<li>the borders around the text-field vanish.</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
</li>
|
||||||
<li>Save</li>
|
<li>you should see your new template</li>
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
Reference in New Issue
Block a user