mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-05-09 16:17:53 +08:00
fix multitenancy ui glitch
This commit is contained in:
parent
1e87eee2e4
commit
e853550bda
@ -14,5 +14,7 @@
|
|||||||
$allCheckboxes.prop("checked", false);
|
$allCheckboxes.prop("checked", false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('input[name=DataProvider]:checked').click();
|
||||||
});
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
@ -4,6 +4,7 @@
|
|||||||
Layout.Title = T("Add New Tenant").ToString();
|
Layout.Title = T("Add New Tenant").ToString();
|
||||||
|
|
||||||
Script.Require("jQuery").AtFoot();
|
Script.Require("jQuery").AtFoot();
|
||||||
|
Script.Require("ShapesBase").AtFoot();
|
||||||
Script.Include(Url.Content("~/Themes/TheAdmin/Scripts/admin.js")).AtFoot();
|
Script.Include(Url.Content("~/Themes/TheAdmin/Scripts/admin.js")).AtFoot();
|
||||||
Script.Include("multi-tenancy.admin.js").AtFoot();
|
Script.Include("multi-tenancy.admin.js").AtFoot();
|
||||||
}
|
}
|
||||||
@ -48,7 +49,7 @@
|
|||||||
<span class="hint">@T("Example:") @T("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password")</span>
|
<span class="hint">@T("Example:") @T("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password")</span>
|
||||||
</span>
|
</span>
|
||||||
<span data-controllerid="sqlDatabaseOption">
|
<span data-controllerid="sqlDatabaseOption">
|
||||||
<label for="DatabaseTablePrefix">@T("Database Table Prefix")</label>
|
<label for="DatabaseTablePrefix">@T("Database table prefix")</label>
|
||||||
@Html.EditorFor(svm => svm.DatabaseTablePrefix)
|
@Html.EditorFor(svm => svm.DatabaseTablePrefix)
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -111,4 +112,4 @@
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<button class="primaryAction" type="submit">@T("Save")</button>
|
<button class="primaryAction" type="submit">@T("Save")</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
Layout.Title = T("Edit Tenant").ToString();
|
Layout.Title = T("Edit Tenant").ToString();
|
||||||
|
|
||||||
Script.Require("jQuery").AtFoot();
|
Script.Require("jQuery").AtFoot();
|
||||||
|
Script.Require("ShapesBase").AtFoot();
|
||||||
Script.Include(Url.Content("~/Themes/TheAdmin/Scripts/admin.js")).AtFoot();
|
Script.Include(Url.Content("~/Themes/TheAdmin/Scripts/admin.js")).AtFoot();
|
||||||
Script.Include("multi-tenancy.admin.js").AtFoot();
|
Script.Include("multi-tenancy.admin.js").AtFoot();
|
||||||
}
|
}
|
||||||
@ -44,16 +45,18 @@
|
|||||||
<div>
|
<div>
|
||||||
@Html.RadioButtonFor(svm => svm.DataProvider, "SqlServer", new { id = "sqlDatabaseOption" })
|
@Html.RadioButtonFor(svm => svm.DataProvider, "SqlServer", new { id = "sqlDatabaseOption" })
|
||||||
<label for="sqlDatabaseOption" class="forcheckbox">@T("Use an existing SQL Server (or SQL Express) database")</label>
|
<label for="sqlDatabaseOption" class="forcheckbox">@T("Use an existing SQL Server (or SQL Express) database")</label>
|
||||||
|
<div class="options">
|
||||||
<span data-controllerid="sqlDatabaseOption">
|
<span data-controllerid="sqlDatabaseOption">
|
||||||
<label for="DatabaseConnectionString">@T("Connection string")</label>
|
<label for="DatabaseConnectionString">@T("Connection string")</label>
|
||||||
@Html.TextBoxFor(svm => svm.DatabaseConnectionString, new { @class = "text large" })
|
@Html.TextBoxFor(svm => svm.DatabaseConnectionString)
|
||||||
<span class="hint">@T("Example:")<br />@T("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password")</span>
|
<span class="hint">@T("Example:") @T("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password")</span>
|
||||||
</span>
|
</span>
|
||||||
<span data-controllerid="sqlDatabaseOption">
|
<span data-controllerid="sqlDatabaseOption">
|
||||||
<label for="DatabaseTablePrefix">@T("Database Table Prefix")</label>
|
<label for="DatabaseTablePrefix">@T("Database table prefix")</label>
|
||||||
@Html.EditorFor(svm => svm.DatabaseTablePrefix)
|
@Html.EditorFor(svm => svm.DatabaseTablePrefix)
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset class="available-extensions">
|
<fieldset class="available-extensions">
|
||||||
|
Loading…
Reference in New Issue
Block a user