* feat: multitranslational support * - completion of settings page - completion of sidebar * sidebar rerendering bug fix * completion of the lesson navigation & materials page * completion of the course navigation * completion of requested languages * - Implementation of Language Picker - Rename Bug Fixes * checkpoint save * - addition of the language picker to the onboarding. - addition of the language switcher for the lesson notes. * merge completion * initialization of the new branch * add transition.svelte file * lesson note bug fix * feat: add translation migration * completion of translation * fix height issue of dropdown * refactoring * fix: improve code with LOCALE from db * finally get it fully functional * connect with AI * backward compatibility for lesson note * preserve old content, when generating AI content * undo translations in upgrade modal * fix duplicate key issue from codacy trigger --------- Co-authored-by: Rotimi Best <best@classroomio.com>
24 lines
680 B
Svelte
24 lines
680 B
Svelte
<script lang="ts">
|
|
import TextField from '$lib/components/Form/TextField.svelte';
|
|
import { t } from '$lib/utils/functions/translations';
|
|
|
|
export let gradeMax = 0;
|
|
export let disableGrading = false;
|
|
export let grade: number | undefined;
|
|
</script>
|
|
|
|
{#if typeof grade !== 'undefined'}
|
|
<div class="flex items-center">
|
|
<TextField
|
|
placeholder={$t('course.navItem.lessons.exercises.new_exercise_modal.points')}
|
|
bind:value={grade}
|
|
type="number"
|
|
className="w-12"
|
|
isDisabled={disableGrading}
|
|
/>
|
|
<p class="dark:text-white ml-2 text-lg flex items-center">
|
|
<span class="mr-1">/</span> <span>{gradeMax}</span>
|
|
</p>
|
|
</div>
|
|
{/if}
|