diff --git a/app/modules/hosting/templates/hosting/admin/site-new.html b/app/modules/hosting/templates/hosting/admin/site-new.html index 2e2446dd..affc62c9 100644 --- a/app/modules/hosting/templates/hosting/admin/site-new.html +++ b/app/modules/hosting/templates/hosting/admin/site-new.html @@ -44,18 +44,25 @@ class="w-full px-3 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-lg focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray dark:bg-gray-700 dark:text-gray-300"> - +
- -
- - +
+
+ + +
+
+ + +
+

At least one is required. Prospect ID auto-creates a merchant from prospect data.

@@ -66,7 +73,7 @@ Cancel @@ -144,6 +149,16 @@ function hostingSitesList() { this.loading = false; } }, + async deleteSite(site) { + if (!confirm('Delete "' + site.business_name + '"? This will also delete the associated store.')) return; + try { + await apiClient.delete('/admin/hosting/sites/' + site.id); + Utils.showToast('Site deleted', 'success'); + await this.loadSites(); + } catch (e) { + Utils.showToast('Failed: ' + e.message, 'error'); + } + }, get startIndex() { if (this.pagination.total === 0) return 0; return (this.pagination.page - 1) * this.pagination.per_page + 1;