Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
0783a15d
Commit
0783a15d
authored
6 years ago
by
Tomasz Knapik
Committed by
Todd Dembrey
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
GH-983: Add changing a status
parent
faad381d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opentech/apply/funds/api_views.py
+1
-0
1 addition, 0 deletions
opentech/apply/funds/api_views.py
opentech/static_src/src/app/src/components/Modal/index.js
+37
-0
37 additions, 0 deletions
opentech/static_src/src/app/src/components/Modal/index.js
with
38 additions
and
0 deletions
opentech/apply/funds/api_views.py
+
1
−
0
View file @
0783a15d
from
django.core.exceptions
import
PermissionDenied
as
DjangoPermissionDenied
from
django.core.exceptions
import
PermissionDenied
as
DjangoPermissionDenied
from
django.db
import
transaction
from
django.db.models
import
Q
from
django.db.models
import
Q
from
rest_framework
import
generics
,
permissions
from
rest_framework
import
generics
,
permissions
from
rest_framework.response
import
Response
from
rest_framework.response
import
Response
...
...
This diff is collapsed.
Click to expand it.
opentech/static_src/src/app/src/components/Modal/index.js
0 → 100644
+
37
−
0
View file @
0783a15d
import
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
export
default
class
Modal
extends
React
.
Component
{
static
propTypes
=
{
heading
:
PropTypes
.
string
,
content
:
PropTypes
.
node
.
isRequired
,
visible
:
PropTypes
.
bool
,
onClose
:
PropTypes
.
func
,
}
get
styles
()
{
const
{
visible
}
=
this
.
props
;
const
modalStyle
=
{};
if
(
!
visible
)
{
modalStyle
[
'
display
'
]
=
'
none
'
;
}
return
{
modal
:
{
...
modalStyle
}
}
}
render
()
{
const
{
content
,
heading
,
onClose
}
=
this
.
props
;
return
(
<
div
style
=
{
this
.
styles
.
modal
}
>
{
onClose
&&
<
button
onClick
=
{
onClose
}
>
[
X
]
<
/button>
}
{
heading
&&
<
h1
>
{
heading
}
<
/h1>
}
{
content
}
<
/div
>
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment