%%
unless defined?(required)
required = false
end
unless defined?(place_holder)
place_holder = ""
end
inp_id = "inp_#{display_name.underscore.split(" ").join("_")}"
%>
<%%
label_class, field_class = object.errors[field_name.to_s].any? ? ["text-color-red", "error"] : ["", ""]
%>
<%% if ["text", "email", "search", "password", "date", "time", "tel", "url", "month", "file", "image", ""].include?(input_type) %>
<%%= required ? "*" : raw(" ") %>
<%% elsif input_type == "checkbox" %>
<%%= required ? "*" : raw(" ") %>
" type="<%%= input_type %>" class="checkbox input pull-left m-5" <%%= object.send(field_name.to_s) ? "checked='checked'" : "" %> />
<%% elsif input_type == "textarea" %>
<%%= required ? "*" : raw(" ") %>
<%% end %>