mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding From and To for TransLit
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
namespace Orchard.Localization.ViewModels {
|
||||
public class CreateTransliterationViewModel {
|
||||
public string CultureFrom { get; set; }
|
||||
public string CultureTo { get; set; }
|
||||
public string Rules { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
@model Orchard.Localization.ViewModels.CreateTransliterationViewModel
|
||||
@using System.Globalization
|
||||
@model Orchard.Localization.ViewModels.CreateTransliterationViewModel
|
||||
|
||||
@{
|
||||
Layout.Title = T("Create Transliteration").Text;
|
||||
@@ -8,12 +9,18 @@
|
||||
if (string.IsNullOrWhiteSpace(value)) {
|
||||
value = Orchard.Localization.Constants.TransliterationDefaultValue;
|
||||
}
|
||||
|
||||
var cultures = CultureInfo.GetCultures(CultureTypes.AllCultures);
|
||||
}
|
||||
|
||||
@using(Html.BeginFormAntiForgeryPost()) {
|
||||
@Html.ValidationSummary()
|
||||
<fieldset>
|
||||
|
||||
<label for="CultureFrom">@T("From")</label>
|
||||
@Html.DropDownList("CultureFrom", new SelectList(cultures, "Name", "DisplayName", Model.CultureFrom))
|
||||
<label for="CultureTo">@T("To")</label>
|
||||
@Html.DropDownList("CultureTo", new SelectList(cultures, "Name", "DisplayName", Model.CultureTo))
|
||||
|
||||
<textarea rows="25" cols="80" name="Rules">@value</textarea>
|
||||
</fieldset>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user