view shared_view/includes/dojo/form/Input.tt @ 12:d9551c7e7101

improved dox library
author sergey
date Fri, 16 May 2014 16:47:50 +0400
parents 573272ec604b
children
line wrap: on
line source

[%
	BLOCK INIT;
    	document.dojo.modules.push("dijit/form/ValidationTextBox");
    END;
    IF metadata.inputType == 'password';
    	value = '';
    ELSE;
    	value = metadata.inputValue;
    END;
%]
<input data-dojo-type="dijit/form/ValidationTextBox" id="$id" name="$prefix" type="$metadata.inputType" [% IF NOT metadata.isOptional %]required="true"[% END %] value="$value" />