Contract checkbox

Not exactly a concrete improvement suggestion but I'd like to think a bit if there's a better way to do this. This code, starting from the view, is extremely hard to follow since it assumes global state in many places. e.g. available_locales seems to be defined in application_helper and relies on the idea that every controller always sets @current_community.