Merge branch 'fronkdev' into 'master'
Added Mailtemplate::renderBody() function See merge request fronk/thetool!631
This commit is contained in:
@@ -41,6 +41,15 @@
|
||||
<input type="text" class="form-control" name="filter[subject]" id="filter_betreff" value="<?=$filter['subject']?>" />
|
||||
</div>
|
||||
|
||||
<div class="col-1">
|
||||
<label class="form-label" for="filter_is_include">Betreff</label>
|
||||
<select class="form-control" name="filter[is_include]" id="filter_is_include">
|
||||
<option></option>
|
||||
<option value="0" <?=(array_key_exists("is_include", $filter) && $filter["is_include"] == 0) ? "selected='selected'" : ""?>>Dokumente</option>
|
||||
<option value="1" <?=(array_key_exists("is_include", $filter) && $filter["is_include"] == 1) ? "selected='selected'" : ""?>>Templates</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row mt-2">
|
||||
@@ -66,6 +75,7 @@
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<tr>
|
||||
<th>Typ</th>
|
||||
<th>Code</th>
|
||||
<th>Name</th>
|
||||
<th>Beschreibung</th>
|
||||
@@ -77,13 +87,14 @@
|
||||
</tr>
|
||||
<?php foreach($templates as $template): ?>
|
||||
<tr>
|
||||
<td title="<?=($template->is_include) ? "Template" : "Dokument"?>"><i class="far fa-fw <?=($template->is_include) ? "fa-grip-lines text-info" : "fa-file-lines text-primary"?>"></i></td>
|
||||
<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><?=date("d.m.Y H:i",$template->create)?> (<?=$template->editor->name?>)</td>
|
||||
<td><?=date("d.m.Y H:i",$template->edit)?> (<?=$template->creator->name?>)</td>
|
||||
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
||||
<a href="<?=self::getUrl("Mailtemplate", "edit", ["id" => $template->id])?>"><i class="far fa-edit" title="Emailtemplate bearbeiten"></i></a>
|
||||
<a href="<?=self::getUrl("Mailtemplate", "delete", ["id" => $template->id])?>" class="text-danger" onclick="if(!confirm('Emailtemplate wirklich löschen?')) return false;" title="Emailtemplate Löschen"><i class="fas fa-trash"></i></a>
|
||||
|
||||
Reference in New Issue
Block a user