1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 04:07:59 +02:00

Email Templates Plugin - Updates #2

This commit is contained in:
Sergey Romanenko
2014-01-21 14:37:32 +02:00
parent 2afaba814b
commit aaba7cef27

View File

@@ -0,0 +1,32 @@
<h2><?php echo __('Edit Email Template', 'emails'); ?></h2>
<br>
<?php
if ($email_template_content !== null) {
echo (Form::open());
echo (Form::hidden('csrf', Security::token()));
echo (Form::hidden('email_template_name', Request::get('filename')));
?>
<?php echo (Form::label('name', __('Name', 'emails'))); ?>
<div class="input-group">
<?php echo (Form::input('name', Request::get('filename'), array('disabled', 'class' => 'form-control'))); ?><span class="input-group-addon">.emails.php</span>
</div>
<br>
<?php
echo (
Form::label('email_template_content', __('Email template content', 'emails')).
Form::textarea('email_template_content', Html::toText($email_template_content), array('style' => 'width:100%;height:400px;', 'class' => 'source-editor form-control'))
);
echo (
Html::br().
Form::submit('edit_email_template_and_exit', __('Save and Exit', 'emails'), array('class' => 'btn btn-primary')).Html::nbsp(2).
Form::submit('edit_email_template', __('Save', 'emails'), array('class' => 'btn btn-primary')). Html::nbsp(2).
Html::anchor(__('Cancel', 'blocks'), 'index.php?id=emails', array('title' => __('Cancel', 'emails'), 'class' => 'btn btn-default')).
Form::close()
);
} else {
echo '<div class="message-error">'.__('This email template does not exist', 'emails').'</div>';
}
?>