File manager - Edit - /usr/local/CyberCP/ftp/templates/ftp/listFTPAccounts.html
Back
{% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{% trans "List FTP Accounts - 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 "List FTP Accounts" %}</h2> <p>{% trans "List FTP Accounts or change their passwords." %}</p> </div> <div ng-controller="listFTPAccounts" class="panel"> <div class="panel-body"> <h3 class="title-hero"> {% trans "List FTP Accounts" %} <img ng-hide="ftpLoading" src="{% static 'images/loading.gif' %}"> </h3> <div class="example-box-wrapper"> {% if not status %} <div class="col-md-12 text-center" style="margin-bottom: 2%;"> <h3>{% trans "PureFTPD is disabled." %} <a href="{% url 'managePureFtpd' %}"> <button class="btn btn-alt btn-hover btn-blue-alt"> <span>{% trans "Enable Now" %}</span> <i class="glyph-icon icon-arrow-right"></i> </button> </a></h3> </div> {% else %} <form action="/" class="form-horizontal bordered-row"> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "Select Domain" %}</label> <div class="col-sm-6"> <select ng-change="fetchFTPAccounts()" ng-model="selectedDomain" class="form-control"> {% for items in websiteList %} <option>{{ items }}</option> {% endfor %} </select> </div> </div> <div ng-hide="notificationsBox" class="form-group"> <label class="col-sm-3 control-label"></label> <div class="col-sm-6"> <div ng-hide="recordsFetched" class="alert alert-success"> <p>{% trans "Records successfully fetched for" %} <strong>{$ domainFeteched $}</strong></p> </div> <div ng-hide="passwordChanged" class="alert alert-success"> <p>{% trans "Password changed for" %} <strong>{$ ftpUsername $}</strong></p> </div> <div ng-hide="canNotChangePassword" class="alert alert-danger"> <p>{% trans "Cannot change password for <strong>{$ ftpUsername $}</strong>. Error message:" %} {$ errorMessage $}</p> </div> <div ng-hide="couldNotConnect" class="alert alert-danger"> <p>{% trans "Could Not Connect to server. Please refresh this page" %}</p> </div> </div> </div> <div ng-hide="changePasswordBox" class="form-group"> <label class="col-sm-3 control-label">{$ ftpUsername $}</label> <div class="col-sm-6"> <input name="dom" type="password" class="form-control" ng-model="ftpPassword" required> </div> <div class="col-sm-3"> <button type="button" ng-click="generatePassword()" class="btn btn-primary">{% trans "Generate" %}</button> </div> <label ng-hide="generatedPasswordView" style="margin-top: 1%" class="col-sm-3 control-label">{% trans "Generated Password" %}</label> <div ng-hide="generatedPasswordView" style="margin-top: 1%" class="col-sm-6"> <input name="dom" type="text" class="form-control" ng-model="ftpPassword" required> </div> <div ng-hide="generatedPasswordView" style="margin-top: 1%" class="col-sm-3"> <button type="button" ng-click="usePassword()" class="btn btn-primary">{% trans "Use" %}</button> </div> <div style="margin-top: 1%" class="col-sm-6 col-md-offset-3"> <button type="button" ng-click="changePasswordBtn()" class="btn btn-primary btn-lg btn-block">{% trans "Change Password" %}</button> </div> </div> <!------ List of records ---------------> <div ng-hide="ftpAccounts" class="form-group"> <div class="col-sm-12"> <table class="table"> <thead> <tr> <th>{% trans "ID" %}</th> <th>{% trans "User Name" %}</th> <th>{% trans "Directory" %}</th> <th>{% trans "Size" %}</th> <th>{% trans "Password" %}</th> </tr> </thead> <tbody> <tr ng-repeat="record in records track by $index"> <td ng-bind="record.id"></td> <td ng-bind="record.user"></td> <td><i class="glyph-icon tooltip-button icon-home" title=".icon-home"></i> {$ record.dir $} </td> <td ng-bind="record.quotasize"></td> <td> <button type="button" ng-click="changePassword(record.user)" class="btn ra-100 btn-purple">{% trans "Change" %}</button> </td> </tr> </tbody> </table> </div> </div> <!------ List of records ---------------> </form> {% endif %} </div> </div> </div> </div> {% endblock %}
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings