mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
6322e03996
* 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
25 lines
481 B
HTML
25 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 %}
|