diff options
Diffstat (limited to 'app/views/comment/_comment_form.html.erb')
-rw-r--r-- | app/views/comment/_comment_form.html.erb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/comment/_comment_form.html.erb b/app/views/comment/_comment_form.html.erb new file mode 100644 index 000000000..b110fa26a --- /dev/null +++ b/app/views/comment/_comment_form.html.erb @@ -0,0 +1,19 @@ +<%= form_for(:comment, @comment, :url => { :controller => "comment", :action => "new", :type => "request" }, :html => { :id => 'comment_form' } ) do |f| %> + <p> + <%= f.text_area :body, :rows => 10, :cols => 55 %> + </p> + + <% if !TrackThing.find_by_existing_track(@user, track_thing) && (!@user || @info_request.user != @user) %> + <p> + <%= check_box_tag 'subscribe_to_request', "1", params[:subscribe_to_request] ? true : false %> <label for="subscribe_to_request"><%= _('Email me future updates to this request') %></label> + </p> + <% end %> + + <p> + <%= hidden_field_tag 'submitted_comment', 1 %> + <%= hidden_field_tag 'preview', 1 %> + <%= submit_tag _('Preview your annotation') %> + <%= raw(_(' (<strong>no ranty</strong> politics, read our <a href="%s">moderation policy</a>)') % [help_requesting_path+'#moderation']) %> + </p> +<% end %> + |