[ticket/289] Add method for generating select boxes in modules