Sha256: c78c9e8b4ed15866f673bdbabf6820797ac7df4b22c4aaaf7d408b054059b167
Contents?: true
Size: 586 Bytes
Versions: 40
Compression:
Stored size: 586 Bytes
Contents
<%# # Boolean Form Partial This partial renders an input element for a boolean attribute. By default, the input is a checkbox. ## Local variables: - `f`: A Rails form generator, used to help create the appropriate input fields. - `field`: An instance of [Administrate::Field::Boolean][1]. A wrapper around the boolean value pulled from the database. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Boolean %> <div class="field-unit__label"> <%= f.label field.attribute %> </div> <div class="field-unit__field"> <%= f.check_box field.attribute %> </div>
Version data entries
40 entries across 40 versions & 3 rubygems