added autocomplete to flat form

@ssaunier, @neocanada @ @FleurBroca