Hi,
I have noticed Grocery cannot add an extra attribute in the input, isn't?
 
I think the problem is the function get_string_input() at line 1345 of libraries/grocery_crud.php file. This function doesn't consider a third argument to fill the variable $extra_attributes.
 
Ty,
L.
                                        
                                    
                                    
                                
    
            $extra_attributes in get_string_input()
                    Started by wasdawasda, 04 November 2011 - 14:35 PM                    
                
                - Single Page
 
Posted 04 November 2011 - 14:35 PM
Posted 05 November 2011 - 14:55 PM
                                        [quote name='wasdawasda' timestamp='1320417328' post='24']
Hi,
I have noticed Grocery cannot add an extra attribute in the input, isn't?
 
I think the problem is the function get_string_input() at line 1345 of libraries/grocery_crud.php file. This function doesn't consider a third argument to fill the variable $extra_attributes.
 
Ty,
L.
[/quote]
You can have your own inputs by using callbacks such as callback_add_field ( http://www.grocerycrud.com/crud/example/callback_add_field ) and callback_edit_field ( http://www.grocerycrud.com/crud/example/callback_edit_field ).
                                    
                                    
                                Hi,
I have noticed Grocery cannot add an extra attribute in the input, isn't?
I think the problem is the function get_string_input() at line 1345 of libraries/grocery_crud.php file. This function doesn't consider a third argument to fill the variable $extra_attributes.
Ty,
L.
[/quote]
You can have your own inputs by using callbacks such as callback_add_field ( http://www.grocerycrud.com/crud/example/callback_add_field ) and callback_edit_field ( http://www.grocerycrud.com/crud/example/callback_edit_field ).
