Fixed the generation of the required attribute in HTML5 forms.
Added logic to the detail-entity FTL for date and number types.

Specialized HTML5 input type attributes like type="date", type="datetime" etc. are now generated and used for display when creating or editing entities.