File tree 4 files changed +32
-9
lines changed
src/lib/components/questions
4 files changed +32
-9
lines changed Original file line number Diff line number Diff line change 6
6
</script >
7
7
8
8
<BaseEditor bind:data >
9
+ <!--Copied from number_question_input -->
9
10
<fieldset >
10
- <legend >Min </legend >
11
+ <legend >min </legend >
11
12
<input type ="number" bind:value ={data .min } />
12
13
</fieldset >
13
14
<fieldset >
14
- <legend >Max </legend >
15
+ <legend >max </legend >
15
16
<input type ="number" bind:value ={data .max } />
16
17
</fieldset >
18
+
17
19
<fieldset >
18
- <legend >Step by </legend >
20
+ <legend >step </legend >
19
21
<input type ="number" bind:value ={data .step } />
20
22
</fieldset >
23
+
21
24
<fieldset >
22
- <legend >Default Value </legend >
25
+ <legend >Defualt value </legend >
23
26
<input type ="number" bind:value ={data .value } />
24
27
</fieldset >
25
28
<fieldset >
26
- <legend >Placeholder </legend >
27
- <input type ="number " bind:value ={data .placeholder } />
29
+ <legend >placeholder </legend >
30
+ <input type ="text " bind:value ={data .placeholder } />
28
31
</fieldset >
29
32
<details >
30
33
<summary >Sample</summary >
Original file line number Diff line number Diff line change 46
46
bind:value ={option .content }
47
47
/> <br />
48
48
{/each }
49
-
50
- <SelectQuestionInput {data } />
49
+ <details >
50
+ <summary >Sample</summary >
51
+ <SelectQuestionInput {data } />
52
+ </details >
Original file line number Diff line number Diff line change 12
12
13
13
<fieldset >
14
14
<legend >{data .content }</legend >
15
- <select name ={data .name } required ={data .required } value ={data .default || localTimezoneID }>
15
+ <select name ={data .name } required ={data .required } value ={data .value || localTimezoneID }>
16
16
{#each TIMEZONES as choice }
17
17
<option value ={choice .id }>{choice .text }</option >
18
18
{/each }
Original file line number Diff line number Diff line change
1
+ <script lang =" ts" >
2
+ import type { TimezoneQuestion } from ' $lib/form' ;
3
+ import { TIMEZONES } from ' $lib/timezones' ;
4
+ import BaseEditor from ' ../base/base_editor.svelte' ;
5
+ import TimezoneQuestionInput from ' ./timezone_question_input.svelte' ;
6
+ export let data = $$props as TimezoneQuestion ;
7
+ </script >
8
+
9
+ <BaseEditor bind:data >
10
+ <fieldset >
11
+ <legend >Defualt Timezone ID</legend >
12
+ <input type ="text" bind:value ={data .value } />
13
+ </fieldset >
14
+ <details >
15
+ <summary > Time </summary >
16
+ <TimezoneQuestionInput bind:data />
17
+ </details >
18
+ </BaseEditor >
You can’t perform that action at this time.
0 commit comments