mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 03:17:32 +08:00
#19643: Fixing type mis-cast issue.
Work Item: 19643 --HG-- branch : 1.x
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Orchard.ContentManagement;
|
||||
|
||||
namespace Orchard.Localization.ViewModels {
|
||||
public class AddLocalizationViewModel {
|
||||
@@ -8,6 +7,6 @@ namespace Orchard.Localization.ViewModels {
|
||||
[Required]
|
||||
public string SelectedCulture { get; set; }
|
||||
public IEnumerable<string> SiteCultures { get; set; }
|
||||
public IContent Content { get; set; }
|
||||
public dynamic Content { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
@model Orchard.Localization.ViewModels.AddLocalizationViewModel
|
||||
@using Orchard.ContentManagement
|
||||
@model Orchard.Localization.ViewModels.AddLocalizationViewModel
|
||||
@{
|
||||
Style.Require("LocalizationAdmin");
|
||||
}
|
||||
@@ -11,6 +12,6 @@
|
||||
<div>
|
||||
@T("This is the <em>{0}</em> variation of {1}",
|
||||
Html.DropDownList("SelectedCulture", new SelectList(siteCultures, Model.SelectedCulture)),
|
||||
Html.ItemEditLink(Model.Content))
|
||||
Html.ItemEditLink((IContent)Model.Content.ContentItem))
|
||||
</div>
|
||||
</fieldset>
|
||||
Reference in New Issue
Block a user