Skip to content

Commit

Permalink
Move sendTo to notifications tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Prein committed Oct 16, 2015
1 parent 00ad6ad commit 35ecf96
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
22 changes: 0 additions & 22 deletions templates/forms/_fields/form.twig
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,6 @@
errors: form.getErrors('submissionEnabled'),
instructions: 'Whether to store form submissions.'|t
}) }}
{{ forms.lightswitchField({
label: 'Send copy'|t,
id: 'sendCopy',
name: 'sendCopy',
on: form.sendCopy,
onLabel: 'Enable'|t,
offLabel: 'Disable'|t,
errors: form.getErrors('sendCopy'),
instructions: 'Whether to send a copy to the submitter.'|t,
toggle: 'sendCopyTo-container'
}) }}
<div class="hidden" id="sendCopyTo-container">
{{ forms.selectField({
label: "Send copy to"|t,
instructions: "Please select an e-mail field."|t,
warning: "The value of this field should be an e-mailaddress."|t,
id: 'sendCopyTo',
name: 'sendCopyTo',
options: craft.amForms.getFieldHandles(),
value: form.sendCopyTo
}) }}
</div>
{% if not currentUser.admin %}
<div class="hidden">
{% endif %}
Expand Down
22 changes: 22 additions & 0 deletions templates/forms/_fields/notifications.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@
errors: form.getErrors('notificationEnabled'),
instructions: 'Whether to email form submissions.'|t
}) }}
{{ forms.lightswitchField({
label: 'Send copy'|t,
id: 'sendCopy',
name: 'sendCopy',
on: form.sendCopy,
onLabel: 'Enable'|t,
offLabel: 'Disable'|t,
errors: form.getErrors('sendCopy'),
instructions: 'Whether to send a copy to the submitter.'|t,
toggle: 'sendCopyTo-container'
}) }}
<div class="hidden" id="sendCopyTo-container">
{{ forms.selectField({
label: "Send copy to"|t,
instructions: "Please select an email field."|t,
warning: "The value of this field should be an email address."|t,
id: 'sendCopyTo',
name: 'sendCopyTo',
options: craft.amForms.getFieldHandles(),
value: form.sendCopyTo
}) }}
</div>
{{ forms.lightswitchField({
label: 'Add attachments with notifications'|t,
id: 'notificationFilesEnabled',
Expand Down
3 changes: 3 additions & 0 deletions translations/nl.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
'Optional name for your export.' => 'Optionele naam voor uw export.',
'Origin check enabled' => 'Oorsprong controle inschakelen',
'Override default template with your own template. Enter the folder (with template), e.g.: {template}' => 'Overschrijf de standaard template met uw eigen template. Voer de map (met de template) in, bijv.: {template}',
'Please select an email field.' => 'Selecteer een e-mail veld.',
'Plugin name' => 'Plugin naam',
'Plugin name for the end user.' => 'Plugin naam voor de eind gebruiker.',
'reCAPTCHA was not verified.' => 'reCAPTCHA is niet geverifieerd.',
Expand All @@ -133,6 +134,7 @@
'Save and start' => 'Bewaren en uitvoeren',
'Save submissions' => 'Inzendingen opslaan',
'Send copy' => 'Verstuur kopie',
'Send copy to' => 'Verstuur kopie naar',
'Whether to send a copy to the submitter.' => 'Of er een kopie naar de inzender verstuurd moet worden.',
'Secret key' => 'Geheime sleutel',
'Select a page' => 'Selecteer een pagina',
Expand Down Expand Up @@ -164,6 +166,7 @@
'The name of the sender of your notification email.' => 'De naam van de afzender, van uw notificatie e-mail.',
'The reply to email address of your notification email.' => 'Het reageer e-mailadres van uw notificatie e-mail.',
'The subject of your notification email.' => 'Het onderwerp van uw notificatie e-mail.',
'The value of this field should be an email address.' => 'De waarde van dit veld moet een e-mailadres bevatten.',
'This action may only be performed by users with the proper permissions.' => 'Deze actie mag alleen uitgevoerd worden door gebruikers met de juiste rechten.',
'Time check enabled' => 'Tijd controle inschakelen',
'Title format' => 'Titel format',
Expand Down

0 comments on commit 35ecf96

Please sign in to comment.