Update textOptionType.tpl to validate minlength an maxlength
authorTim Düsterhus <timwolla@googlemail.com>
Wed, 20 Feb 2013 15:02:37 +0000 (16:02 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Wed, 20 Feb 2013 15:02:37 +0000 (16:02 +0100)
com.woltlab.wcf/template/textOptionType.tpl

index bec294b32eea09f6f04b1f411a3b6dc29b1b43bf..3477f93a847df1ce1f5d6b9e455246c00651cb6a 100644 (file)
@@ -1 +1 @@
-<input type="{@$inputType}" id="{$option->optionName}" name="values[{$option->optionName}]" value="{$value}"{if $inputClass} class="{@$inputClass}"{/if} />
\ No newline at end of file
+<input type="{@$inputType}" id="{$option->optionName}" name="values[{$option->optionName}]" value="{$value}"{if $option->minlength > 0} required="required"{/if}{if $option->maxlength} maxlength="{$option->maxlength}"{/if}{if $inputClass} class="{@$inputClass}"{/if} />