|
@@ -18,7 +18,10 @@
|
|
|
{{> viewer }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+
|
|
|
+ {{> insertCommentForm }}
|
|
|
+ </div><!-- end of docItem container -->
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<template name="editor">
|
|
@@ -51,3 +54,19 @@
|
|
|
|
|
|
{{/each}}
|
|
|
</template>
|
|
|
+
|
|
|
+<template name="insertCommentForm2">
|
|
|
+ {{> quickForm collection="Comments" id="insertCommentForm" type="method" meteormethod="addComment" }}
|
|
|
+</template>
|
|
|
+
|
|
|
+<template name="insertCommentForm">
|
|
|
+ {{#autoForm collection="Comments" id="insertCommentForm" type="method" meteormethod="addComment" }}
|
|
|
+ <fieldset>
|
|
|
+ <legend>Comment</legend>
|
|
|
+ {{> afQuickField name="title" }}
|
|
|
+ {{> afQuickField name="body" rows=6 value="starter text" }}
|
|
|
+ {{> afQuickField name="docid" value=docid type="hidden" }}
|
|
|
+ </fieldset>
|
|
|
+ <button type="submit" class="btn btn-primary">Insert</button>
|
|
|
+ {{/autoForm}}
|
|
|
+</template>
|