有什么方法可以在表单标签之外输入Meteor Autoform吗?

时间:2015-06-16 22:14:56

标签: meteor meteor-autoform

我有autoForm,但我需要在视觉上将其分成不同的部分。我的代码底部的afFieldArray不能单独存在 - 它需要包含在{{#autoForm}}内,但这样做会搞砸我的页面布局。我希望他们都使用相同的架构,并作为单个表单的内容提交和验证。

{{#autoForm validation="keyup" schema=orderFormSchema id="order-submission-form" type="insert"}}

    <div class="col-md-12">
      {{> afQuickField name="propertyInfo.sqft" class="form-control"}}
    </div>
    <div class="col-md-12">
      {{> afQuickField name="propertyInfo.zipcode" class="form-control"}}
    </div>

{{/autoForm}}

/** Lots of other HTML junk that prevents this afFieldArray from 
being nested inside of the autoForm helpers**/

{{> afArrayField template="bootstrap3_custom" name="discountsApplied" class="form-control"}}

有关如何实现这一目标的任何想法?

0 个答案:

没有答案