factorize the simple search form used by several views into a sub-template