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:
Suha Can
2011-02-11 16:49:40 -08:00
parent b24562ec6b
commit 096e5e1d42
2 changed files with 3 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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 })
}