CLASSROOMIO-T-11: Add settings to make certificate downloadable
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
*
|
*
|
||||||
* await updateCourse($course.id, undefined, {
|
* await updateCourse($course.id, undefined, {
|
||||||
description: $course.description,
|
description: $course.description,
|
||||||
auto_send_certificate: $course.auto_send_certificate
|
is_certificate_downloadable: $course.is_certificate_downloadable
|
||||||
});
|
});
|
||||||
* */
|
* */
|
||||||
// set isSaving to false
|
// set isSaving to false
|
||||||
@@ -78,13 +78,13 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<Toggle
|
<Toggle
|
||||||
labelText="Automatically send certificates on completion"
|
labelText="Allow students download certificate"
|
||||||
bind:toggled={$course.auto_send_certificate}
|
bind:toggled={$course.is_certificate_downloadable}
|
||||||
class="my-4"
|
class="my-4"
|
||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<span slot="labelA" style="color: #161616">Automatic</span>
|
<span slot="labelA" style="color: #161616">Student access</span>
|
||||||
<span slot="labelB" style="color: green">Automatic</span>
|
<span slot="labelB" style="color: green">Student access</span>
|
||||||
</Toggle>
|
</Toggle>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export const course: Writable<Course> = writable({
|
|||||||
description: '',
|
description: '',
|
||||||
cost: 0,
|
cost: 0,
|
||||||
currency: '',
|
currency: '',
|
||||||
auto_send_certificate: false,
|
is_certificate_downloadable: false,
|
||||||
metadata: {
|
metadata: {
|
||||||
requirements: '',
|
requirements: '',
|
||||||
description: '',
|
description: '',
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export interface Course {
|
|||||||
currency?: string;
|
currency?: string;
|
||||||
group?: Group;
|
group?: Group;
|
||||||
organization?: Organization;
|
organization?: Organization;
|
||||||
auto_send_certificate?: boolean;
|
is_certificate_downloadable?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Groupmember {
|
export interface Groupmember {
|
||||||
|
|||||||
Reference in New Issue
Block a user