Bug #1417: Add UI validation to prevent empty codes

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-04-19 11:28:35 +02:00
parent 75f4da9e89
commit 212d2490d4

View file

@ -66,7 +66,8 @@
<row>
<label value="${i18n:_('Code')}" />
<hbox>
<textbox value="@{templatesForOrdersController.template.code}" width="250px" />
<textbox value="@{templatesForOrdersController.template.code}" width="250px"
constraint="no empty:${i18n:_('cannot be null or empty')}" />
</hbox>
</row>
<row>
@ -128,4 +129,4 @@
<button label="${i18n:_('Cancel')}" onClick="templatesForOrdersController.cancel()"
sclass="cancel-button global-action" />
</hbox>
</window>
</window>