%% unless defined?(required) required = false end unless defined?(place_holder) place_holder = "" end inp_id = "inp_#{display_name.underscore.split(" ").join("_")}" error_class = object.errors[field_name.to_s].any? ? "has-errors" : "" %>