Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/course/configuration/disable-collaborators.tsx
Views: 687
import { Card, Checkbox } from "antd";1import { FormattedMessage, useIntl } from "react-intl";23import { Icon, Paragraph } from "@cocalc/frontend/components";4import { course } from "@cocalc/frontend/i18n";56interface Props {7checked: boolean;8on_change: (checked: boolean) => void;9}1011export function DisableStudentCollaboratorsPanel({12checked,13on_change,14}: Props) {15const intl = useIntl();1617const title = intl.formatMessage(course.collaborator_policy);1819return (20<Card21title={22<>23<Icon name="envelope" /> {title}24</>25}26>27<div>28<Checkbox29checked={checked}30onChange={(e) => on_change((e.target as any).checked)}31>32<FormattedMessage33id="course.configuration.disable-collaborators.title"34defaultMessage={"Allow arbitrary collaborators"}35/>36</Checkbox>37</div>38<hr />39<Paragraph type="secondary">40<FormattedMessage41id="course.configuration.disable-collaborators.description"42defaultMessage={`If this box is checked (this is the default),43the owner and any collaborator on this student project may add collaborators to this project.44If this box is not checked, any collaborators on this student project will be removed,45with the exception of the student, instructor, and TAs whenever the projects are reconfigured.46Here "instructor and TAs" means any user who is an owner or collaborator on the teaching project,47i.e. the project containing the course file.48After "Allow arbitrary collaborators" is checked,49collaborators to be excluded are removed when opening the course file or upon clicking50"Reconfigure all projects".51{br}52<b>NOTE:</b> There is also a new "Disable adding or removing collaborators" option below,53which you should also consider using.`}54values={{ br: <br /> }}55/>56</Paragraph>57</Card>58);59}606162