Added Mailtemplate

This commit is contained in:
Frank Schubert
2024-08-29 23:22:49 +02:00
parent 42d2541f6a
commit ebd5d6182a
9 changed files with 527 additions and 41 deletions
+12 -1
View File
@@ -31,6 +31,11 @@
<input type="text" class="form-control" name="filter[name]" id="filter_name" value="<?=$filter['name']?>" />
</div>
<div class="col-1">
<label class="form-label" for="filter_description">Beschreibung</label>
<input type="text" class="form-control" name="filter[description]" id="filter_description" value="<?=$filter['description']?>" />
</div>
<div class="col-1">
<label class="form-label" for="filter_subject">Betreff</label>
<input type="text" class="form-control" name="filter[subject]" id="filter_betreff" value="<?=$filter['subject']?>" />
@@ -41,7 +46,7 @@
<div class="row mt-2">
<div class="col">
<button type="submit" class="btn btn-primary">Filter anwenden</button>
<a class="btn btn-secondary" href="<?=self::getUrl("Mailtemplate")?>">Filter zurücksetzen</a>
<a class="btn btn-secondary" href="<?=self::getUrl("Mailtemplate")?>?resetFilter=1">Filter zurücksetzen</a>
</div>
</div>
</form>
@@ -61,16 +66,22 @@
<table class="table table-striped table-hover">
<tr>
<th>Code</th>
<th>Name</th>
<th>Beschreibung</th>
<th>Betreff</th>
<th>Anhänge</th>
<th>Erstellt</th>
<th>Bearbeitet</th>
<th></th>
</tr>
<?php foreach($templates as $template): ?>
<tr>
<td class="text-monospace text-monospace-valign-fix text-pink " style="max-width: 15vh"><div><?=$template->code?></div></td>
<td><?=$template->name?></td>
<td><?=$template->description?></td>
<td><?=$template->subject?></td>
<td><?=count($template->files)?></td>
<td><?=date("d.m.Y H:i",$template->edit)?> (<?=$template->editor->name?>)</td>
<td><?=date("d.m.Y H:i",$template->create)?> (<?=$template->creator->name?>)</td>
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">