perak / kitchen-site

Meteor Kitchen site source code
MIT License
282 stars 38 forks source link

how to replace default form generator with autoform? #151

Open cyclops24 opened 9 years ago

cyclops24 commented 9 years ago

Hi, I'll happy if it's possible to replace default form generator with autoform. Do you have any plan to add this meteor-kitchen??

perak commented 9 years ago

@cyclops24 kitchen generates simple schema (with "use_collection2" set to true), so maybe you can add autoform package into "packages.meteor" array and create custom component, for example files "my_form.html" with <template name="TEMPLATE_NAME"> {{quickForm collection='COLLECTION_VAR'}} </template> and "my_form.js" with whatever. Now you can use it in your json:

{
  "name": "the_form",
  "type": "custom_component",
  "custom_template": "path_to_template/my_form"
  "query": "...
}
perak commented 9 years ago

To answer your question: yes, I have plan to add autoform into kitchen.

cyclops24 commented 8 years ago

Thanks for your attention. I'm so happy if it's possible to cook with autoform in my kitchen.

perak commented 8 years ago

:D