<%% 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" : "" %>
<%% if ["text", "email", "search", "password", "date", "time", "tel", "url", "month", "file", "image", ""].include?(input_type) %>
" class="text input form-control" type="<%%= input_type %>" placeholder="<%%= place_holder %>" value="<%%= object.send(field_name.to_s) %>" />
<%% elsif input_type == "checkbox" %>
" type="<%%= input_type %>" class="checkbox input form-control" <%%= object.send(field_name.to_s) ? "checked='checked'" : "" %> />
<%% elsif input_type == "textarea" %>
<%% end %>