|
@@ -18,7 +18,10 @@
|
|
{{> viewer }}
|
|
{{> viewer }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+
|
|
|
|
+ {{> insertCommentForm }}
|
|
|
|
+ </div><!-- end of docItem container -->
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template name="editor">
|
|
<template name="editor">
|
|
@@ -51,3 +54,19 @@
|
|
|
|
|
|
{{/each}}
|
|
{{/each}}
|
|
</template>
|
|
</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>
|