<template name="settings">
  <h1>Settings</h1>
  {{# if settings }}
  <p>Settings exist!</p>
  {{ else }}
  <p>No settings exist!</p>
  {{/ if }}
</template>

<template name="settings">
  <h1>Settings</h1>
  {{# if settings }}
  <p>Settings exist!</p>
  {{#autoForm id="settings-form" type="update" collection="Settings" doc=settings }}
  <div class="form-group {{#if afFieldIsInvalid name='brandingImageId'}}has-error{{/if}}">
    <label class="control-label">{{afFieldLabelText name='firstName'}}</label>
    {{> afFieldInput name='brandingImageId'}}
    {{#if afFieldIsInvalid name='brandingImageId'}}
    <span class="help-block">{{{afFieldMessage name='brandingImageId'}}}</span>
    {{/if}}
  </div>
  <div class="form-group">
    <button type="submit" class="btn btn-primary">Save</button>
    <button type="reset" class="btn btn-default">Reset Form</button>
  </div>
  {{/autoForm}}
  {{ else }}
  <p>No settings exist!</p>
  {{#autoForm id="settings-form" type="insert" collection="Settings"}}
  <div class="form-group {{#if afFieldIsInvalid name='brandingImageId'}}has-error{{/if}}">
    <label class="control-label">{{afFieldLabelText name='firstName'}}</label>
    {{> afFieldInput name='brandingImageId'}}
    {{#if afFieldIsInvalid name='brandingImageId'}}
    <span class="help-block">{{{afFieldMessage name='brandingImageId'}}}</span>
    {{/if}}
  </div>
  <div class="form-group">
    <button type="submit" class="btn btn-primary">Save</button>
    <button type="reset" class="btn btn-default">Reset Form</button>
  </div>
  {{/autoForm}}

  {{/ if }}
</template>

Add autoform for insert and update
Add autoform for insert and update
