<template name="componentForm">
  {{#modal 'componentForm'}}
    {{{modalHeader 'New Story'}}}
    {{#autoForm schema=componentsCollection id="insertComponentForm" doc=selectedComponent}}
      {{#modalContent}}
        {{afFieldInput 'projectId' type="hidden" value=projectId}}
        <div class="form-group{{#if afFieldIsInvalid 'name'}} has-error{{/if}}">
          {{afFieldLabel 'name'}}
          {{afFieldInput 'name'}}
          {{#if afFieldIsInvalid 'name'}}
            <span class="help-block">{{afFieldMessage 'name'}}</span>
          {{/if}}
        </div>
      {{/modalContent}}
      {{{modalFooter 'insert' 'Save'}}
    {{/autoForm}}
  {{/modal}}
</template>

<template name="componentForm">
  {{#modal 'componentForm'}}
    {{{modalHeader 'New Component'}}}
    {{#autoForm schema=componentsCollection id="insertComponentForm" doc=selectedComponent}}
      {{#modalContent}}
        {{afFieldInput 'projectId' type="hidden" value=projectId}}
        <div class="form-group{{#if afFieldIsInvalid 'name'}} has-error{{/if}}">
          {{afFieldLabel 'name'}}
          {{afFieldInput 'name'}}
          {{#if afFieldIsInvalid 'name'}}
            <span class="help-block">{{afFieldMessage 'name'}}</span>
          {{/if}}
        </div>
      {{/modalContent}}
      {{{modalFooter 'insert' 'Save'}}
    {{/autoForm}}
  {{/modal}}
</template>

Fix name for component form
Fix name for component form
