|
101 | 101 | <%= text_input(fs, :intro_text, class: "text-black") %>
|
102 | 102 | <% end %>
|
103 | 103 | </div>
|
104 |
| - <div class="flex flex-col"> |
105 |
| - <%= label(fs, :success_text, gettext("Thank you message")) %> |
106 |
| - <%= with_validation(fs, :success_text) do %> |
107 |
| - <%= text_input(fs, :success_text, class: "text-black") %> |
108 |
| - <% end %> |
109 |
| - </div> |
110 |
| - <div class="flex flex-col"> |
111 |
| - <%= label(fs, :success_text, gettext("Success redirect URL")) %> |
112 |
| - <%= with_validation(fs, :success_url) do %> |
113 |
| - <%= url_input(fs, :success_url, class: "text-black") %> |
114 |
| - <% end %> |
115 |
| - </div> |
116 | 104 | <div class="flex flex-col">
|
117 | 105 | <%= label(fs, :fine_print, gettext("Fine print")) %>
|
118 | 106 | <%= with_validation(fs, :fine_print) do %>
|
|
125 | 113 | <%= gettext("Require captcha") %>
|
126 | 114 | <% end %>
|
127 | 115 | <% end %>
|
| 116 | + <div class="flex flex-col"> |
| 117 | + <%= label(fs, :success_text, gettext("Thank you message")) %> |
| 118 | + <%= with_validation(fs, :success_text) do %> |
| 119 | + <%= text_input(fs, :success_text, class: "text-black") %> |
| 120 | + <% end %> |
| 121 | + </div> |
| 122 | + <div class="flex flex-col"> |
| 123 | + <%= label(fs, :success_text, gettext("Thank you redirect URL")) %> |
| 124 | + <%= with_validation(fs, :success_url) do %> |
| 125 | + <%= url_input(fs, :success_url, class: "text-black") %> |
| 126 | + <% end %> |
| 127 | + </div> |
128 | 128 | <%= with_validation(fs, :csrf_disabled) do %>
|
129 | 129 | <%= label(fs, :csrf_disabled) do %>
|
130 | 130 | <%= checkbox(fs, :csrf_disabled, class: "text-emerald-500") %>
|
|
392 | 392 |
|
393 | 393 | <template x-if="enable">
|
394 | 394 | <div class="form-row">
|
395 |
| - <%= label(fs, :double_opt_in_subject, "Custom email text") %> |
| 395 | + <%= label(fs, :double_opt_in_markdown_body, "Custom email text") %> |
396 | 396 | <div class="text-xs">
|
397 | 397 | <%= gettext_md("""
|
398 | 398 | You may use Liquid and Markdown in the email body.
|
|
401 | 401 | """) %>
|
402 | 402 | </div>
|
403 | 403 | <br />
|
404 |
| - <%= with_validation(fs, :double_opt_in_text_body) do %> |
| 404 | + <%= with_validation(fs, :double_opt_in_markdown_body) do %> |
405 | 405 | <%= textarea(fs, :double_opt_in_markdown_body,
|
406 | 406 | class: "text-black",
|
407 | 407 | rows: 6,
|
|
415 | 415 | <% end %>
|
416 | 416 | </div>
|
417 | 417 | </template>
|
| 418 | + |
| 419 | + <template x-if="enable"> |
| 420 | + <div class="form-row"> |
| 421 | + <%= label(fs, :double_opt_in_message, gettext("Double Opt-in Info Message")) %> |
| 422 | + <%= with_validation(fs, :double_opt_in_message) do %> |
| 423 | + <div class="text-xs"> |
| 424 | + <%= gettext_md(""" |
| 425 | + Custom message that is shown when a user submits the form and double opt-in |
| 426 | + is required. |
| 427 | + """) %> |
| 428 | + </div> |
| 429 | + <%= text_input(fs, :double_opt_in_message, class: "text-black") %> |
| 430 | + <% end %> |
| 431 | + </div> |
| 432 | + </template> |
| 433 | + |
| 434 | + <template x-if="enable"> |
| 435 | + <div class="form-row"> |
| 436 | + <%= label(fs, :success_text, gettext("Double Opt-in Info Redirect URL")) %> |
| 437 | + <%= with_validation(fs, :double_opt_in_url) do %> |
| 438 | + <div class="text-xs"> |
| 439 | + <%= gettext_md(""" |
| 440 | + Custom URL to which users are redirected when they submit the form and double opt-in |
| 441 | + is required. |
| 442 | + """) %> |
| 443 | + </div> |
| 444 | + <%= url_input(fs, :double_opt_in_url, class: "text-black") %> |
| 445 | + <% end %> |
| 446 | + </div> |
| 447 | + </template> |
418 | 448 | <% end) %>
|
419 | 449 | </div>
|
420 | 450 | <% else %>
|
|
0 commit comments