Changed admin page

This commit is contained in:
Ozzieisaacs 2020-12-11 20:54:24 +01:00
parent 76c3ade394
commit b8336c03c3
4 changed files with 28 additions and 20 deletions

View File

@ -318,6 +318,7 @@ input.pill:not(:checked) + label .glyphicon { display: none; }
.editable-submit { margin-bottom: 0px !important; } .editable-submit { margin-bottom: 0px !important; }
.filterheader { margin-bottom: 20px; } .filterheader { margin-bottom: 20px; }
.errorlink { margin-top: 20px; } .errorlink { margin-top: 20px; }
.emailconfig { margin-top: 10px; }
.modal-body .comments { .modal-body .comments {
max-height: 300px; max-height: 300px;

View File

@ -51,23 +51,31 @@
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<h2>{{_('E-mail Server Settings')}}</h2> <h2>{{_('E-mail Server Settings')}}</h2>
<table class="table table-striped" id="table_email"> {% if config.get_mail_server_configured() %}
<tr> <div class="col-xs-12 col-sm-12">
<th>{{_('SMTP Hostname')}}</th> <div class="row">
<th>{{_('SMTP Port')}}</th> <div class="col-xs-6 col-sm-3">{{_('SMTP Hostname')}}</div>
<th>{{_('Encryption')}}</th> <div class="col-xs-6 col-sm-3">{{email.mail_server}}</div>
<th>{{_('SMTP Login')}}</th> </div>
<th class="hidden-xs">{{_('From E-mail')}}</th> <div class="row">
</tr> <div class="col-xs-6 col-sm-3">{{_('SMTP Port')}}</div>
<tr> <div class="col-xs-6 col-sm-3">{{email.mail_port}}</div>
<td>{{email.mail_server}}</td> </div>
<td>{{email.mail_port}}</td> <div class="row">
<td>{% if email.mail_use_ssl %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td> <div class="col-xs-6 col-sm-3">{{_('Encryption')}}</div>
<td>{{email.mail_login}}</td> <div class="col-xs-6 col-sm-3">{{ display_bool_setting(email.mail_use_ssl) }}</div>
<td class="hidden-xs">{{email.mail_from}}</td> </div>
</tr> <div class="row">
</table> <div class="col-xs-6 col-sm-3">{{_('SMTP Login')}}</div>
<div class="btn btn-default" id="admin_edit_email"><a href="{{url_for('admin.edit_mailsettings')}}">{{_('Edit E-mail Server Settings')}}</a></div> <div class="col-xs-6 col-sm-3">{{email.mail_login}}</div>
</div>
<div class="row">
<div class="col-xs-6 col-sm-3">{{_('From E-mail')}}</div>
<div class="col-xs-6 col-sm-3">{{email.mail_from}}</div>
</div>
</div>
{% endif %}
<div class="btn btn-default emailconfig"><a id="basic_config" href="{{url_for('admin.configuration')}}">{{_('Edit Basic Configuration')}}</a></div>
</div> </div>
</div> </div>
@ -140,7 +148,6 @@
<div class="btn btn-default" id="restart_database" data-toggle="modal" data-target="#StatusDialog">{{_('Reconnect Calibre Database')}}</div> <div class="btn btn-default" id="restart_database" data-toggle="modal" data-target="#StatusDialog">{{_('Reconnect Calibre Database')}}</div>
<div class="btn btn-default" id="admin_restart" data-toggle="modal" data-target="#RestartDialog">{{_('Restart')}}</div> <div class="btn btn-default" id="admin_restart" data-toggle="modal" data-target="#RestartDialog">{{_('Restart')}}</div>
<div class="btn btn-default" id="admin_stop" data-toggle="modal" data-target="#ShutdownDialog">{{_('Shutdown')}}</div> <div class="btn btn-default" id="admin_stop" data-toggle="modal" data-target="#ShutdownDialog">{{_('Shutdown')}}</div>
</div> </div>
<div class="row"> <div class="row">

View File

@ -26,7 +26,7 @@
</tbody> </tbody>
</table> </table>
{% if g.user.role_admin() %} {% if g.user.role_admin() %}
<h3>{{_('Linked Libraries')}}</h3> <h3>{{_('System Statistics')}}</h3>
<table id="libs" class="table"> <table id="libs" class="table">
<thead> <thead>
<tr> <tr>

View File

@ -1251,7 +1251,7 @@ msgstr "Bücher pro Seite"
#: cps/templates/admin.html:104 #: cps/templates/admin.html:104
msgid "Uploads" msgid "Uploads"
msgstr "Lade hoch" msgstr "Hochladen"
#: cps/templates/admin.html:108 #: cps/templates/admin.html:108
msgid "Anonymous Browsing" msgid "Anonymous Browsing"