⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

form generator



M4nimal
  • profile picture
  • Member

Posted 27 May 2013 - 11:40 AM

Hello, I'm still trying to understand how this system works and if it can fulfill my requirements. Please advise on the following:

  1. I'm building a website in codeigniter v2.1.3.
  2. User needs to register/login so they can list a product on the website (login/register is taken care of by Tank_Auth)
  3. User will use a form, allowing them to fill in product details and upload a few photos of a product they want to sell.
  4. When they submit the form, the product will remain in pending state until an admin approves.
  5. When approved, the product will be listed on the frontend.

In the backend, Grocery will definately allow me to administer the product details and allow me to change the status from pending to approved.

 

so my main question for Grocery is:

Can Grocery allow me to generate the frontend form, with all its fields, image uploader and validation? (ie, this is a frontend feature)

 

Or should I rather use a form generator for the frontend, like http://formigniter.org? And Grocery to administer the submitted data?

 


Amit Shah
  • profile picture
  • Member

Posted 27 May 2013 - 19:36 PM

Well i myself found the form generation feature of grocery crud to be quite sufficient for usage.

What i can suggest you is .. recently there was such a requirement for me to use grocery crud's form for editing profile for single / individual user and i managed to crack a solution to the same.

 

Hope this can be of a good help to you on the same

 

/topic/887-force-default-edit-or-delete-state/?p=7469

 

only thing in that piece of code that i didn't follow was to redirect to a new page but just stayed on the same page. I know you are preety smart to crack a solution out of the same.

 

Hope the solution works out for you.

Happy Grocerycruding .....!!


davidoster
  • profile picture
  • Member

Posted 29 May 2013 - 04:51 AM

Can Grocery allow me to generate the frontend form, with all its fields, image uploader and validation? (ie, this is a frontend feature)

 

Or should I rather use a form generator for the frontend, like http://formigniter.org? And Grocery to administer the submitted data?

 

Hello and welcome to the forums.

If I were you I wouldn't expose the GC forms to an unregistered user.

If you think you can pull it of and safe guard the data so tis unregistered user doesn't access any other data that isn't supposed to see then go ahead and do it.

 

Making a form with CodeIgniter that saves on a table (even the same table that GC is using) actually is a piece of cake. I wouldn't use any form generators!

 

So my suggestion is, make different forms (views) for the unregistered and show only to registered users the tables you want filtered using GC.