Adds an optional description to attachments.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1180 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
4b15dc10c1
commit
9daf39ec52
44 files changed
+138
-71
No files matched your search
@@ -1,12 +1,12 @@
|
||||
<% labelled_tabular_form_for :issue, @issue,
|
||||
:url => {:action => 'edit', :id => @issue},
|
||||
:html => {:id => 'issue-form',
|
||||
:class => nil,
|
||||
:multipart => true} do |f| %>
|
||||
<%= error_messages_for 'issue' %>
|
||||
<div class="box">
|
||||
<% if @edit_allowed || !@allowed_statuses.empty? %>
|
||||
<fieldset>
|
||||
<legend><%= l(:label_change_properties) %>
|
||||
<fieldset class="tabular"><legend><%= l(:label_change_properties) %>
|
||||
<% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %>
|
||||
<small>(<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>)</small>
|
||||
<% end %>
|
||||
@@ -15,7 +15,7 @@
|
||||
</fieldset>
|
||||
<% end %>
|
||||
<% if authorize_for('timelog', 'edit') %>
|
||||
<fieldset><legend><%= l(:button_log_time) %></legend>
|
||||
<fieldset class="tabular"><legend><%= l(:button_log_time) %></legend>
|
||||
<% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %>
|
||||
<div class="splitcontentleft">
|
||||
<p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
|
||||
@@ -32,9 +32,7 @@
|
||||
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
||||
<%= wikitoolbar_for 'notes' %>
|
||||
|
||||
<p id="attachments_p"><label><%=l(:label_attachment_new)%>
|
||||
<%= 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>
|
||||
<p><%=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user