app-MAIL-temp/templates/admin/model/newsletter-edit.html
Son Nguyen Kim 6322e03996
admin can manage newsletter and test sending it (#1177)
* admin can manage newsletter and test sending it

* add comments

* comment

* doc

* not userID not specified, send the newsletter to current user

* automatically match textarea height to content when editing newsletter

* increase text height and limit img size to 100% in email template

* admin can send newsletter to a specific address
2022-07-22 11:24:53 +02:00

26 lines
481 B
HTML

{#
Automatically increase textarea height to match content to facilitate editing
#}
{% extends 'admin/model/edit.html' %}
{% block head %}
{{ super() }}
<style>
body{
max-width: 80%;
margin: auto;
}
</style>
{% endblock %}
{% block tail %}
{{ super() }}
<script type="application/javascript">
$('textarea').each(function (index) {
this.style.height = "";
this.style.height = this.scrollHeight + "px";
});
</script>
{% endblock %}