diff options
Diffstat (limited to 'app/views/comment/preview.html.erb')
-rw-r--r-- | app/views/comment/preview.html.erb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/views/comment/preview.html.erb b/app/views/comment/preview.html.erb new file mode 100644 index 000000000..5367338ab --- /dev/null +++ b/app/views/comment/preview.html.erb @@ -0,0 +1,26 @@ +<% @title = _("Preview new annotation on '{{info_request_title}}'",:info_request_title=>h(@info_request.title)) %> + +<%= form_for(:comment, @comment, :html => { :id => 'preview_form' }, :url => { :controller => "comment", :action => "new", :type => "request" } ) do |f| %> + + <h1><%= _('Now preview your annotation') %></h1> + + <%= render :partial => 'comment/single_comment', :locals => { :comment => @comment } %> + + <p> + <%= _('Your name and annotation will appear in <strong>search engines</strong>.')%> + </p> + + <p> + <%= f.hidden_field(:body) %> + <% if params[:subscribe_to_request] %> + <%= hidden_field_tag(:subscribe_to_request, "1") %> + <% end %> + <%= hidden_field_tag(:submitted_comment, 1) %> + <%= hidden_field_tag(:preview, 0 ) %> + <%= submit_tag _("Re-edit this annotation"), :name => 'reedit' %> + <%= submit_tag _("Post annotation"), :name => 'submit' %> + </p> + +<% end %> + + |