Add success and duplicate message

This commit is contained in:
sqozz
2017-12-29 01:47:39 +01:00
parent 2256e6f2de
commit 09be31db82
2 changed files with 19 additions and 9 deletions

View File

@ -17,6 +17,14 @@ vim: ts=2 noexpandtab
</div>
{% endfor %}
{% endif %}
{% if messages %}
{% for message in messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<span class="message">{{ message|safe }}</span>
</div>
{% endfor %}
{% endif %}
<form class="form-horizontal" action="/create" method="post" enctype="multipart/form-data" onsubmit="return validateForm()">
<div class="form-group">
<label for="inputTorrentFile" class="col-sm-3 control-label">{{ getLocalString(language, "torrent_file") }}</label>