feat: interactive course poll (#5)
* CLASSROOMIO-T-218:Made the save button to be at the bottom right * CLASSROOMIO-T-218:Removed unused class * CLASSROOMIO-T-119:Made poll to be created by teachers only * CLASSROOMIO-T-119:Updated the interface * CLASSROOMIO-T-218:Made the save button to be at the bottom right * CLASSROOMIO-T-218:Removed unused class * CLASSROOMIO-T-119:Made poll to be created by teachers only * CLASSROOMIO-T-119:Updated the interface * polls improvements * CLASSROOMIO-T-119:Made some corrections to the store * fix types * poll imporvements * CLASSROOMIO-T-119: Connect create/delete poll to backend * remove console * CLASSROOMIO-T-119: Improve hotkeys + better abstract poll feature * realtime poll --------- Co-authored-by: emmanuel <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
emmanuel
parent
b4587483fb
commit
465b2341fd
@@ -1,19 +1,24 @@
|
||||
<script>
|
||||
export let label;
|
||||
export let placeholder;
|
||||
export let value;
|
||||
<script lang="ts">
|
||||
export let label = '';
|
||||
export let placeholder = '';
|
||||
export let value: string | Date = '';
|
||||
export let className = '';
|
||||
export let onInput = () => {};
|
||||
$: console.log(`value`, value);
|
||||
export let isRequired: boolean = false;
|
||||
</script>
|
||||
|
||||
<label class="block {className}">
|
||||
<span class="text-gray-700 dark:text-white">{label}</span>
|
||||
<span class="text-gray-700 dark:text-white"
|
||||
>{label}
|
||||
{#if isRequired}
|
||||
<span class="text-red-700">*</span>
|
||||
{/if}
|
||||
</span>
|
||||
<input
|
||||
bind:value
|
||||
on:input={onInput}
|
||||
{placeholder}
|
||||
type="datetime-local"
|
||||
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-neutral-700 dark:text-white"
|
||||
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-neutral-800 dark:text-white"
|
||||
/>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user