diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.cshtml b/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.cshtml index 0b55f148e..b1990c468 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.cshtml @@ -8,18 +8,17 @@ @{ var groupedRecipes = Model.Recipes.Where(x => !String.IsNullOrWhiteSpace(x.Category)).GroupBy(x => x.Category); var unspecifiedCategoryRecipes = Model.Recipes.Where(x => String.IsNullOrWhiteSpace(x.Category)).ToList(); + var groupCount = groupedRecipes.Count() + unspecifiedCategoryRecipes.Count(); } @helper RenderRecipeOptions(IEnumerable recipes) { - foreach (var recipe in recipes) { - var optionAttributes = new RouteValueDictionary { - { "data-recipe-description", recipe.Description } - }; - if (Model.Recipe == null && recipe.Name == "Default") { - optionAttributes["selected"] = "selected"; + foreach (var recipe in recipes) { + var optionAttributes = new RouteValueDictionary {{ "data-recipe-description", recipe.Description }}; + if (Model.Recipe == null && recipe.Name == "Default") { + optionAttributes["selected"] = "selected"; + } + @Html.SelectOption(Model.Recipe, recipe.Name, recipe.Name, optionAttributes) } - @Html.SelectOption(Model.Recipe, recipe.Name, recipe.Name, optionAttributes) } -}

@Html.TitleForPage(T("Get Started").ToString())

@using (Html.BeginFormAntiForgeryPost()) { @@ -66,24 +65,19 @@ if (!Model.DatabaseIsPreconfigured) {
@Html.EditorFor(svm => svm.DatabaseConnectionString) - @T("Data Source=sqlServerName;Initial Catalog=dbName;User ID=userName;Password=password") - @T("Data Source=serverName;Database=dbName;User Id=userName;Password=password") - @T("Server=serverName;Port=5432;Database=dbName;User Id=userName;Password=password") -

@Html.EditorFor(svm => svm.DatabaseTablePrefix)
- }
@@ -91,14 +85,14 @@ if (!Model.DatabaseIsPreconfigured) {
@T("Orchard Recipes allow you to setup your site with additional pre-configured options, features and settings out of the box.")