git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@2 ff88604e-da85-c949-a72f-fc3aa3ba3724
25 lines
1.4 KiB
Plaintext
25 lines
1.4 KiB
Plaintext
<div class="add-note hide-when-print">
|
|
<p><strong><%=l(:label_add_note_plural)%> </strong></p>
|
|
|
|
<div id="add_ajax_node">
|
|
<% remote_form_for(:note, @note, :url => add_note_url(note_source, @project), :html => {:id => "add_note_form"}) do |f| %>
|
|
<%= render :partial => 'notes/form', :locals => {:f => f, :ajax_form => true} %>
|
|
<%= submit_tag l(:button_add_note) %>
|
|
<% end %>
|
|
<div style="float:right;">
|
|
<%= link_to l(:label_note_show_extras), {}, :onclick => "Element.toggle('add_html_node'); Element.toggle('add_ajax_node'); $('add_html_node').down('.wiki-edit').value = $('add_ajax_node').down('.wiki-edit').value; return false;", :id => 'show_note_form_extras' %>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="add_html_node" style = "display:none;">
|
|
|
|
<% form_for(:note, @note, :url => add_note_url(note_source, @project), :html => {:multipart => true, :id => "add_note_form"}) do |f| %>
|
|
<%= render :partial => 'notes/form', :locals => {:f => f, :ajax_form => false} %>
|
|
<%= submit_tag l(:button_add_note) %>
|
|
<% end %>
|
|
<div style="float:right;">
|
|
<%= link_to l(:label_note_hide_extras), {}, :onclick => "Element.toggle('add_html_node'); Element.toggle('add_ajax_node'); $('add_ajax_node').down('.wiki-edit').value = $('add_html_node').down('.wiki-edit').value; return false;", :id => 'hide_note_form_extras' %>
|
|
</div>
|
|
</div>
|
|
</div>
|