mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-16 12:04:13 +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
|
@model AddLocalizationViewModel
|
||||||
@using Orchard.Core.Localization.ViewModels
|
@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>
|
<h1>@Html.TitleForPage(T("Translate Content").ToString())</h1>
|
||||||
@using (Html.BeginFormAntiForgeryPost()) {
|
@using (Html.BeginFormAntiForgeryPost()) {
|
||||||
@Html.ValidationSummary()
|
@Html.ValidationSummary()
|
||||||
@Html.EditorForItem(m=>m.Content)
|
@Display(Model.Content)
|
||||||
}
|
}
|
||||||
|
|
||||||
@using(Script.Foot()){
|
@using(Script.Foot()){
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
|
@ -8,6 +8,6 @@
|
|||||||
<div>
|
<div>
|
||||||
@T("This is the <em>{0}</em> variation of {1}.",
|
@T("This is the <em>{0}</em> variation of {1}.",
|
||||||
Html.DropDownList("SelectedCulture", new SelectList(siteCultures, Model.SelectedCulture)),
|
Html.DropDownList("SelectedCulture", new SelectList(siteCultures, Model.SelectedCulture)),
|
||||||
Html.ItemEditLink(Model.Content.Item))
|
Html.ItemEditLink(Model.Content))
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
Loading…
Reference in New Issue
Block a user