diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-27 12:38:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-27 12:38:29 +0000 |
commit | 70374d084e19dba21e83e8a360a62ff0168ff207 (patch) | |
tree | 8db177647094fbbd16d8a242827579d949d40d1e /app/views/projects | |
parent | f335e943ad807de82f8ff860922d9c9aa2f3a3bc (diff) | |
download | redmine-70374d084e19dba21e83e8a360a62ff0168ff207.tar.gz redmine-70374d084e19dba21e83e8a360a62ff0168ff207.zip |
Slight views refactoring
git-svn-id: http://redmine.rubyforge.org/svn/trunk@548 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/add_file.rhtml | 4 | ||||
-rw-r--r-- | app/views/projects/add_issue.rhtml | 14 |
2 files changed, 2 insertions, 16 deletions
diff --git a/app/views/projects/add_file.rhtml b/app/views/projects/add_file.rhtml index f39018cc8..839275373 100644 --- a/app/views/projects/add_file.rhtml +++ b/app/views/projects/add_file.rhtml @@ -7,9 +7,7 @@ <p><label for="version_id"><%=l(:field_version)%> <span class="required">*</span></label> <%= select_tag "version_id", options_from_collection_for_select(@versions, "id", "name") %></p> -<p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> -<%= image_to_function "add.png", "addFileField();return false" %></label> -<%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> +<%= render :partial => 'attachments/form' %> </div> <%= 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 36c6d5869..3f1815e38 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' %> -<script type="text/javascript"> -//<![CDATA[ -if (document.getElementById) { - if (document.getElementById('issue_description')) { - var commentTb = new jsToolBar(document.getElementById('issue_description')); - commentTb.draw(); - } -} -//]]> -</script> -<% end %> +<%= wikitoolbar_for 'issue_description' %> <% content_for :header_tags do %> <%= javascript_include_tag 'calendar/calendar' %> |