Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
8a863a4f
Commit
8a863a4f
authored
Feb 09, 2011
by
Felix Schäfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attachment fields in a collapsed fieldset
#149
Puts the attachment fields in a collapsed fieldset on issue update.
parent
a52417ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
_edit.rhtml
app/views/issues/_edit.rhtml
+5
-1
application.css
public/stylesheets/application.css
+2
-0
No files found.
app/views/issues/_edit.rhtml
View file @
8a863a4f
...
...
@@ -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>
...
...
public/stylesheets/application.css
View file @
8a863a4f
...
...
@@ -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)
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment