mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 18:19:04 +01:00
ec1cf301b2
- needed (= not to be empty) fields are enforced now - min and max values and format of int and float fields - validator for text-fields (perl regular expression) The input-validation is handled completly withing eTemplate, the application dont need to implement any code, just set the right attributes in the template. Validation-errors are displayed in red behind the concerning field, try the template 'etemplate.validation-test' in the editor.
26 lines
747 B
XML
26 lines
747 B
XML
<?xml version="1.0"?>
|
|
<!-- $Id$ -->
|
|
<overlay>
|
|
<grid id="etemplate.validation-test" template="" lang="" group="" version="" border="0" spacing="0" padding="0">
|
|
<columns>
|
|
<column/>
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<textbox size="10" maxlength="10" validator="/^[A-Z]+/" label="Text (<= 10 chars, has to start with capital letter)" id="text"/>
|
|
</row>
|
|
<row>
|
|
<int options="-15,5" label="Integer (-15 <= x <= 5)" id="integer" needed="1"/>
|
|
</row>
|
|
<row>
|
|
<textbox type="float" min="-1.5" max="3.5" label="Floatingpoint (-1.5 <= x <= 3.5)" id="float"/>
|
|
</row>
|
|
<row>
|
|
<hbox>
|
|
<button label="Save" id="save"/>
|
|
<button label="Cancel" id="cancel"/>
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
</overlay> |