Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
3a835fab
Commit
3a835fab
authored
Jan 31, 2016
by
David Haynes
🙆
Browse files
Accordian tabs stay open after use
- Gettin crispier up in here
parent
6e4f7595
Changes
2
Hide whitespace changes
Inline
Side-by-side
go/go/forms.py
View file @
3a835fab
...
...
@@ -147,6 +147,9 @@ class URLFormTest(forms.ModelForm):
title
=
"target_url"
,
css_class
=
"first_group"
,
),
css_id
=
'firstCollapse'
,
active
=
True
,
template
=
'crispy/accordian-group.html'
,
),
AccordionGroup
(
'Step 2: Short URL'
,
Div
(
...
...
@@ -159,7 +162,10 @@ class URLFormTest(forms.ModelForm):
style
=
"background: rgb(#F6F6F6);"
,
title
=
"short_url"
,
css_class
=
"second_group"
,
)
),
css_id
=
'secondCollapse'
,
active
=
False
,
template
=
'crispy/accordian-group.html'
,
),
AccordionGroup
(
'Step 3: URL Expiration'
,
Div
(
...
...
@@ -170,8 +176,13 @@ class URLFormTest(forms.ModelForm):
style
=
"background: rgb(#F6F6F6);"
,
title
=
"expires_url"
,
css_class
=
"third_group"
,
)
)
),
css_id
=
'thirdCollapse'
,
active
=
False
,
template
=
'crispy/accordian-group.html'
,
),
css_id
=
'accordian'
,
template
=
'crispy/accordian.html'
),
HTML
(
"""
<br />
...
...
go/go/templates/test.html
View file @
3a835fab
...
...
@@ -7,10 +7,24 @@ Go - A Product of Vapor
{% block content %}
<style>
.asteriskField
{
display
:
none
;
}
.collapse
{
position
:
relative
;
height
:
0
;
overflow
:
hidden
;
-webkit-transition
:
height
0.35s
ease
;
-moz-transition
:
height
0.35s
ease
;
-o-transition
:
height
0.35s
ease
;
transition
:
height
0.35s
ease
;
}
.collapse.in
{
height
:
auto
;
}
</style>
<div
class=
"page-header"
id=
"banner"
>
...
...
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