HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/emailMarketing/templates/emailMarketing/manageSMTPHosts.html
{% extends "baseTemplate/index.html" %}
{% load i18n %}
{% block title %}{% trans "Manage SMTP Hosts - CyberPanel" %}{% endblock %}
{% block content %}

{% load static %}
{% get_current_language as LANGUAGE_CODE %}
<!-- Current language: {{ LANGUAGE_CODE }} -->


<div class="container">
<div id="page-title">
   <h2>{% trans "Manage SMTP Hosts" %}</h2>
   <p>{% trans "On this page you can manage STMP Host. (SMTP hosts are used to send emails)" %}</p>
</div>
<div ng-controller="manageSMTPHostsCTRL" class="panel" style="background: var(--bg-primary, white); border-color: var(--border-color, #ddd);">
    <div class="panel-body" style="background: var(--bg-primary, white); color: var(--text-primary, #333);">
        <h3 class="title-hero">
            {% trans "Manage SMTP Hosts" %} <img ng-hide="cyberPanelLoading" src="{% static 'images/loading.gif' %}">
        </h3>
        <div  class="example-box-wrapper">


            <form action="/" class="form-horizontal bordered-row">

            <!---- Create SMTP Host --->

                <div ng-hide="installationDetailsForm" class="form-group">
                    <label class="col-sm-3 control-label">{% trans "SMTP Host" %}</label>
                    <div class="col-sm-6">
                        <input  type="text" class="form-control" ng-model="smtpHost" required>
                    </div>
                </div>

                <div ng-hide="installationDetailsForm" class="form-group">
                    <label class="col-sm-3 control-label">{% trans "Port" %}</label>
                    <div class="col-sm-6">
                        <input  type="text" class="form-control" ng-model="smtpPort" required>
                    </div>
                </div>

                <div ng-hide="installationDetailsForm" class="form-group">
                    <label class="col-sm-3 control-label">{% trans "Username" %}</label>
                    <div class="col-sm-6">
                        <input  type="text" class="form-control" ng-model="smtpUserName" required>
                    </div>
                </div>

                <div ng-hide="installationDetailsForm" class="form-group">
                    <label class="col-sm-3 control-label">{% trans "Password" %}</label>
                    <div class="col-sm-6">
                        <input  type="password" class="form-control" ng-model="smtpPassword" required>
                    </div>
                </div>

                <div ng-hide="installationProgress" class="form-group">
                    <label class="col-sm-3 control-label"></label>
                    <div class="col-sm-4">
                        <button type="button"  ng-click="saveSMTPHost()" class="btn btn-primary btn-lg btn-block">{% trans "Save Host" %}</button>
                    </div>
                </div>

            <!---- Create SMTP Host --->

            <!------ List of records --------------->

                <div ng-hide="currentRecords" class="form-group">

                    <div  class="col-sm-12">

                        <table class="table" style="background: var(--bg-primary, white); color: var(--text-primary, #333); border-color: var(--border-color, #ddd);">
                            <thead>
                            <tr>
                                <th>{% trans "ID" %}</th>
                                <th>{% trans "Owner" %}</th>
                                <th>{% trans "Host" %}</th>
                                <th>{% trans "Port" %}</th>
                                <th>{% trans "Username" %}</th>
                                <th>{% trans "Actions" %}</th>
                                <th></th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="record in records | filter:searchEmails">
                                <td ng-bind="record.id"></td>
                                <td ng-bind="record.owner"></td>
                                <td ng-bind="record.host"></td>
                                <td ng-bind="record.port"></td>
                                <td ng-bind="record.userName"></td>
                                <td >
                                    <button type="button" ng-click="smtpHostOperations('verify', record.id)" class="btn ra-100 btn-purple">{% trans "Verify Host" %}</button>
                                    <button type="button" ng-click="smtpHostOperations('delete', record.id)" class="btn ra-100 btn-purple">{% trans "Delete" %}</button>
                                </td>
                            </tr>
                            </tbody>
                        </table>

                        <div class="row">
                            <div class="col-sm-4 col-sm-offset-8">

                                <nav aria-label="Page navigation">
                                    <ul class="pagination">
                                        <li ng-click="fetchEmails(page)" ng-repeat="page in pagination"><a href="">{$ page $}</a></li>
                                    </ul>
                                </nav>
                            </div>
                        </div>
                    </div>
                </div>

            <!------ List of records --------------->

            </form>




        </div>
    </div>
</div>


</div>


{% endblock %}