Share your Themes
Posted 31 January 2012 - 16:40 PM
I've been using Grocery Crud for a little while now and been reading the foruns a lot.
I can say that I know the basics and would like to help.
I propose we post our custom themes here so we could share with all members. I'm developing a theme based on the flexigrid theme and will post it soon.
I hope this is OK with the admin, if not let us know how to proceed on sharing these themes.
PS. Thanks for all your hard work, It's indeed appreciated!
Cheers,
fdias
Posted 31 January 2012 - 19:19 PM
Posted 02 February 2012 - 12:54 PM
Cheers!
Posted 02 February 2012 - 18:58 PM
I thought I just needed to create a new folder inside the themes folder (following the file structure).
I made a copy of the flexigrid folder, changed some styles and icons and tried to call this new theme "acme" but nothing happens.
If I rename this to flexigrid it works, but it seems that flexigrid and datatables are hardcoded and I cannot simply add another theme.
Please let me know what I'm doing wrong.
Cheers!
Posted 02 February 2012 - 19:33 PM
I'm probably missing something, but how do I add a new theme?
I thought I just needed to create a new folder inside the themes folder (following the file structure).
I made a copy of the flexigrid folder, changed some styles and icons and tried to call this new theme "acme" but nothing happens.
If I rename this to flexigrid it works, but it seems that flexigrid and datatables are hardcoded and I cannot simply add another theme.
Please let me know what I'm doing wrong.
Cheers!
[/quote]
To activate your theme you just have to add the set_theme at your new grocery_CRUD object. You can see an example at: http://www.grocerycrud.com/crud/example/offices_example . It is not hard cored you have to just add your theme there. If you want by default to choose the acme theme, then you have to go to application/libraries/grocery_crud.php at around line 2209 and change the default theme to "acme" and that's it.
I just want to inform that the "themes" is not so easy just to add a theme (as a wordpress theme for example) because is related with the core. So you can have a try, but have this in mind. It's not only a view with css files, as you can see it has many other things also that are required.
If you have any other problems just tell me.
Posted 10 June 2012 - 02:52 AM
Anyway I'm posting a screenshot and it anyone wants it I'll release a zip with the necessary files.
[img]http://s11.postimage.org/5qr8fd2dv/gc_grey_theme.png[/img]
Cheers.
Posted 17 September 2012 - 13:26 PM
Posted 18 September 2012 - 10:44 AM
little modified datatables (realy dont like border-radius), with drag and drop ordering.
Posted 18 March 2013 - 00:48 AM
Took me a while but I finally have my custom "theme". I don't know if you can really call it a theme as it's just new icons and a few changes on the CSS file.
Anyway I'm posting a screenshot and it anyone wants it I'll release a zip with the necessary files.
Cheers.
Could you please post your theme?
Posted 18 March 2013 - 02:31 AM
anyway, jtable sounds great too if you wanna create new table theme. is there anyone used this ?
Posted 19 March 2013 - 16:34 PM
jTable is another fully featured CRUD system like Grocery CRUD not an option for an additional theme!
Posted 20 March 2013 - 14:27 PM
oh really ? coz i used it for my GCrud theme, sir.
Posted 20 March 2013 - 20:53 PM
Hi @heruprambadi share with us! :D
​I think gave many modification, right?
Posted 20 March 2013 - 22:11 PM
I made some modifications to flexigrid theme, I put the buttons bootstrap and relocate the button to search
download: http://www37.zippyshare.com/v/80671613/file.html
Posted 21 March 2013 - 03:26 AM
To kenshicu, i have download your theme but it is giving following error
Fatal error: Call to undefined method grocery_CRUD::set_js_lib() in D:\wamp\www\CodeIgniter_2.1.0\assets\grocery_crud\themes\flexigrid\views\list_template.php on line 3
Posted 21 March 2013 - 09:46 AM
ok got it now, i was using old GC library. :)
Posted 21 March 2013 - 12:41 PM
good, I use GC 1.3.4 :)
Posted 21 March 2013 - 19:13 PM
I made a slight improvement to flexigrid/views/list_template.php.
It now conditionally displays the paging dialog, only if required. Meaning, if you are displaying <= the default rows per page, don't bother with the paging display.
Starts at line 115:
<div class='search-div-clear-button'> <input type="button" value="<?php echo $this->l('list_clear_filtering');?>" id='search_clear' class="search_clear"> </div> </div> + <?php if( $total_results > $default_per_page ){ ?> <div class="pDiv" > <div class="pDiv2" > <div class="pGroup">
Then to close out the conditional (starting 4 lines from EOF)
</div> + <?php } else {?> + <div class="pDiv" style="height: 27px" > + </div> + <?php } ?> <?php echo form_close(); ?> </div> </div>
Note: This is the latest code from github => https://github.com/scoumbourdis/grocery-crud
(commit: 9a3f5c18575de74f25ded3d3b5d5e7921d884b86)
Posted 25 March 2013 - 13:55 PM
oh really ? coz i used it for my GCrud theme, sir.
I believe you used one of the themes that jTable has. Not the jTable itself!!!
What you used is the theme roller, http://jtable.org/Themes which is also available and you can use it for the datagrid theme that GC has!
Posted 27 March 2013 - 01:53 AM
oh god you right -_- you win this time !