summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2010-11-28 08:33:36 +0000
committerLester Caine <lsces@lsces.co.uk>2010-11-28 08:33:36 +0000
commit9eecbd9485954ab5f4d9be9b1b11723dd7fb8c33 (patch)
tree68b1dec926d2d10826edc391403afa4a58a8b725 /templates
parent0e9751b365e35e9e8fe7b71792bb5d08ac5e2342 (diff)
downloadcontact-9eecbd9485954ab5f4d9be9b1b11723dd7fb8c33.tar.gz
contact-9eecbd9485954ab5f4d9be9b1b11723dd7fb8c33.tar.bz2
contact-9eecbd9485954ab5f4d9be9b1b11723dd7fb8c33.zip
Still needs further work ... using generic comment template, but need to customise for this application of comments
Diffstat (limited to 'templates')
-rw-r--r--templates/comments.tpl12
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/comments.tpl b/templates/comments.tpl
index 1e2fdef..eec66d8 100644
--- a/templates/comments.tpl
+++ b/templates/comments.tpl
@@ -5,14 +5,16 @@
<h2>{tr}Notes{/tr}</h2>
</div>
- <div class="body">
+ <div class="body"{if !( $post_comment_request || $post_comment_preview )} id="editcomments"{/if}>
+ <div id="edit_comments" {if $comments_ajax}style="display:none"{/if}>
+ {include file="bitpackage:contact/comments_post_inc.tpl" post_title="Post Comment"}
+ </div>
+
{include file="bitpackage:liberty/comments_display_option_bar.tpl"}
- {if $gBitUser->hasPermission( 'p_liberty_post_comments' )}
+ {if $comments_ajax && $gBitUser->hasPermission( 'p_liberty_post_comments' )}
<div class="row">
- {form enctype="multipart/form-data" action="`$comments_return_url`#editcomments" id="editcomment-form"}
- <input type="submit" name="post_comment_request" value="{tr}Add Note{/tr}" onclick="LibertyComment.attachForm('comment_{$gContent->mContentId}', '{$gContent->mContentId}', {if $gContent->mContentId}{$gContent->mContentId}{elseif $commentsParentId}{$commentsParentId}{else}null{/if})"/>
- {/form}
+ <input type="submit" name="post_comment_request" value="{tr}Add Note{/tr}" onclick="LibertyComment.attachForm('comment_{$gContent->mContentId}', '{$gContent->mContentId}', {if $gContent->mContentId}{$gContent->mContentId}{elseif $commentsParentId}{$commentsParentId}{else}null{/if})"/>
</div>
{/if}