-
Notifications
You must be signed in to change notification settings - Fork 189
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
Showing
18 changed files
with
271 additions
and
174 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
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
33 changes: 33 additions & 0 deletions
33
src/plugin/cursus/Resources/modules/course/editor/components/list.jsx
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 as T} from 'prop-types' | ||
|
||
import {trans} from '#/main/app/intl' | ||
|
||
import {EditorPage} from '#/main/app/editor' | ||
import {selectors} from '#/plugin/cursus/course/store' | ||
import {Course as CourseTypes} from '#/plugin/cursus/prop-types' | ||
import {SessionList} from '#/plugin/cursus/session/components/list' | ||
|
||
const CourseEditorCanceledSessions = (props) => | ||
<EditorPage | ||
title={trans('canceled_sessions', {}, 'cursus')} | ||
help={trans('canceled_sessions_help', {}, 'cursus')} | ||
> | ||
<SessionList | ||
path={props.path} | ||
course={props.course} | ||
name={selectors.STORE_NAME+'.courseSessionsCanceled'} | ||
url={['apiv2_cursus_session_list_canceled', {id: props.course.id}]} | ||
/> | ||
</EditorPage> | ||
|
||
CourseEditorCanceledSessions.propTypes = { | ||
path: T.string.isRequired, | ||
course: T.shape( | ||
CourseTypes.propTypes | ||
).isRequired | ||
} | ||
|
||
export { | ||
CourseEditorCanceledSessions | ||
} |
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
Oops, something went wrong.