mirror of https://github.com/CIRCL/lookyloo
fix: Comment in send mail form
parent
754ae9354d
commit
6781d5f02e
|
@ -235,7 +235,7 @@ def cache_tree(tree_uuid):
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
|
||||||
|
|
||||||
@app.route('/tree/<string:tree_uuid>/send_mail', methods=['POST'])
|
@app.route('/tree/<string:tree_uuid>/send_mail', methods=['POST', 'GET'])
|
||||||
def send_mail(tree_uuid):
|
def send_mail(tree_uuid):
|
||||||
comment = request.form.get('comment') if request.form.get('comment') else ''
|
comment = request.form.get('comment') if request.form.get('comment') else ''
|
||||||
lookyloo.send_mail(tree_uuid, comment)
|
lookyloo.send_mail(tree_uuid, comment)
|
||||||
|
|
|
@ -189,7 +189,7 @@
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="comment">Please write a comment (optional)</label>
|
<label for="comment">Please write a comment (optional)</label>
|
||||||
<textarea class="form-control" id="comment" rows="3"></textarea>
|
<textarea class="form-control" name="comment" id=comment rows="3"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|
Loading…
Reference in New Issue