added new custom logical mails for preorder
This commit is contained in:
@@ -462,6 +462,50 @@
|
||||
</div>
|
||||
|
||||
<?php $i++; endforeach; ?>
|
||||
|
||||
<?php
|
||||
// echo json_encode($campaign->statusnotifcation_mailtemplates);exit;
|
||||
?>
|
||||
<!-- START CUSTOM LOGICAL MAIL TEMPLATES-->
|
||||
<div class="form-group row p-2 mb-0 border-bottom" id="statustemplate-300-custom" style="background-color: #<?=($i%2 == 0) ? "fafafa" : "fff"?>">
|
||||
|
||||
<label class="col-lg-2 col-form-label text-right text-monospace" for="mailtemplates_300-custom">VA - 8 Wochen - keine Bestellung</label>
|
||||
<div class="col-lg-10">
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend text-monospace">
|
||||
<span class="input-group-text" id="basic-addon1">300 Custom</span>
|
||||
</div>
|
||||
<select name="mailtemplates[300-custom][mailtemplate_id]" id="mailtemplate-300-custom" class="form-control select2">
|
||||
<option value=""></option>
|
||||
<?php foreach(MailtemplateModel::search(["is_include" => "0"]) as $template): ?>
|
||||
<!-- TODO: select value if selected-->
|
||||
<option value="<?=$template->id?>" <?=(is_array($campaign->statusnotifcation_mailtemplates) && array_key_exists('300-custom', $campaign->statusnotifcation_mailtemplates) && $campaign->statusnotifcation_mailtemplates['300-custom']->mailtemplate_id == $template->id) ? "selected='selected'" : ""?>><?=$template->name?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend text-monospace">
|
||||
<span class="input-group-text">@</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="test_to" id="test-to-300-custom"
|
||||
value="" placeholder="Test E-Mail (example@test.tld)" />
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-success" type="button" onclick="sendTestStatusEmail('300-custom')"><i class="fas fa-envelope"></i> Testmail versenden</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- END CUSTOM LOGICAL MAIL TEMPLATES -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
|
||||
Reference in New Issue
Block a user