% per_page = Constants::COMMENTS_SEARCH_LIMIT %>
<% if can_read_protocol_in_module?(@protocol) %>
<% if can_create_comments_in_module?(@protocol.my_module) %>
<%= bootstrap_form_for( :comment, url: step_step_comments_path(step, format: :json), html: { method: :post }, remote: true) do |f| %>
<%= f.smart_text_area :message,
single_line: true,
hide_label: true,
placeholder: t('general.comment_placeholder_new'),
help: '.',
data: { 'atwho-edit' => '' } %>
<% end %>
<% end %>
<% end %>
<%=t('protocols.steps.comments') %> (<%= comments_count %>)