                 <select id='#{property}' #{readonly} #{optName} #{optToTriggerName} #{optToTriggerListKey} #{dataMapping} class='form-control input-sm'>"
   #add options foreach options in the list
   addOption(elt) for elt in list
-  html +=      "</select>#{isRequired} 
+  html +=      "</select>#{isRequired()} 
               </div>
               #{errors()}
             </div>

  opt = options.hash or {}
  metadata = getMetadataFor(property, this)
  domain = domains_definition[metadata.domain] or {}
  console.log "domain", domain
  isRequired = ()=>
    isDisplayRequired = false
    if opt.isRequired?

  inputSizeValue = 12 -labelSizeValue
  inputSize = opt.inputSize or "col-sm-#{inputSizeValue} col-md-#{inputSizeValue} col-lg-#{inputSizeValue}"
  #Get the value of the transalated label.
  #Get the value of the transalated label.
  translationKey =()=>
    translation = metadata.label or ("#{this['modelName']}.#{property}" if this['modelName']?) or ""
    if translationRoot?
      translation = ((if (translationRoot?) and typeof translationRoot is "string" then translationRoot + "." else "")) + property
    
    return if(translation is "") then "" else i18n.t(translation)
  icon = ()=>  
  #<span class='glyphicon glyphicon-#{opt.icon}'></span>
    if opt.icon? then "<span class='input-group-addon'><i class='fa fa-#{opt.icon} fa-fw'></i> </span>" else ""
    #if opt.icon? then "<span class='input-group-addon'> <span class='glyphicon glyphicon-#{opt.icon}'></span></span>" else ""
  isAddOnInput = opt.icon? or (opt.isRequired || metadata.required) is true
   #Deal with the label
  label = ()=>
    if not opt.isNoLabel?
      if isAtLine
        "<div class='row'><label class='control-label for='#{property}'> #{translationKey()} </label></div>"
      else
        "<label class='control-label #{labelSize}' for='#{property}'> #{translationKey()} </label>" 
    else ""
  #Initialize the errors variables => Is there an error, if yes what is the message.
  error = ""
