mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 21:43:27 +08:00
Finished conversion of Core.Localization
--HG-- branch : dev
This commit is contained in:
parent
d8342b9776
commit
9b5e9c9633
@ -1,12 +1,14 @@
|
||||
@model AddLocalizationViewModel
|
||||
@using Orchard.Core.Localization.ViewModels
|
||||
Model.Content.Zones.AddRenderPartial("primary:before", "CultureSelection", Model);
|
||||
@{
|
||||
dynamic content = Model.Content;
|
||||
content.Zones.primary.Add(New.Partial(TemplateName: "CultureSelection", Model: Model), "0");
|
||||
}
|
||||
<h1>@Html.TitleForPage(T("Translate Content").ToString())</h1>
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
@Html.ValidationSummary()
|
||||
@Html.EditorForItem(m=>m.Content)
|
||||
@Display(Model.Content)
|
||||
}
|
||||
|
||||
@using(Script.Foot()){
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
@ -8,6 +8,6 @@
|
||||
<div>
|
||||
@T("This is the <em>{0}</em> variation of {1}.",
|
||||
Html.DropDownList("SelectedCulture", new SelectList(siteCultures, Model.SelectedCulture)),
|
||||
Html.ItemEditLink(Model.Content.Item))
|
||||
Html.ItemEditLink(Model.Content))
|
||||
</div>
|
||||
</fieldset>
|
Loading…
Reference in New Issue
Block a user