<template name="_autoForm">
  <form{{{atts}}}>
    {{{content}}}
  </form>
</template>

<template name="_quickForm">
  {{#autoForm qfHash=qfHash}}
  {{#each ../formFields}}
  {{afQuickField this autoform=../this}}
  {{/each}}
  <div>
    {{#if ../doInsert}}
    <button type="submit" class="{{../../buttonClasses}} insert">{{../../buttonContent}}</button>
    {{/if}}
    {{#if ../doUpdate}}
    <button type="submit" class="{{../../buttonClasses}} update">{{../../buttonContent}}</button>
    {{/if}}
    {{#if ../doRemove}}
    <button type="submit" class="{{../../buttonClasses}} remove">{{../../buttonContent}}</button>
    {{/if}}
    {{#if ../doMethod}}
    <button type="submit" data-meteor-method="{{../../method}}" class="{{../../buttonClasses}}">{{../../buttonContent}}</button>
    {{/if}}
  </div>
  {{/autoForm}}
</template>

<template name="_afQuickField">
  {{#if useFrameworkBootstrap3}}
  <div class="form-group{{#if afFieldIsInvalid name autoform=autoform}} has-error{{/if}}">
    {{{labelHtml}}}
    {{{inputHtml}}}
    <span class="help-block">{{afFieldMessage name autoform=autoform}}</span>
  </div>
  {{else}}
  <div>
    {{{labelHtml}}}
    {{{inputHtml}}}
    <span>{{afFieldMessage name autoform=autoform}}</span>
  </div>
  {{/if}}
</template>
<template name="_autoForm">
  <form{{{atts}}}>
    {{{content}}}
  </form>
</template>

<template name="_quickForm">
  {{#autoForm qfHash=qfHash}}
  {{#each ../formFields}}
  {{afQuickField this autoform=../this}}
  {{/each}}
  <div>
    {{#if ../doInsert}}
    <button type="submit" class="{{../../buttonClasses}} insert">{{../../buttonContent}}</button>
    {{/if}}
    {{#if ../doUpdate}}
    <button type="submit" class="{{../../buttonClasses}} update">{{../../buttonContent}}</button>
    {{/if}}
    {{#if ../doRemove}}
    <button type="submit" class="{{../../buttonClasses}} remove">{{../../buttonContent}}</button>
    {{/if}}
    {{#if ../doMethod}}
    <button type="submit" data-meteor-method="{{../../method}}" class="{{../../buttonClasses}}">{{../../buttonContent}}</button>
    {{/if}}
  </div>
  {{/autoForm}}
</template>

<template name="_afQuickField">
  {{#if useFrameworkBootstrap3}}
  <div class="form-group{{#if afFieldIsInvalid name autoform=autoform}} has-error{{/if}}">
    {{{labelHtml}}}
    {{{inputHtml}}}
    <span class="help-block">{{{afFieldMessage name autoform=autoform}}}</span>
  </div>
  {{else}}
  <div>
    {{{labelHtml}}}
    {{{inputHtml}}}
    <span>{{{afFieldMessage name autoform=autoform}}}</span>
  </div>
  {{/if}}
</template>
Allow HTML in error messages (eg. A &lt; B)
Allow HTML in error messages (eg. A &lt; B)
