mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00

* Fix alert class name * feature: csrf protection * Cosmetics * Fix token generate * Admin Panel: changelogs csrf protection * news/id route * Refactor admin newses + add csrf * Use admin.links instead * Admin panel: Pages csrf * Menus: better csrf + add success message on reset colors * Plugins csrf * Move definitions * add info function, same as note($message) * Update mailer.php * Fix new page/news links * clear_cache & maintenance csrf * Formatting * Fix news type * Fix changelog link * Add new changelog link * More info to confirm dialog * This is always true
35 lines
1.3 KiB
Twig
35 lines
1.3 KiB
Twig
{{ include('tinymce.html.twig') }}
|
|
<script type="text/javascript">
|
|
tinymceInit();
|
|
</script>
|
|
|
|
<div align="center" class="text-center"><p class="note">Sending mails may take some time if there are many users in db.</p></div>
|
|
<div class="card card-info card-outline">
|
|
<div class="card-header">
|
|
<h5 class="m-0">Mailer</h5>
|
|
</div>
|
|
<form id="form" method="post">
|
|
{{ csrf() }}
|
|
<div class="card-body">
|
|
<div class="form-group row">
|
|
<label for="mail_to">To: (enter email, or leave empty to all)</label>
|
|
<input class="form-control" type="text" id="mail_to" name="mail_to" value="{{ mail_to }}"/>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="mail_subject">Subject:</label>
|
|
<input class="form-control" type="text" id="mail_subject" name="mail_subject" value="{{ mail_subject }}" maxlength="30"/>
|
|
</div>
|
|
|
|
<label for="editor" class="control-label">Content:</label>
|
|
<div class="form-group row">
|
|
<textarea id="editor" name="mail_content" style="width: 100%" class="tinymce">{{ mail_content }}</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<button type="submit" name="submit" class="btn btn-info"><i class="fas fa-share"></i> Send</button>
|
|
<a href="{{ constant('ADMIN_URL') }}?p=mailer" class="btn btn-danger float-right">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|