lib/satis/forms/concerns/file.rb in satis-1.0.75 vs lib/satis/forms/concerns/file.rb in satis-2.0.7

- old
+ new

@@ -15,10 +15,10 @@ })) do safe_join [ (custom_label(method, options[:label], options) unless options[:label] == false), tag.div(class: 'overflow-hidden relative inline-block -mb-2') do safe_join [ - tag.button((options[:multiple] ? t('choose_files') : t('choose_file')), type: 'button', + tag.button((options[:multiple] ? ct('choose_files') : ct('choose_file')), type: 'button', class: 'bg-white py-3 px-4 border border-gray-300 rounded-md shadow-sm text-sm leading-4 font-medium text-gray-700 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500'), file_field(method, options.merge(class: 'w-full cursor-pointer absolute block opacity-0 inset-0', data: { 'satis-file-target': 'input' })) ]