General tweaks to email notifications
This commit is contained in:
@@ -25,7 +25,11 @@ def send_email(subject, sender, recipients, text_body, html_body):
|
||||
|
||||
def send_email_notification_new_submission(application):
|
||||
board_members = get_board_members_emails()
|
||||
send_email("[BFCT] New BFCT application submitted",
|
||||
if application.user.first_name:
|
||||
applicant = application.user.first_name + " " + application.user.last_name
|
||||
else:
|
||||
applicant = application.user.email
|
||||
send_email("[BFCT] " + applicant + " applied for BFCT",
|
||||
'bfct-robot@blender.org',
|
||||
board_members,
|
||||
render_template("email/new_submission.txt",
|
||||
|
@@ -3,7 +3,12 @@
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>{{application.user.first_name}} {{application.user.last_name}}</h1>
|
||||
{% if application.user.first_name %}
|
||||
<h1>{{application.user.first_name}} {{application.user.last_name}}</h1>
|
||||
{% else %}
|
||||
<h1>{{application.user.email}}</h1>
|
||||
{% endif %}
|
||||
|
||||
<h4><i class="fa fa-map-marker"></i> {{application.city_country}}</h4>
|
||||
<p>{{application.bio_message|safe}}</p>
|
||||
<div class="box">
|
||||
|
@@ -1,4 +1,13 @@
|
||||
<p>Hello there fellow BFCT member!</p>
|
||||
<p>A new BFCT application awaits your review! Check it out at the <a href="http://www.blender.org/certification{{url_for('applications.view', id=application.id)}}">BFCT portal</a>.</p>
|
||||
<p>Hello there fellow BFCT board member!</p>
|
||||
|
||||
<p>
|
||||
{% if application.user.first_name %}
|
||||
{{application.user.first_name }} {{ application.user.last_name }}
|
||||
{% else %}
|
||||
{{application.user.email}}
|
||||
{% endif %}
|
||||
just applied for BFCT!
|
||||
</p>
|
||||
<p>Check out her/his submission at the <a href="http://www.blender.org/{{url_for('applications.view', id=application.id)}}">BFCT portal</a>.</p>
|
||||
|
||||
<p>The BFCT robot</p>
|
||||
|
@@ -1,4 +1,11 @@
|
||||
Hello there fellow board member!
|
||||
A new BFCT application awaits your review! Check it out at http://www.blender.org/certification{{url_for('applications.view', id=application.id)}}.
|
||||
|
||||
{% if application.user.first_name %}
|
||||
{{application.user.first_name }} {{ application.user.last_name }} just applied for BFCT!
|
||||
{% else %}
|
||||
{{application.user.email}} just applied for BFCT!
|
||||
{% endif %}
|
||||
|
||||
Check out her/his submission at http://www.blender.org/{{url_for('applications.view', id=application.id)}}.
|
||||
|
||||
The BFCT robot
|
||||
|
Reference in New Issue
Block a user