Employers working - onboarding to card print
This commit is contained in:
@@ -36,6 +36,12 @@ class TailwindFormBuilder < ActionView::Helpers::FormBuilder
|
||||
labels + field
|
||||
end
|
||||
|
||||
def file_field(method, options = {})
|
||||
options[:class] = Array(options[:class]) << "block w-full px-1 py-[1px] text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100"
|
||||
# You can add more classes as needed for padding, margin, etc., e.g., p-2.5
|
||||
super(method, options)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def text_like_field(field_method, object_method, options = {})
|
||||
|
||||
Reference in New Issue
Block a user