Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
35e2670f
authored
3 years ago
by
Máhonfai Bálint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add group export form
parent
47e1ff1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
circle/dashboard/forms.py
+15
-0
No files found.
circle/dashboard/forms.py
View file @
35e2670f
...
...
@@ -278,6 +278,21 @@ class GroupImportForm(NoFormTagMixin, forms.Form):
return
helper
class
GroupExportForm
(
NoFormTagMixin
,
forms
.
Form
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
default
=
kwargs
.
pop
(
"group_name"
)
super
(
GroupExportForm
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
self
.
fields
[
"exported_name"
]
=
forms
.
CharField
(
max_length
=
100
,
label
=
_
(
'Filename'
),
initial
=
default
)
@property
def
helper
(
self
):
helper
=
super
(
GroupExportForm
,
self
)
.
helper
helper
.
add_input
(
Submit
(
"submit"
,
_
(
"Export"
)))
return
helper
class
GroupProfileUpdateForm
(
NoFormTagMixin
,
forms
.
ModelForm
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
...
...
This diff is collapsed.
Click to expand it.
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