             <div class='#{if isAddOnInput then 'input-group' else ""} #{inputSize()} #{containerCss}' #{containerAttribs}>
                #{icon()}
               <input id='#{property}' class='form-control input-sm' data-name='#{property}' type='#{dataType}' #{inputAttributes} #{placeholder} #{propertyValue()} #{readonly} #{disabled}/>
-              #{isRequired}
+              #{isRequired()}
             </div>
             #{errors()}
           </div>

  dataType = undefined
  #Read all the options if they exists
  opt = options.hash or {}
  isRequired = if !opt.isRequired? or !opt.isRequired then "" else "<span class='input-group-addon'>*</span>"
  translationRoot = opt.translationRoot or undefined
  dataType = opt.dataType or "text"
  readonly = opt.readonly or false
  readonly = if readonly then "readonly" else ""
  disabled = opt.disabled or false

# Put your handlebars.js helpers here.
# Globals variables.
# Get the domains definition as globals.
domains_definition = require('./domains')

Handlebars.registerHelper 'pick', (val, options) ->
	return options.hash[val]
