Need to modify the add view
- Single Page
Posted 30 June 2012 - 11:17 AM
This is my first post here. Already inlove with Grocery Crud.
I want to make some modification with the "ADD" view. Please help me out.
I want something like this: http://prntscr.com/bcljp
Here, the first coulmn fields belong to the same column in the database.
Thanks.
Posted 01 July 2012 - 01:15 AM
assets\grocery_crud hemes\flexigrid\views\add.php
assets\grocery_crud hemes\flexigrid\views\edit.php
Cheers
Posted 01 July 2012 - 12:01 PM
If you use the default (flexigrid) theme then you can edit the files below:
assets\grocery_crud hemes\flexigrid\views\add.php
assets\grocery_crud hemes\flexigrid\views\edit.php
Cheers
[/quote]
I dont want to change each and every view like above. I only want 1-2 views like I mentioned above.
Posted 01 July 2012 - 16:45 PM
showAddForm()of the grocery_crud.php library (around line 1456) and have a condition before you call
$this->_theme_view('add.php',$data);in order to call your custom add views.
Posted 01 July 2012 - 17:45 PM
I'm afraid there's no easy way of doing this. web-johnny please correct me if I'm wrong, but I believe you would need to change the function
showAddForm()of the grocery_crud.php library (around line 1456) and have a condition before you call
$this->_theme_view('add.php',$data);in order to call your custom add views.
[/quote]
I can use this by session variables but the problem is how do I achieve the required functionality in my view. Can you please share some sample code with me to achieve my requirement.
Posted 01 July 2012 - 18:27 PM
[img]http://img577.imageshack.us/img577/6562/34d040c8e7d14d8ca3cd2f8.png[/img]
2nd dropdown box is buggy. I cant figure out why.
Please suggest me what to do.
Posted 01 July 2012 - 18:48 PM
Posted 27 March 2019 - 18:57 PM
Great, that solved this problem for me...
Thank You!!!! r00tkiit
I'm afraid there's no easy way of doing this. web-johnny please correct me if I'm wrong, but I believe you would need to change the function
showAddForm()of the grocery_crud.php library (around line 1456) and have a condition before you call$this->_theme_view('add.php',$data);in order to call your custom add views.