0
  {{#autoForm schema="asdf" id="sdfg" type="method" meteormethod="meth"}}
    <fieldset>
      {{> afQuickField name="startLocation"}}
      {{> afQuickField name="destination"}}
      {{> afQuickField name="date"}}
      {{> afQuickField name="departureTime"}}
      {{> afQuickField name="returnTime"}}
      {{> afQuickField name="seats" type="number"}}
    </fieldset>
    <button type="submit" class="btn btn-primary">submit<button>
  {{/autoForm}}

上面的代码在我的 Meteor 应用程序中生成了一个表单,但是它看起来很糟糕(或者至少,不直观):

在此处输入图像描述

我不知道这是为什么。在我正在查看的示例 ( 1 , 2 ) 中,表单以更合理的方式呈现。如何让 afQuickField 在单独的行上显示标签和输入,或者至少以另一种有意义的方式?

4

0 回答 0