<%= f.label a, class: "form-control-label #{required?(f.object, a) ? 'required' : ''}" %> <%= render 'slash_admin/shared/tooltip', a: a %> <%= f.text_field a, class: 'form-control', required: required?(f.object, a) %>