% name ||= id %> <% required ||= false %> <% required_class = required ? ' required' : ' optional' %> <% value ||= true %>