diff --git a/app/views/documents/_form.rhtml b/app/views/documents/_form.rhtml index bd6e6cc7..ee7c289f 100644 --- a/app/views/documents/_form.rhtml +++ b/app/views/documents/_form.rhtml @@ -14,16 +14,4 @@ -<% if Setting.text_formatting == 'textile' %> -<%= javascript_include_tag 'jstoolbar' %> - -<% end %> \ No newline at end of file +<%= wikitoolbar_for 'document_description' %> diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 9f530539..74b8f343 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -30,9 +30,7 @@ <% if authorize_for('documents', 'add_attachment') %>
<%= toggle_link l(:label_attachment_new), "add_attachment_form" %>
<% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %> -- <%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
+ <%= render :partial => 'attachments/form' %> <%= submit_tag l(:button_add) %> <% end %> <% end %> diff --git a/app/views/issues/edit.rhtml b/app/views/issues/edit.rhtml index 02430127..8551bfab 100644 --- a/app/views/issues/edit.rhtml +++ b/app/views/issues/edit.rhtml @@ -33,19 +33,7 @@ <%= submit_tag l(:button_save) %> <% end %> -<% if Setting.text_formatting == 'textile' %> -<%= javascript_include_tag 'jstoolbar' %> - -<% end %> +<%= wikitoolbar_for 'issue_description' %> <% content_for :header_tags do %> <%= javascript_include_tag 'calendar/calendar' %> diff --git a/app/views/messages/_form.rhtml b/app/views/messages/_form.rhtml index 93e4311b..0d1ec739 100644 --- a/app/views/messages/_form.rhtml +++ b/app/views/messages/_form.rhtml @@ -5,7 +5,7 @@
<%= f.text_field :subject, :required => true, :size => 80 %>
<%= f.text_area :content, :required => true, :cols => 80, :rows => 15 %>
+<%= f.text_area :content, :required => true, :cols => 80, :rows => 15, :class => 'wiki-edit' %>
<%= wikitoolbar_for 'message_content' %> diff --git a/app/views/news/_form.rhtml b/app/views/news/_form.rhtml index d5fec279..1ea3c6aa 100644 --- a/app/views/news/_form.rhtml +++ b/app/views/news/_form.rhtml @@ -5,16 +5,4 @@<%= f.text_area :description, :required => true, :cols => 60, :rows => 15, :class => 'wiki-edit' %>
-<% if Setting.text_formatting == 'textile' %> -<%= javascript_include_tag 'jstoolbar' %> - -<% end %> \ No newline at end of file +<%= wikitoolbar_for 'news_description' %> diff --git a/app/views/projects/add_file.rhtml b/app/views/projects/add_file.rhtml index f39018cc..83927537 100644 --- a/app/views/projects/add_file.rhtml +++ b/app/views/projects/add_file.rhtml @@ -7,9 +7,7 @@<%= select_tag "version_id", options_from_collection_for_select(@versions, "id", "name") %>
--<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
+<%= render :partial => 'attachments/form' %> <%= submit_tag l(:button_add) %> <% end %> \ No newline at end of file diff --git a/app/views/projects/add_issue.rhtml b/app/views/projects/add_issue.rhtml index 36c6d586..3f1815e3 100644 --- a/app/views/projects/add_issue.rhtml +++ b/app/views/projects/add_issue.rhtml @@ -38,19 +38,7 @@ <%= submit_tag l(:button_create) %> <% end %> -<% if Setting.text_formatting == 'textile' %> -<%= javascript_include_tag 'jstoolbar' %> - -<% end %> +<%= wikitoolbar_for 'issue_description' %> <% content_for :header_tags do %> <%= javascript_include_tag 'calendar/calendar' %>