2015-08-02 21:23:24 +02:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="discover">
|
|
|
|
<h1>{{title}}</h1>
|
|
|
|
<form role="form" method="POST">
|
|
|
|
<div class="form-group">
|
2016-11-09 19:24:33 +01:00
|
|
|
<label for="mail_server">{{_('SMTP hostname')}}</label>
|
2015-08-02 21:23:24 +02:00
|
|
|
<input type="text" class="form-control" name="mail_server" id="mail_server" value="{{content.mail_server}}">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-11-09 19:24:33 +01:00
|
|
|
<label for="mail_port">{{_('SMTP port (usually 25 for plain SMTP and 587 for SSL)')}}</label>
|
2015-08-02 21:23:24 +02:00
|
|
|
<input type="text" class="form-control" name="mail_port" id="mail_port" value="{{content.mail_port}}">
|
|
|
|
</div>
|
2016-03-27 23:36:51 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<input type="checkbox" name="mail_use_ssl" id="mail_use_ssl" {% if content.mail_use_ssl %}checked{% endif %}>
|
2017-01-07 07:19:31 +01:00
|
|
|
<label for="mail_use_ssl">{{_('Server uses SSL (StartTLS)')}}</label>
|
2016-03-27 23:36:51 +02:00
|
|
|
</div>
|
2015-08-02 21:23:24 +02:00
|
|
|
<div class="form-group">
|
2016-11-09 19:24:33 +01:00
|
|
|
<label for="mail_login">{{_('SMTP login')}}</label>
|
2015-08-02 21:23:24 +02:00
|
|
|
<input type="text" class="form-control" name="mail_login" id="mail_login" value="{{content.mail_login}}">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-11-09 19:24:33 +01:00
|
|
|
<label for="mail_password">{{_('SMTP password')}}</label>
|
2015-08-02 21:23:24 +02:00
|
|
|
<input type="password" class="form-control" name="mail_password" id="mail_password" value="{{content.mail_password}}">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-11-09 19:24:33 +01:00
|
|
|
<label for="mail_from">{{_('From e-mail')}}</label>
|
2015-08-02 21:23:24 +02:00
|
|
|
<input type="text" class="form-control" name="mail_from" id="mail_from" value="{{content.mail_from}}">
|
|
|
|
</div>
|
2016-12-23 09:53:39 +01:00
|
|
|
<button type="submit" name="submit" value="submit" class="btn btn-default">{{_('Save settings')}}</button>
|
|
|
|
<button type="submit" name="test" value="test" class="btn btn-default">{{_('Save settings and send Test E-Mail')}}</button>
|
2017-01-02 18:52:33 +01:00
|
|
|
<a href="{{ url_for('admin') }}" class="btn btn-default">{{_('Back')}}</a>
|
2015-08-02 21:23:24 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|