Skip to content

Commit 891865e

Browse files
khangoncweitat
andauthored
feature-8783:Add type rich text links custom from field (#8795)
* feature-8783:Add type rich text links custom from field * feature-8783: Add type rich text links custom from field * Update custom-form-input.hbs --------- Co-authored-by: cweitat <[email protected]>
1 parent 613710f commit 891865e

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

app/components/forms/wizard/custom-form-input.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</div>
88
<div {{did-update this.updated @field}} class="ui action input" style="width: inherit;">
99
<Input type="text" placeholder={{t "Field Name"}} @value={{this.name}} />
10-
<UiDropdown class="ui selection dropdown" @selected={{this.type}} @onChange={{action (mut this.type)}}>
10+
<UiDropdown class="ui selection dropdown custom-form-dropdown-attendee" @selected={{this.type}} @onChange={{action (mut this.type)}}>
1111
<div class="default text">
1212
{{ this.type }}
1313
</div>
@@ -16,6 +16,7 @@
1616
<div class="item" data-value="text">{{t "Short Answer"}}</div>
1717
<div class="item" data-value="paragraph">{{t "Paragraph"}}</div>
1818
<div class="item" data-value="number">{{t "Number"}}</div>
19+
<div class="item" data-value="richtextlink">{{t "Rich Text Links"}}</div>
1920
</div>
2021
</UiDropdown>
2122
<div>

app/styles/pages/events.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,15 @@
125125
height: 100%;
126126
border: 0;
127127
}
128+
129+
.custom-form-dropdown-attendee {
130+
position: relative !important;
131+
display: inline-block !important;
132+
133+
.menu {
134+
position: absolute !important;
135+
background-color: #f9f9f9 !important;
136+
overflow-y: scroll !important;
137+
max-height: 128px !important;
138+
}
139+
}

app/templates/components/forms/orders/order-form.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
@value={{mut (get holder field.fieldIdentifier)}}
8686
@name={{if field.isRequired (concat field.fieldIdentifier "_required_" index) (concat field.fieldIdentifier "_" index)}} />
8787
{{/if}}
88-
{{#if (is-input-field field.type) }}
89-
{{#if field.isLongText}}
88+
{{#if (or (is-input-field field.type) (eq field.type 'richtextlink'))}}
89+
{{#if (or field.isLongText (eq field.type 'richtextlink')) }}
9090
<Widgets::Forms::RichTextEditor
9191
@value={{mut (get holder field.fieldIdentifier)}}
9292
@name={{if field.isRequired (concat field.fieldIdentifier "_required_" index) (concat field.fieldIdentifier "_" index)}} />

0 commit comments

Comments
 (0)