mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-17 02:24:10 +02:00
Email Templates Plugin - Updates #2
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
<div class="pull-left">
|
||||
<h2><?php echo __('Emails', 'emails'); ?></h2>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<br>
|
||||
<?php
|
||||
echo (
|
||||
Html::anchor(__('Edit Layout', 'emails'), 'index.php?id=emails&action=edit_email_template&filename=layout', array('title' => __('Edit Layout', 'emails'), 'class' => 'btn btn-primary'))
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
@@ -16,16 +24,18 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (count($email_templates_list) != 0) foreach ($email_templates_list as $email_template) { ?>
|
||||
<tr>
|
||||
<td><?php echo basename($email_template, '.email.php'); ?></td>
|
||||
<td>
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<?php echo Html::anchor(__('Edit', 'emails'), 'index.php?id=emails&action=edit_email_template&filename='.basename($email_template, '.email.php'), array('class' => 'btn btn-primary')); ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($email_template != 'layout.email.php') { ?>
|
||||
<tr>
|
||||
<td><?php echo basename($email_template, '.email.php'); ?></td>
|
||||
<td>
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<?php echo Html::anchor(__('Edit', 'emails'), 'index.php?id=emails&action=edit_email_template&filename='.basename($email_template, '.email.php'), array('class' => 'btn btn-primary')); ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user