28 lines
727 B
Plaintext
28 lines
727 B
Plaintext
<fieldset>
|
|
<legend>Post a comment on <em><%= @page.name -%></em></legend>
|
|
<%= hidden_field :name => 'page_id', :value => @page.name.gsub(/ /, '_') %>
|
|
<% if logged_in? -%>
|
|
<p>
|
|
Author: <%= Author.find(session[:author_id]).name -%><%= hidden_field :name => 'comment[author_id]', :value => session[:author_id] -%>
|
|
</p>
|
|
<% else -%>
|
|
<p>
|
|
<%= text_field :user, :label => 'Name: ', :size => 32 %>
|
|
</p>
|
|
<% end -%>
|
|
|
|
<p>
|
|
<%= text_field :url, :label => 'URL: ', :size => 60, :max_size => 256 %>
|
|
</p>
|
|
|
|
<p>
|
|
<%= text_area :comment, :label => 'Comment: ', :rows => 8, :cols => 60 %>
|
|
</p>
|
|
<% unless logged_in? -%>
|
|
<p>
|
|
<strong>Ident</strong>
|
|
<%= recaptcha_tags %>
|
|
</p>
|
|
<% end -%>
|
|
</fieldset>
|