Skip to content

Commit 49c618c

Browse files
committed
updated REAMDE to be conform with autoform requirements (id required)
1 parent 075e232 commit 49c618c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Schemas.Posts = new SimpleSchema({
6666
afFieldInput: {
6767
type: 'fileUpload',
6868
collection: 'Images',
69-
uploadTemplate: 'uploadField' // <- Optional
69+
uploadTemplate: 'uploadField', // <- Optional
7070
previewTemplate: 'uploadPreview' // <- Optional
7171
}
7272
}
@@ -83,9 +83,9 @@ Generate the form with `{{> quickform}}` or `{{#autoform}}` e.g.:
8383
##### Insert mode:
8484

8585
```html
86-
{{> quickForm collection="Posts" type="insert"}}
86+
{{> quickForm id="postsInsertForm" collection="Posts" type="insert"}}
8787
<!-- OR -->
88-
{{#autoForm collection="Posts" type="insert"}}
88+
{{#autoForm id="postsInsertForm" collection="Posts" type="insert"}}
8989
{{> afQuickField name="title"}}
9090
{{> afQuickField name="picture"}}
9191
<button type="submit" class="btn btn-primary">Insert</button>
@@ -96,11 +96,11 @@ Generate the form with `{{> quickform}}` or `{{#autoform}}` e.g.:
9696

9797
```html
9898
{{#if Template.subscriptionsReady }}
99-
{{> quickForm collection="Posts" type="update" doc=getPost}}
99+
{{> quickForm id="postsUpdateForm" collection="Posts" type="update" doc=getPost}}
100100
{{/if}}
101101
<!-- OR -->
102102
{{#if Template.subscriptionsReady }}
103-
{{#autoForm collection="Posts" type="update" doc=getPost}}
103+
{{#autoForm id="postsUpdateForm" collection="Posts" type="update" doc=getPost}}
104104
{{> afQuickField name="title"}}
105105
{{> afQuickField name="picture"}}
106106
<button type="submit" class="btn btn-primary">Update</button>

0 commit comments

Comments
 (0)