{{#with selectedQuestion}}
{{#autoForm doc=this schema=questionFormSchema id="questionForm" type="method-update" meteormethod="updateQuestion" class="questionForm"}}
{{#each afFieldNames}}
{{> afQuickField name=this.name options=afOptionsFromSchema template="tight-horizontal" label-class="col-sm-2" input-col-class="col-sm-10"}}
{{/each}}
{{/autoForm}}
{{else}}
{{#autoForm doc=this schema=questionnaireSchema id="questionnaireEditForm" type="method-update" meteormethod="updateQuestionnaire" class="questionEditForm" autosave=false}}
{{#each afFieldNames}}
{{> afQuickField name=this.name options=afOptionsFromSchema}}
{{/each}}
{{/autoForm}}
{{/with}}