app/helpers/form_helper.rb
#for when there's no rails form object and you really just need inputs
for when there's no rails form object and you really just need inputs
for when there ' s no rails form object and you really just need inputs
def draw_ext_input_tag(field_name, value, cls, locale_format=nil, opts={})
			formatted_value = I18n.l(value.to_date) if value.present?
			input_attrs = InputAttrs.new(field_name, cls, opts)
			text_field_tag("#{field_name}", formatted_value, input_attrs.to_h.reverse_merge({ id: FormHelper.random_input_id(field_name) })) + \
			hidden_field_tag(field_name, nil, { class: field_name.to_s + "-alt", id: FormHelper.random_input_id(field_name, "hidden"), value: value })
		end
def draw_ext_input_tag ( field_name , value , cls , locale_format = nil , opts = { } ) formatted_value = I18n . l ( value . to_date ) if value . present? input_attrs = InputAttrs . new ( field_name , cls , opts ) text_field_tag ( "#{field_name}" , formatted_value , input_attrs . to_h . reverse_merge ( { id : FormHelper . random_input_id ( field_name ) } ) ) + hidden_field_tag ( field_name , nil , { class : field_name . to_s + "-alt" , id : FormHelper . random_input_id ( field_name , "hidden" ) , value : value } ) end
for when there's no rails form object and you really just need inputs
for when there ' s no rails form object and you really just need inputs
field_name
<not_specific>
value
<not_specific>
cls
<not_specific>
locale_format
<not_specific>
opts
<not_specific>