diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-07 18:56:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-07 18:56:12 +0000 |
commit | 30734ba8e8f040f3cff158351733c6228bd2db18 (patch) | |
tree | 46eb702b9951f23553a72eb066890cca65cc25b2 /app/views/news | |
parent | cf4651b6bb384eb6ebc6fea383ca483fdf1fb55a (diff) | |
download | redmine-30734ba8e8f040f3cff158351733c6228bd2db18.tar.gz redmine-30734ba8e8f040f3cff158351733c6228bd2db18.zip |
Added toggle_link helper.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@432 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news')
-rw-r--r-- | app/views/news/show.rhtml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml index 92e664452..d1c144323 100644 --- a/app/views/news/show.rhtml +++ b/app/views/news/show.rhtml @@ -24,10 +24,9 @@ </div> <% if authorize_for 'news', 'add_comment' %> -<% form_tag({:action => 'add_comment', :id => @news}) do %> -<%= error_messages_for 'comment' %> -<p><label for="comment_comment"><%= l(:label_comment_add) %></label><br /> -<%= text_area 'comment', 'comment', :cols => 60, :rows => 6 %></p> -<%= submit_tag l(:button_add) %> +<p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comment" %></p> +<% form_tag({:action => 'add_comment', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> +<%= text_area 'comment', 'comment', :cols => 60, :rows => 6 %> +<p><%= submit_tag l(:button_add) %></p> <% end %> <% end %>
\ No newline at end of file |