mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 11:17:28 +08:00
Fixing bug with NOP select option in setup ui for recipes
Calling T() on a couple strings --HG-- branch : recipe
This commit is contained in:
@@ -72,8 +72,7 @@ namespace Orchard.Setup.Controllers {
|
||||
|
||||
if (!ModelState.IsValid) {
|
||||
model.DatabaseIsPreconfigured = !string.IsNullOrEmpty(_setupService.Prime().DataProvider);
|
||||
// set HasRecipes flag
|
||||
// set recipedescription
|
||||
//TODO: set HasRecipes flag and recipedescription
|
||||
return IndexViewResult(model);
|
||||
}
|
||||
|
||||
|
@@ -57,8 +57,8 @@ if (Model.HasRecipes) {
|
||||
<div>@T("Orchard Recipes allow you to setup your site with additional pre-configured options, features and settings out of the box")</div>
|
||||
<div>
|
||||
<select id="@Html.FieldIdFor(m => m.Recipe)" name="@Html.FieldNameFor(m => m.Recipe)" class="recipe">
|
||||
@Html.SelectOption("", false, "Choose")
|
||||
@Html.SelectOption("", false, "-------------------")
|
||||
@Html.SelectOption("", false, T("Choose").ToString(), new { recipedescription = "" })
|
||||
@Html.SelectOption("", false, T("-------------------").ToString(), new { recipedescription = "" })
|
||||
@foreach(var recipe in Model.Recipes) {
|
||||
@Html.SelectOption(Model.Recipe, recipe.Name, recipe.Name, new { recipedescription = recipe.Description })
|
||||
}
|
||||
|
Reference in New Issue
Block a user