formElement =
if _.include(@config.htmlTextarea, key)
"<textarea class=\'html\' id=\'#{key}\' name=\'#{key}\'></textarea>"
else if _.include(@config.boolean, key)
"<input id=\'#{key}\' name=\'#{key}\' type=\'checkbox\'></input>"
else if key is "pageType"
"<select id=\'#{key}\' name=\'#{key}\'>
#{_.map @config.pageTypes, (type) ->
"<option value=#{type}>
#{type.underscore().humanize()}
</option>"
.join("")
}
</select>"
else
"<input id=\'#{key}\' name=\'#{key}\' type=\'text\'></input>"