Skip to content

Commit

Permalink
Use lightswitch field instead of checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Mar 8, 2024
1 parent 5ca5cdf commit 4b83e5c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/templates/_settings/sendout/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,11 @@

<hr>

{% set input %}
{{ forms.checkbox({
label: "Show the title field for sendouts."|t('campaign'),
name: 'showSendoutTitleField',
checked: settings.showSendoutTitleField,
}) }}
{% endset %}
{{ forms.field({
{{ forms.lightswitchField({
label: "Show Title Field"|t('campaign'),
instructions: "If unchecked, the subject will be used as the title."|t('campaign'),
}, input) }}
instructions: "Whether the title field should be visible in addition to the subject. If off, the subject will be used as the title."|t('campaign'),
on: settings.showSendoutTitleField,
}) }}

<hr>

Expand Down

0 comments on commit 4b83e5c

Please sign in to comment.