Attachment fields in a collapsed fieldset #149

Puts the attachment fields in a collapsed fieldset on issue update.
This commit is contained in:
Felix Schäfer 2011-02-09 21:33:14 +01:00
parent a52417eca9
commit 8a863a4f1b
2 changed files with 7 additions and 1 deletions

View File

@ -36,8 +36,12 @@
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
<%= wikitoolbar_for 'notes' %>
<%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %>
</fieldset>
<p><%=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p>
<fieldset id="attachments" class="collapsible collapsed borders"><legend onclick="toggleFieldset(this);"><%=l(:label_attachment_plural)%></legend>
<div style="display: none;">
<%= render :partial => 'attachments/form' %>
</div>
</fieldset>
</div>

View File

@ -276,6 +276,8 @@ div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;}
#issue_tree td.checkbox {display:none;}
fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
fieldset.collapsible.borders { border-width: 1px; }
fieldset.collapsible.collapsed.borders { border-width: 1px 0 0 0; }
fieldset.collapsible legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
fieldset.collapsible.collapsed legend { background-image: url(../images/arrow_collapsed.png); }