|
| 1 | +{% extends "baseTemplate/index.html" %} |
| 2 | +{% load i18n %} |
| 3 | +{% block title %}{% trans "Manage Applications - CyberPanel" %}{% endblock %} |
| 4 | +{% block content %} |
| 5 | + |
| 6 | + {% load static %} |
| 7 | + {% get_current_language as LANGUAGE_CODE %} |
| 8 | + <!-- Current language: {{ LANGUAGE_CODE }} --> |
| 9 | + |
| 10 | + |
| 11 | + <div class="container"> |
| 12 | + <div id="page-title"> |
| 13 | + <h2>{% trans "Manage Applications" %}</h2> |
| 14 | + <p>{% trans "Install/Remove Applications from your server." %}</p> |
| 15 | + </div> |
| 16 | + <div ng-controller="manageApplications" class="panel"> |
| 17 | + <div class="panel-body"> |
| 18 | + <h3 class="content-box-header"> |
| 19 | + {% trans "Applications" %} <img ng-hide="cyberpanelLoading" src="{% static 'images/loading.gif' %}"> |
| 20 | + </h3> |
| 21 | + <div class="example-box-wrapper"> |
| 22 | + |
| 23 | + <!------ List of records ---------------> |
| 24 | + |
| 25 | + <div class="form-group"> |
| 26 | + |
| 27 | + <div class="col-sm-12"> |
| 28 | + |
| 29 | + <table class="table"> |
| 30 | + <thead> |
| 31 | + <tr> |
| 32 | + <th>{% trans "Username" %}</th> |
| 33 | + <th>{% trans "Websites Limit" %}</th> |
| 34 | + <th>{% trans "Disk Usage" %}</th> |
| 35 | + <th>{% trans "ACL" %}</th> |
| 36 | + <th>{% trans "Owner" %}</th> |
| 37 | + <th>{% trans "State" %}</th> |
| 38 | + <th>{% trans "Actions" %}</th> |
| 39 | + </tr> |
| 40 | + </thead> |
| 41 | + <tbody> |
| 42 | + <tr ng-repeat="record in records track by $index"> |
| 43 | + <td ng-bind="record.name"></td> |
| 44 | + <td ng-bind="record.websites"></td> |
| 45 | + <td ng-bind="record.diskUsage"></td> |
| 46 | + <td ng-bind="record.acl"></td> |
| 47 | + <td ng-bind="record.owner"></td> |
| 48 | + <td ng-bind="record.state"></td> |
| 49 | + <td> |
| 50 | + <a ng-show="record.state=='ACTIVE'" |
| 51 | + class="btn btn-border btn-alt border-red btn-link font-red" href="#" |
| 52 | + ng-click="controlUserState(record.name, 'SUSPEND')" title=""><span>{% trans 'Suspend' %}</span></a> |
| 53 | + <a ng-show="record.state=='SUSPENDED'" |
| 54 | + class="btn btn-border btn-alt border-green btn-link font-green" href="#" |
| 55 | + ng-click="controlUserState(record.name, 'ACTIVATE')" title=""><span>{% trans 'Activate' %}</span></a> |
| 56 | + <a data-toggle="modal" data-target="#settings" |
| 57 | + ng-click="editInitial(record.name)" |
| 58 | + class="btn btn-border btn-alt border-purple btn-link font-purple" href="#" |
| 59 | + title=""><span>{% trans 'Edit' %}</span></a> |
| 60 | + <a ng-click="deleteUserFinal(record.name)" |
| 61 | + class="btn btn-border btn-alt border-red btn-link font-red" href="#" |
| 62 | + title=""><span>{% trans 'Delete' %}</span></a> |
| 63 | + |
| 64 | + <!--- Modal ---> |
| 65 | + <div id="settings" class="modal fade" role="dialog"> |
| 66 | + <div class="modal-dialog"> |
| 67 | + |
| 68 | + <!-- Modal content--> |
| 69 | + <div class="modal-content"> |
| 70 | + <div class="modal-header"> |
| 71 | + <button type="button" class="close" data-dismiss="modal">× |
| 72 | + </button> |
| 73 | + <h4 class="modal-title">Edit User |
| 74 | + <img ng-hide="cyberpanelLoading" |
| 75 | + src="{% static 'images/loading.gif' %}"> |
| 76 | + </h4> |
| 77 | + </div> |
| 78 | + <div class="modal-body"> |
| 79 | + |
| 80 | + <form name="containerSettingsForm" action="/" |
| 81 | + class="form-horizontal"> |
| 82 | + <div ng-hide="installationDetailsForm" class="form-group"> |
| 83 | + <label class="col-sm-3 control-label">{% trans "Name" %}</label> |
| 84 | + <div class="col-sm-6"> |
| 85 | + <input name="name" type="text" class="form-control" |
| 86 | + ng-model="name" readonly> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + |
| 90 | + <hr> |
| 91 | + <div class="form-group"> |
| 92 | + <label class="col-sm-3 control-label">{% trans "New Owner" %} </label> |
| 93 | + <div class="col-sm-6"> |
| 94 | + <select ng-change="saveResellerChanges()" |
| 95 | + ng-model="$parent.newOwner" |
| 96 | + class="form-control"> |
| 97 | + {% for items in resellerPrivUsers %} |
| 98 | + <option>{{ items }}</option> |
| 99 | + {% endfor %} |
| 100 | + </select> |
| 101 | + </div> |
| 102 | + </div> |
| 103 | + |
| 104 | + <hr> |
| 105 | + |
| 106 | + <div class="form-group"> |
| 107 | + <label class="col-sm-3 control-label">{% trans "Select ACL" %} </label> |
| 108 | + <div class="col-sm-6"> |
| 109 | + <select ng-change="changeACLFunc()" |
| 110 | + ng-model="$parent.selectedACL" |
| 111 | + class="form-control"> |
| 112 | + {% for items in aclNames %} |
| 113 | + <option>{{ items }}</option> |
| 114 | + {% endfor %} |
| 115 | + </select> |
| 116 | + </div> |
| 117 | + </div> |
| 118 | + |
| 119 | + |
| 120 | + </form> |
| 121 | + |
| 122 | + </div> |
| 123 | + </div> |
| 124 | + </div> |
| 125 | + </div> |
| 126 | + <!--- Modal End---> |
| 127 | + </td> |
| 128 | + </tr> |
| 129 | + </tbody> |
| 130 | + </table> |
| 131 | + </div> |
| 132 | + </div> |
| 133 | + |
| 134 | + <!------ List of records ---------------> |
| 135 | + |
| 136 | + </div> |
| 137 | + </div> |
| 138 | + </div> |
| 139 | + |
| 140 | + |
| 141 | + </div> |
| 142 | + |
| 143 | + |
| 144 | +{% endblock %} |
0 commit comments