diff --git a/src/Orchard.Web/Modules/Orchard.MultiTenancy/Scripts/multi-tenancy.admin.js b/src/Orchard.Web/Modules/Orchard.MultiTenancy/Scripts/multi-tenancy.admin.js
index 634e45af5..25faa5b07 100644
--- a/src/Orchard.Web/Modules/Orchard.MultiTenancy/Scripts/multi-tenancy.admin.js
+++ b/src/Orchard.Web/Modules/Orchard.MultiTenancy/Scripts/multi-tenancy.admin.js
@@ -14,5 +14,7 @@
$allCheckboxes.prop("checked", false);
}
});
+
+ $('input[name=DataProvider]:checked').click();
});
})(jQuery);
\ No newline at end of file
diff --git a/src/Orchard.Web/Modules/Orchard.MultiTenancy/Views/Admin/Add.cshtml b/src/Orchard.Web/Modules/Orchard.MultiTenancy/Views/Admin/Add.cshtml
index 59411a967..6568db858 100644
--- a/src/Orchard.Web/Modules/Orchard.MultiTenancy/Views/Admin/Add.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.MultiTenancy/Views/Admin/Add.cshtml
@@ -4,18 +4,19 @@
Layout.Title = T("Add New Tenant").ToString();
Script.Require("jQuery").AtFoot();
- Script.Include(Url.Content("~/Themes/TheAdmin/Scripts/admin.js")).AtFoot();
+ Script.Require("ShapesBase").AtFoot();
+ Script.Include(Url.Content("~/Themes/TheAdmin/Scripts/admin.js")).AtFoot();
Script.Include("multi-tenancy.admin.js").AtFoot();
}
-@using (Html.BeginFormAntiForgeryPost()) {
+@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
-
-
-
+
+
+
@T("Select the Themes which should be available for this tenant. If none is selected, they will all be available.")
-
+
@@ -79,11 +80,11 @@
}
-
+
-
-
-
+
+
+
@T("Select the Modules which should be available for this tenant. If none is selected, they will all be available.")
@@ -94,21 +95,21 @@
@for (var i = 0; i < Model.Modules.Count; i++) {
-
@T("Warning: If you don't know what you're doing you *will* (likely) send this tenant into a downward spiral of irrecoverable disrepair. Have a nice day.")
}
- else {
-
+ else {
+
@Html.RadioButtonFor(svm => svm.DataProvider, "", new { id = "tenantDatabaseOption" })
- }
+ }
@Html.RadioButtonFor(svm => svm.DataProvider, "SqlCe", new { id = "builtinDatabaseOption" })
@@ -44,23 +45,25 @@
@T("Select the Themes which should be available for this tenant. If none is selected, they will all be available.")
-
+
@@ -80,11 +83,11 @@
}
-
+
-
-
-
+
+
+
@T("Select the Modules which should be available for this tenant. If none is selected, they will all be available.")
@@ -95,20 +98,20 @@
@for (var i = 0; i < Model.Modules.Count; i++) {
-