[IMP] website_forum: In Discussion, add a comment 'Post Answer' button should be 'Post Comment', and In Reply 'Post Comment' button should be 'Post Answer'.

This commit is contained in:
Ankit Joshi
2016-11-09 11:40:06 +01:00
committed by fwi-odoo
parent 4de7f81e8a
commit b8febebd03
+7 -1
View File
@@ -685,7 +685,8 @@
<input type="hidden" name="karma" t-attf-value="#{user.karma}" id="karma"/>
<textarea name="content" t-attf-id="content-#{str(object.id)}" class="form-control load_editor" required="True"
t-att-data-karma="forum.karma_editor"/>
<button type="submit" class="btn btn-primary mb16">Post Comment</button>
<button type="submit" class="btn btn-primary mb16" t-if="question.post_type != 'discussion'">Post Comment</button>
<button type="submit" class="btn btn-primary mb16" t-if="question.post_type == 'discussion'">Post Answer</button>
</form>
</div>
</template>
@@ -710,7 +711,12 @@
t-att-data-karma="forum.karma_editor"/>
<button type="submit" t-attf-class="btn btn-primary #{forum.allow_share and 'oe_social_share_call' or ''} mt16 #{not question.can_answer and 'karma_required' or ''}"
t-att-data-karma="question.forum_id.karma_answer"
t-if="question.post_type != 'discussion'"
data-social-target-type="answer" data-hashtags="#answer">Post Answer</button>
<button type="submit" t-attf-class="btn btn-primary #{forum.allow_share and 'oe_social_share_call' or ''} mt16 #{not question.can_answer and 'karma_required' or ''}"
t-att-data-karma="question.forum_id.karma_answer"
t-if="question.post_type == 'discussion'"
data-social-target-type="answer" data-hashtags="#answer">Post Comment</button>
</form>
</template>