Fix indentation and move hardcoded list in the controller
Merge pull request #1139 from geoadmin/fix_indent