Added toggle_link helper.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@432 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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 %>
|
||||
@@ -15,7 +15,7 @@
|
||||
<%= submit_tag l(:button_submit), :class => "button-small" %>
|
||||
</td>
|
||||
<td align="left" style="width:15%">
|
||||
<a href="#" onclick="Element.toggle('trackerselect')"><%= l(:label_options) %></a>
|
||||
<%= toggle_link l(:label_options), "trackerselect" %>
|
||||
<div id="trackerselect" class="rightbox overlay" style="width:140px; display:none;">
|
||||
<p><strong><%=l(:label_tracker_plural)%></strong></p>
|
||||
<% @trackers.each do |tracker| %>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<%= submit_tag l(:button_submit), :class => "button-small" %>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" onclick="Element.toggle('trackerselect')"><%= l(:label_options) %></a>
|
||||
<%= toggle_link l(:label_options), "trackerselect" %>
|
||||
<div id="trackerselect" class="rightbox overlay" style="width:140px; display: none;">
|
||||
<p><strong><%=l(:label_tracker_plural)%></strong></p>
|
||||
<% @trackers.each do |tracker| %>
|
||||
|
||||
Reference in New Issue
Block a user