Form Generation Library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Form Generation Library (/showthread.php?tid=16439) |
Form Generation Library - El Forum - 12-09-2009 [eluser]macigniter[/eluser] [quote author="Mat-Moo" date="1260330319"] What bit do you need help with? I'm really behind with some stuff at the moment but would love to help back as a donation.[/quote] Please take a look at the user guide's table of content. All the light grey pages are not finished yet. It would be great if especially the "Methods" could be finished. Feel free to write up any method you feel comfortable with. Form Generation Library - El Forum - 12-09-2009 [eluser]macigniter[/eluser] [quote author="BaRzO" date="1260151149"]how can i use iupload or upload ? pls give a snippet...[/quote] Please read the user guide on the upload() element. Form Generation Library - El Forum - 12-09-2009 [eluser]macigniter[/eluser] @everyone: I am trying to implement the prefix/suffix thing in the best way possible. Therefore I would like to know how and WHERE you would need the prefixes and suffixes within your form. Please give me a short code example like this: Code: // my suggestion of a prefix/suffix implementation Which position would you prefer for fielsets? inside or outside? I understand that groups of checkboxes or radiobuttons are a little tricky and need special treatment. Therefore the suggested {element} prefix/suffix which would wrap around the whole group. The wrapper for the single radios/checkboxes inside could then be ignored or turned off by using ->nowrap() Code: // sample for a group of checkboxes Please let me know what you think! Form Generation Library - El Forum - 12-09-2009 [eluser]dinhtrung[/eluser] @macigniter : I've already cover this issue in my patch. In the configuration, just like your default item: Code: $config['nowrap'] = FALSE; I think another thing Formgen should consider is the label position. For now, radio and checkbox has label after input, and there's no way to put them before input. I usually write form in BlueprintCSS standards: Code: <fieldset><legend>Login</legend> Form Generation Library - El Forum - 12-09-2009 [eluser]macigniter[/eluser] [quote author="dinhtrung" date="1260395864"]@macigniter : I've already cover this issue in my patch.[/quote] Argh... 'short' example :-) I have already seen your modification and referred to it in the previous post. But I am not quite happy with this approach and therefore would like to ask more people on what their specific requirements are. PS: I am really trying to keep this library free of any specific requirements. Since not everyone is using jQuery, a CSS framework like Blueprint or CRUD I am only implementing core features here. Everyone is free to modify the library for personal requirements, but I would really like to maintain the core library updates from here. Form Generation Library - El Forum - 12-09-2009 [eluser]dinhtrung[/eluser] @macigniter : Sorry, skim too much :"> I have seen form with inside suffix for fieldsets, like jQuery-UI themeroller sidebar, they use dl to create the sidebar. Some form can use ul, ol as well. Maybe that would fit. Form Generation Library - El Forum - 12-09-2009 [eluser]hugle[/eluser] Hello macigniter and dinhtrung well, I think i've read all your both posts... what about: prefix/suffix support etc. Personnaly I like the path dinhtrung posted. As far as looking at it, I can't see any problems with it... @macigniter, what you don't like in his approach? can you expain? so we could take a deeper look? btw, I'l try to write something for ya this week, but.. you'll need to fix grammar errors Form Generation Library - El Forum - 12-09-2009 [eluser]macigniter[/eluser] It's too much configuration. dinhtrung's BlueprintCSS standard example could be easily done with: Code: $config['element_prefix'] = '<p>'; Along with some additional settings for the checkboxes/radiobuttons respective checkgroups/radiogroups and a ->nowrap() method for handling exceptions I think that there don't need to be 40 lines of config code. I really think that my approach (see above) can cover it all and we can get rid of the "break_after" setting. Form Generation Library - El Forum - 12-09-2009 [eluser]BaRzO[/eluser] [quote author="macigniter" date="1260380294"][quote author="BaRzO" date="1260151149"]how can i use iupload or upload ? pls give a snippet...[/quote] Please read the user guide on the upload() element.[/quote] I am using Code: barzo@laptop:~$ uname -a uploads dir chmod 777 My Controller Code: function index() and i get Code: Array What is wrong at this ? Form Generation Library - El Forum - 12-09-2009 [eluser]Mat-Moo[/eluser] Upload is done via the upload class, so the data you want is in $this->upload->data(); http://ellislab.com/codeigniter/user-guide/libraries/file_uploading.html |