-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcc0242
commit 58764e3
Showing
17 changed files
with
137 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
import baseUrl from 'rdmo/core/assets/js/utils/baseUrl' | ||
|
||
import Template from 'rdmo/core/assets/js/components/Template' | ||
|
||
const Done = ({ templates, overview }) => { | ||
|
||
const projectUrl = `${baseUrl}/projects/${overview.id}/` | ||
const answersUrl = `${baseUrl}/projects/${overview.id}/answers/` | ||
|
||
return ( | ||
<> | ||
<Template template={templates.project_interview_done} /> | ||
|
||
<p> | ||
<a href={answersUrl}>{gettext('View answers')}</a> | ||
</p> | ||
|
||
<p> | ||
<a href={projectUrl}>{gettext('Back to project overview')}</a> | ||
</p> | ||
</> | ||
) | ||
} | ||
|
||
Done.propTypes = { | ||
templates: PropTypes.object.isRequired, | ||
overview: PropTypes.object.isRequired | ||
} | ||
|
||
export default Done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import { isNil } from 'lodash' | ||
|
||
const isReady = (interview) => { | ||
return !(isNil(interview.page) || isNil(interview.navigation) || isNil(interview.values)) | ||
return ( | ||
(interview.done && !isNil(interview.navigation)) || | ||
(interview.page && !isNil(interview.navigation) && !isNil(interview.values)) | ||
) | ||
} | ||
|
||
export { isReady } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
rdmo/projects/templates/projects/project_interview_done.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% load i18n %} | ||
{% load core_tags %} | ||
|
||
<h2> | ||
{% trans 'Done!' %} | ||
</h2> | ||
|
||
<p> | ||
{% trans 'Thank you for filling out the questionnaire.' %} | ||
</p> |
10 changes: 0 additions & 10 deletions
10
rdmo/projects/templates/projects/project_interview_navigation_help.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters