--- a/src/pyams_content/features/review/zmi/__init__.py Mon Dec 11 15:24:44 2017 +0100
+++ b/src/pyams_content/features/review/zmi/__init__.py Tue Jan 16 14:21:57 2018 +0100
@@ -207,16 +207,6 @@
return get_age(comment.creation_date)
-@viewlet_config(name='add-review-comment.action', context=IReviewTarget, layer=IAdminLayer,
- view=SharedContentReviewCommentsView, manager=IWidgetTitleViewletManager,
- permission=COMMENT_CONTENT_PERMISSION)
-class SharedContentReviewAddCommentAction(JsToolbarAction):
- """Shared content review add comment action"""
-
- label = _("Add comment...")
- url = 'PyAMS_content.review.addCommentAction'
-
-
@view_config(name='get-last-review-comments.json', context=IReviewTarget, request_type=IPyAMSLayer,
permission=COMMENT_CONTENT_PERMISSION, renderer='json', xhr=True)
@template_config(template='templates/review-comments-json.pt')
--- a/src/pyams_content/features/review/zmi/templates/review-comments.pt Mon Dec 11 15:24:44 2017 +0100
+++ b/src/pyams_content/features/review/zmi/templates/review-comments.pt Tue Jan 16 14:21:57 2018 +0100
@@ -58,6 +58,11 @@
data-ams-form-data-init-callback="PyAMS_content.review.initCommentData"
tal:attributes="data-ams-form-handler extension:absolute_url(context, 'add-review-comment.json')">
<fieldset class="textarea-div no-margin">
+ <div class="btn btn-xs btn-success margin-left-10 margin-top-5"
+ data-ams-url="PyAMS_content.review.addCommentAction">
+ <i class="fa fa-fw fa-plus"></i>
+ <i18n:var translate="">Add comment</i18n:var>
+ </div>
<div class="typearea">
<textarea placeholder="Add a comment..." name="comment"
i18n:attributes="placeholder"></textarea>
@@ -65,7 +70,7 @@
</fieldset>
<span class="textarea-controls">
<button type="submit" class="btn btn-sm btn-primary pull-right margin-right-20"
- i18n:translate="">Add comment</button>
+ i18n:translate="">Add this comment</button>
</span>
</form>
</div>