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 98d4c989b..1c116248f 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.cshtml @@ -5,123 +5,114 @@ Script.Require("ShapesBase"); Script.Include("setup.js"); } -@{ +@{ 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"; - } - @Html.SelectOption(Model.Recipe, recipe.Name, recipe.Name, optionAttributes) + 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.TitleForPage(T("Get Started").ToString())

@using (Html.BeginFormAntiForgeryPost()) { -@Html.ValidationSummary() -

@T("Please answer a few questions to configure your site.")

-
-
- - @Html.TextBoxFor(svm => svm.SiteName, new { autofocus = "autofocus" }) -
-
- - @Html.EditorFor(svm => svm.AdminUsername) -
-
- - @Html.PasswordFor(svm => svm.AdminPassword, new { @class = "text single-line" }) -
-
- - @Html.PasswordFor(svm => svm.ConfirmPassword, new { @class = "text single-line" }) -
-
-if (!Model.DatabaseIsPreconfigured) { -
- @T("How would you like to store your data?") - @Html.ValidationMessage("DatabaseOptions", "Unable to setup data storage.") -
- @Html.RadioButtonFor(svm => svm.DatabaseProvider, Orchard.Setup.Controllers.SetupDatabaseType.Builtin.ToString(), new { id = "builtin" }) - -
-
- @Html.RadioButtonFor(svm => svm.DatabaseProvider, Orchard.Setup.Controllers.SetupDatabaseType.SqlServer.ToString(), new { id = "sqlserver" }) - -
-
- @Html.RadioButtonFor(svm => svm.DatabaseProvider, Orchard.Setup.Controllers.SetupDatabaseType.MySql.ToString(), new { id = "mysql" }) - -
-
- @Html.RadioButtonFor(svm => svm.DatabaseProvider, Orchard.Setup.Controllers.SetupDatabaseType.PostgreSql.ToString(), new { id = "postgresql" }) - -
-
- - @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) -
- -
-} -
- @T("Choose an Orchard Recipe") -
@T("Orchard Recipes allow you to setup your site with additional pre-configured options, features and settings out of the box.")
-
- -
-
@Model.RecipeDescription
-
-
-
-
+ @Html.ValidationSummary() +

@T("Please answer a few questions to configure your site.")

+
-

@T("Cooking Orchard Recipe ...")

-

- -

+ + @Html.TextBoxFor(svm => svm.SiteName, new { autofocus = "autofocus" }) +
+
+ + @Html.EditorFor(svm => svm.AdminUsername) +
+
+ + @Html.PasswordFor(svm => svm.AdminPassword, new { @class = "text single-line" }) +
+
+ + @Html.PasswordFor(svm => svm.ConfirmPassword, new { @class = "text single-line" }) +
+
+ if (!Model.DatabaseIsPreconfigured) { +
+ @T("How would you like to store your data?") + @Html.ValidationMessage("DatabaseOptions", "Unable to setup data storage.") +
+ @Html.RadioButtonFor(svm => svm.DatabaseProvider, Orchard.Setup.Controllers.SetupDatabaseType.Builtin.ToString(), new { id = "builtin" }) + +
+
+ @Html.RadioButtonFor(svm => svm.DatabaseProvider, Orchard.Setup.Controllers.SetupDatabaseType.SqlServer.ToString(), new { id = "sqlserver" }) + +
+
+ @Html.RadioButtonFor(svm => svm.DatabaseProvider, Orchard.Setup.Controllers.SetupDatabaseType.MySql.ToString(), new { id = "mysql" }) + +
+
+ @Html.RadioButtonFor(svm => svm.DatabaseProvider, Orchard.Setup.Controllers.SetupDatabaseType.PostgreSql.ToString(), new { id = "postgresql" }) + +
+
+ + @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) +
+
+ } +
+ @T("Choose an Orchard Recipe") +
@T("Orchard Recipes allow you to setup your site with additional pre-configured options, features and settings out of the box.")
+
+ +
+
@Model.RecipeDescription
+
+
+
+
+
+

@T("Cooking Orchard Recipe ...")

+

+ +

+
-
- -
- -
+
+ +
}