diaspora/app/views/comments/_new_comment.html.haml

11 lines
655 B
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
= form_for Comment.new, :html => {:id => "new_comment_on_#{post_id}" }, :remote => true do |comment|
%p
= label_tag "comment_text_on_#{post_id}", t('.comment')
= comment.text_area :text, :rows => 1, :id => "comment_text_on_#{post_id}", :class => "comment_box"
= comment.hidden_field :post_id, :id => "post_id_on_#{post_id}", :value => post_id
= comment.submit t('.comment'), :id => "comment_submit_#{post_id}", :class => "comment_submit button", :disable_with => t('.commenting')