DRY input_options and fix input_value for attribute with several inputs