%input{ type: 'hidden', name:"champs['#{champ.id}']", id: "champs_#{champ.id}", value: '' } %input{ type: 'checkbox', style:'margin-left: 15px;', name:"champs['#{champ.id}']", id: "champs_#{champ.id}", checked: ('checked' if champ.value == 'on') }