git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@2 ff88604e-da85-c949-a72f-fc3aa3ba3724
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
<%= error_messages_for 'note' %>
|
|
|
|
<% if !ajax_form %>
|
|
<span id="new_note_form_subject" >
|
|
<p>
|
|
<%= l(:field_type) %>:
|
|
<%= f.select :type_id, collection_for_note_types_select, { :include_blank => true } %>
|
|
|
|
<%= l(:label_date) %>:
|
|
<%= f.text_field :created_on, :size => 15, :value => Date.current %><%= calendar_for "note_created_on" %>
|
|
</p>
|
|
<span class="note-custom-fields">
|
|
<% @note.custom_field_values.each do |value| %>
|
|
<p>
|
|
<%= custom_field_tag_with_label :note, value %>
|
|
</p>
|
|
<% end -%>
|
|
</span>
|
|
</span>
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= f.text_area :content, :rows => 6, :class => 'wiki-edit' %>
|
|
|
|
<% if !ajax_form %>
|
|
<span id="new_note_form_extras" >
|
|
<span id="note_attachments_fields">
|
|
<%= file_field_tag 'note_attachments[1][file]', :size => 30, :id => nil %>
|
|
<%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %>
|
|
|
|
</span>
|
|
<br />
|
|
<small><%= link_to l(:label_add_another_file), '#', :onclick => 'addNoteFileField(); return false;' %>
|
|
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
|
|
</small>
|
|
<br />
|
|
<br />
|
|
</span>
|
|
<% end %> |