|
1 | 1 | <Modal::Default @modalIsOpened={{@modalIsOpened}} @options={{@options}} @confirm={{@onConfirm}} @decline={{@onDecline}} as |options|> |
2 | 2 | <div class="px-5 border-b border-gray-200 dark:border-gray-800"> |
3 | 3 | <div class="input-group"> |
4 | | - <InputLabel @labelText={{t "developers.component.modals.webhook-form.endpoint-url"}} @helpText={{t "developers.component.modals.webhook-form.endpoint-url-help-text"}} @required={{true}} /> |
5 | | - <Input @value={{options.webhook.url}} @type="url" aria-label="Webhook URL" class="w-full form-input" placeholder={{t "developers.component.modals.webhook-form.endpoint-url-placeholder"}} /> |
| 4 | + <InputLabel |
| 5 | + @labelText={{t "developers.component.modals.webhook-form.endpoint-url"}} |
| 6 | + @helpText={{t "developers.component.modals.webhook-form.endpoint-url-help-text"}} |
| 7 | + @required={{true}} |
| 8 | + /> |
| 9 | + <Input |
| 10 | + @value={{options.webhook.url}} |
| 11 | + @type="url" |
| 12 | + aria-label="Webhook URL" |
| 13 | + class="w-full form-input" |
| 14 | + placeholder={{t "developers.component.modals.webhook-form.endpoint-url-placeholder"}} |
| 15 | + /> |
6 | 16 | </div> |
7 | 17 |
|
8 | 18 | <div class="input-group"> |
9 | 19 | <InputLabel @labelText={{t "developers.component.modals.webhook-form.description-label"}} @helpText={{t "developers.component.modals.webhook-form.description-help-text"}} /> |
10 | | - <Textarea @value={{options.webhook.description}} aria-label={{t "developers.component.modals.webhook-form.description-aria-label"}} class="w-full form-input" placeholder={{t "developers.component.modals.webhook-form.description-placeholder"}} /> |
| 20 | + <Textarea |
| 21 | + @value={{options.webhook.description}} |
| 22 | + aria-label={{t "developers.component.modals.webhook-form.description-aria-label"}} |
| 23 | + class="w-full form-input" |
| 24 | + placeholder={{t "developers.component.modals.webhook-form.description-placeholder"}} |
| 25 | + /> |
11 | 26 | </div> |
12 | 27 | </div> |
13 | 28 |
|
14 | 29 | <div class="px-5 pt-4 border-b border-gray-200 dark:border-gray-800"> |
15 | | - <div class="input-group"> |
16 | | - <InputLabel @labelText={{t "developers.component.modals.webhook-form.api-credential-label"}} @helpText={{t "developers.component.modals.webhook-form.api-credential-help-text"}} /> |
| 30 | + <div class="input-group"> |
| 31 | + <InputLabel |
| 32 | + @labelText={{t "developers.component.modals.webhook-form.api-credential-label"}} |
| 33 | + @helpText={{t "developers.component.modals.webhook-form.api-credential-help-text"}} |
| 34 | + /> |
17 | 35 |
|
18 | 36 | <select class="w-full form-select" aria-label={{t "developers.component.modals.webhook-form.api-credential-label"}} {{on "change" @options.setApiCredential}}> |
19 | 37 | <option value={{null}} selected> |
|
51 | 69 | <div class="px-5 pt-4"> |
52 | 70 | <div class="input-group"> |
53 | 71 | <div class="mb-4"> |
54 | | - <InputLabel class="mb-2" @labelText={{t "developers.component.modals.webhook-form.events-send-label"}} @helpText={{t "developers.component.modals.webhook-form.events-send-help-text"}} /> |
| 72 | + <InputLabel |
| 73 | + class="mb-2" |
| 74 | + @labelText={{t "developers.component.modals.webhook-form.events-send-label"}} |
| 75 | + @helpText={{t "developers.component.modals.webhook-form.events-send-help-text"}} |
| 76 | + /> |
55 | 77 |
|
56 | 78 | <div class="flex items-start justify-between"> |
57 | 79 | <div class="w-1/2"> |
|
63 | 85 | </dd.Trigger> |
64 | 86 | <dd.Content class="w-full h-48 mt-1 overflow-y-hidden border bg-white border-gray-300 rounded shadow-md dark:border-gray-800 dark:bg-gray-700"> |
65 | 87 | <div class="w-full rounded shadow"> |
66 | | - <Input aria-label={{t "developers.component.modals.webhook-form.event-search-label"}} placeholder={{t "developers.component.modals.webhook-form.event-search-placeholder"}} class="w-full px-3 py-2 text-sm leading-4 border-b border-gray-300 shadow-sm dark:border-gray-800 dark:bg-gray-700 dark:text-gray-100" {{on "keyup" @options.searchEvents}} /> |
| 88 | + <Input |
| 89 | + aria-label={{t "developers.component.modals.webhook-form.event-search-label"}} |
| 90 | + placeholder={{t "developers.component.modals.webhook-form.event-search-placeholder"}} |
| 91 | + class="w-full px-3 py-2 text-sm leading-4 border-b border-gray-300 shadow-sm dark:border-gray-800 dark:bg-gray-700 dark:text-gray-100" |
| 92 | + {{on "keyup" @options.searchEvents}} |
| 93 | + /> |
67 | 94 | <div class="w-full h-40 pb-2 overflow-y-scroll"> |
68 | 95 | {{#each-in @options.eventOptions as |resourceName events|}} |
69 | 96 | <div class=""> |
|
76 | 103 | </span> |
77 | 104 | </div> |
78 | 105 | {{#each events as |event|}} |
79 | | - <a href="javascript:;" class="block px-6 py-3 text-xs text-gray-700 no-underline cursor-pointer hover:opacity-75 dark:text-gray-100" disabled={{includes event @options.webhook.events}} {{on "click" (fn @options.addEvent event dd)}}> |
| 106 | + <a |
| 107 | + href="javascript:;" |
| 108 | + class="block px-6 py-3 text-xs text-gray-700 no-underline cursor-pointer hover:opacity-75 dark:text-gray-100" |
| 109 | + disabled={{includes event @options.webhook.events}} |
| 110 | + {{on "click" (fn @options.addEvent event dd)}} |
| 111 | + > |
80 | 112 | {{event}} |
81 | 113 | </a> |
82 | 114 | {{/each}} |
|
0 commit comments