Refactor CheckboxTag to a generic InputTag