|
7 | 7 | </div> |
8 | 8 | <div style="display: flex; flex-direction: column"> |
9 | 9 | <div {{did-update this.updated @field}} class="ui action input main" style="width: inherit;"> |
10 | | - <div style="width: 30%"> |
11 | | - <Input type="text" placeholder={{t "Field Name"}} @value={{this.name}}/> |
12 | | - </div> |
13 | 10 | {{#if (eq this.type "number")}} |
14 | | - <div class="ui action input input-attendee-custom-form"> |
15 | | - <Input |
16 | | - @type="number" |
17 | | - @name="min_price" |
18 | | - placeholder={{t "Min"}} |
19 | | - @value={{this.min}} /> |
| 11 | + <div style="width: 20%"> |
| 12 | + <Input type="text" placeholder={{t "Field Name"}} @value={{this.name}}/> |
20 | 13 | </div> |
21 | | - <div class="ui action input input-attendee-custom-form"> |
22 | | - <Input |
23 | | - @type="number" |
24 | | - @name="max_price" |
25 | | - placeholder={{t "Max"}} |
26 | | - @value={{this.max}} /> |
| 14 | + {{else}} |
| 15 | + <div style="width: 30%"> |
| 16 | + <Input type="text" placeholder={{t "Field Name"}} @value={{this.name}}/> |
27 | 17 | </div> |
28 | 18 | {{/if}} |
29 | 19 | {{#if (eq @form 'attendee')}} |
|
39 | 29 | </div> |
40 | 30 | </UiDropdown> |
41 | 31 | {{/if}} |
| 32 | + {{#if (eq this.type "number")}} |
| 33 | + <div class="ui action input input-attendee-custom-form" style="width: 8%;"> |
| 34 | + <Input |
| 35 | + @type="number" |
| 36 | + @name="min_price" |
| 37 | + placeholder={{t "Min"}} |
| 38 | + @value={{this.min}} /> |
| 39 | + </div> |
| 40 | + <div class="ui action input input-attendee-custom-form" style="width: 8%;"> |
| 41 | + <Input |
| 42 | + @type="number" |
| 43 | + @name="max_price" |
| 44 | + placeholder={{t "Max"}} |
| 45 | + @value={{this.max}} /> |
| 46 | + </div> |
| 47 | + {{/if}} |
42 | 48 | <UiDropdown class="ui selection dropdown custom-form-dropdown-attendee" @selected={{this.type}} @onChange={{action (mut this.type)}}> |
43 | 49 | <div class="default text"> |
44 | 50 | {{ this.type }} |
|
67 | 73 | {{#unless sub.isDeleted }} |
68 | 74 | <Forms::Wizard::CustomFormInputTranslation |
69 | 75 | @data={{sub}} |
| 76 | + @type={{this.type}} |
70 | 77 | @onRemoveTranslation={{action (mut sub.isDeleted) true}} |
71 | 78 | @onChange={{action 'onChildChangeLanguage'}} |
72 | 79 | /> |
|
0 commit comments