| 1 |
<div class="cell medium-6"> |
| 2 |
<label> |
| 3 |
<?php echo acym_translation('ACYM_NAME'); ?> |
| 4 |
<input name="mail[name]" type="text" class="acy_required_field" value="<?php echo acym_escape($data['mail']->name); ?>" required> |
| 5 |
</label> |
| 6 |
</div> |
| 7 |
<div class="cell medium-6"> |
| 8 |
<label> |
| 9 |
<?php echo acym_translation('ACYM_EMAIL_SUBJECT'); ?> |
| 10 |
<input name="mail[subject]" type="text" value="<?php echo acym_escape($data['mail']->subject); ?>" <?php echo in_array( |
| 11 |
$data['mail']->type, |
| 12 |
[$data['mailClass']::TYPE_WELCOME, $data['mailClass']::TYPE_UNSUBSCRIBE, $data['mailClass']::TYPE_AUTOMATION] |
| 13 |
) ? 'required' : ''; ?>> |
| 14 |
</label> |
| 15 |
</div> |
| 16 |
<div class="cell xlarge-3 medium-6"> |
| 17 |
<label> |
| 18 |
<?php |
| 19 |
echo acym_translation('ACYM_FROM_NAME'); |
| 20 |
$fromName = acym_escape(empty($data['mail']->from_name) ? '' : $data['mail']->from_name); |
| 21 |
?> |
| 22 |
<input name="mail[from_name]" type="text" placeholder="<?php echo acym_escape($this->config->get('from_name')); ?>" value="<?php echo $fromName; ?>"> |
| 23 |
</label> |
| 24 |
</div> |
| 25 |
<div class="cell xlarge-3 medium-6"> |
| 26 |
<label> |
| 27 |
<?php |
| 28 |
echo acym_translation('ACYM_FROM_EMAIL'); |
| 29 |
$fromEmail = acym_escape(empty($data['mail']->from_email) ? '' : $data['mail']->from_email); |
| 30 |
?> |
| 31 |
<input name="mail[from_email]" type="text" placeholder="<?php echo acym_escape($this->config->get('from_email')); ?>" value="<?php echo $fromEmail; ?>"> |
| 32 |
</label> |
| 33 |
</div> |
| 34 |
<div class="cell xlarge-3 medium-6"> |
| 35 |
<label> |
| 36 |
<?php |
| 37 |
echo acym_translation('ACYM_REPLYTO_NAME'); |
| 38 |
$replyToNameValue = acym_escape(empty($data['mail']->reply_to_name) ? '' : $data['mail']->reply_to_name); |
| 39 |
?> |
| 40 |
<input name="mail[reply_to_name]" type="text" placeholder="<?php echo acym_escape($this->config->get('replyto_name')); ?>" value="<?php echo $replyToNameValue ?>"> |
| 41 |
</label> |
| 42 |
</div> |
| 43 |
<div class="cell xlarge-3 medium-6"> |
| 44 |
<label> |
| 45 |
<?php |
| 46 |
echo acym_translation('ACYM_REPLYTO_EMAIL'); |
| 47 |
$replyToEmailValue = acym_escape(empty($data['mail']->reply_to_email) ? '' : $data['mail']->reply_to_email); |
| 48 |
?> |
| 49 |
<input name="mail[reply_to_email]" type="text" placeholder="<?php echo acym_escape($this->config->get('replyto_email')); ?>" value="<?php echo $replyToEmailValue; ?>"> |
| 50 |
</label> |
| 51 |
</div> |
| 52 |
<div class="cell large-6 grid-x acym_vcenter acym__mail__edit__followup"> |
| 53 |
<?php |
| 54 |
$inputDelay = '<input type="number" class="cell large-1 medium-3 margin-left-1" min="0" name="followup[delay]" value="'.(empty($data['mail']->delay) ? 0 : $data['mail']->delay).'">'; |
| 55 |
$selectDelayUnit = '<span class="cell large-3 medium-5 margin-left-1 margin-right-1">'.acym_select( |
| 56 |
$data['delay_unit'], |
| 57 |
'followup[delay_unit]', |
| 58 |
empty($data['mail']->delay_unit) ? $data['default_delay_unit'] : $data['mail']->delay_unit, |
| 59 |
['class' => 'acym__select'] |
| 60 |
).'</span>'; |
| 61 |
echo acym_translationSprintf('ACYM_SEND_IT_X_X_AFTER_TRIGGER', $inputDelay, $selectDelayUnit); |
| 62 |
?> |
| 63 |
<input type="hidden" name="followup[id]" value="<?php echo empty($data['followup_id']) ? 0 : $data['followup_id']; ?>"> |
| 64 |
</div> |
| 65 |
|
| 66 |
<?php if (!empty($data['langChoice'])) { ?> |
| 67 |
<div class="cell large-6 xlarge-3"> |
| 68 |
<label class="cell"> |
| 69 |
<?php |
| 70 |
echo acym_translation('ACYM_EMAIL_LANGUAGE'); |
| 71 |
echo acym_info('ACYM_EMAIL_LANGUAGE_DESC'); |
| 72 |
echo $data['langChoice']; |
| 73 |
?> |
| 74 |
</label> |
| 75 |
</div> |
| 76 |
<?php } ?> |
| 77 |
|