Sha256: 1c7e7676cb749d5feaff4ec1e1e0a55ac1b98b2eb229c54b20d7bf35cfefe6fb
Contents?: true
Size: 747 Bytes
Versions: 3
Compression:
Stored size: 747 Bytes
Contents
- if valid?(attribute) %input{ :name => "user[#{attribute}]", :type => "hidden", :value => @user.send(attribute) } - else .field %label{ :for => "user_#{attribute}" } - unless checkbox = question - unless checkbox - if errors_on(attribute) .validation = errors_on(attribute) - if checkbox .checkbox %input{ :id => "user_#{attribute}", :name => "user[#{attribute}]", :value => "1", :type => "checkbox" } %label{ :for => "user_#{attribute}" } = question - if errors_on(attribute) .validation = errors_on(attribute) - else .text %input{ :id => "user_#{attribute}", :name => "user[#{attribute}]", :type => "text" }
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
winton-sum-0.1.1 | lib/sum/view/field.haml |
sum-0.1.2 | lib/sum/view/field.haml |
sum-0.1.1 | lib/sum/view/field.haml |