Sha256: 51a241511ee913c6f8c8715a52e5245661da97f6b34571fc80e4a137e2522796
Contents?: true
Size: 720 Bytes
Versions: 6
Compression:
Stored size: 720 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="mb-4 flex items-center"> <%= f.label field.attribute, class: "block text-sm font-medium text-gray-700 mr-2" %> <div class="mt-1"> <%= f.check_box field.attribute, class: "h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" %> </div> </div>
Version data entries
6 entries across 6 versions & 1 rubygems