mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 16:26:12 +01:00
additional setting for improved wp page
This commit is contained in:
@@ -334,7 +334,7 @@
|
|||||||
<a href="{% url 'WPHome' %}?ID={$ site.id $}" class="btn-tool">
|
<a href="{% url 'WPHome' %}?ID={$ site.id $}" class="btn-tool">
|
||||||
<i class="fas fa-cog"></i> Manage
|
<i class="fas fa-cog"></i> Manage
|
||||||
</a>
|
</a>
|
||||||
<button type="button" class="btn-tool" onclick="DeleteWPNow('{% url 'ListWPSites' %}?DeleteID={$ site.id $}')">
|
<button type="button" class="btn-tool" ng-click="deleteWPSite(site)">
|
||||||
<i class="fas fa-trash"></i> Delete
|
<i class="fas fa-trash"></i> Delete
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -414,6 +414,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
function DeleteWPNow(url) {
|
||||||
|
if (confirm('Are you sure you want to delete this WordPress site? This action cannot be undone.')) {
|
||||||
|
window.location.href = url;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
app.controller('listWordPressSites', function($scope, $http) {
|
app.controller('listWordPressSites', function($scope, $http) {
|
||||||
// Initialize scope variables
|
// Initialize scope variables
|
||||||
$scope.wpSites = {{ wpsite|safe }};
|
$scope.wpSites = {{ wpsite|safe }};
|
||||||
@@ -423,6 +429,10 @@
|
|||||||
$scope.isAdmin = {{ debug_info.is_admin|default:"0"|safe }};
|
$scope.isAdmin = {{ debug_info.is_admin|default:"0"|safe }};
|
||||||
$scope.wpSitesCount = {{ debug_info.wp_sites_count|default:"0"|safe }};
|
$scope.wpSitesCount = {{ debug_info.wp_sites_count|default:"0"|safe }};
|
||||||
|
|
||||||
|
$scope.deleteWPSite = function(site) {
|
||||||
|
DeleteWPNow("{% url 'ListWPSites' %}?DeleteID=" + site.id);
|
||||||
|
};
|
||||||
|
|
||||||
$scope.updateSetting = function(site, setting) {
|
$scope.updateSetting = function(site, setting) {
|
||||||
var data = {
|
var data = {
|
||||||
siteId: site.id,
|
siteId: site.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user