--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-10-19 12:20:28 -07:00
15 changed files with 23 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
@model OwnerEditorViewModel @model OwnerEditorViewModel
@using Orchard.Core.Common.ViewModels; @using Orchard.Core.Common.ViewModels;
<fieldset> <fieldset>
@Html.LabelFor(m=>m.Owner) @Html.LabelFor(m => m.Owner, T("Owner"))
@Html.EditorFor(m=>m.Owner) @Html.EditorFor(m=>m.Owner)
@Html.ValidationMessageFor(m=>m.Owner) @Html.ValidationMessageFor(m=>m.Owner)
</fieldset> </fieldset>

View File

@@ -3,7 +3,7 @@
@{ Script.Require("Slugify"); } @{ Script.Require("Slugify"); }
<fieldset> <fieldset>
@Html.LabelFor(m => m.Title) @Html.LabelFor(m => m.Title, T("Title"))
@Html.TextBoxFor(m => m.Title, new { @class = "large text" }) @Html.TextBoxFor(m => m.Title, new { @class = "large text" })
</fieldset> </fieldset>
<fieldset class="permalink"> <fieldset class="permalink">

View File

@@ -1,5 +1,5 @@
@model Orchard.Blogs.Models.BlogPart @model Orchard.Blogs.Models.BlogPart
<fieldset> <fieldset>
@Html.LabelFor(m => m.Description) @Html.LabelFor(m => m.Description, T("Description"))
@Html.TextAreaFor(m => m.Description, 5, 60, null) @Html.TextAreaFor(m => m.Description, 5, 60, null)
</fieldset> </fieldset>

View File

@@ -1,7 +1,7 @@
@model Orchard.Blogs.Models.BlogArchivesPart @model Orchard.Blogs.Models.BlogArchivesPart
<fieldset> <fieldset>
<div> <div>
@Html.LabelFor(m => m.ForBlog) @Html.LabelFor(m => m.ForBlog, T("For Blog"))
@Html.TextBoxFor(m => m.ForBlog) @Html.TextBoxFor(m => m.ForBlog)
<span class="hint">@T("Show the archives for which blog? Note: specify the blog's slug.")</span> <span class="hint">@T("Show the archives for which blog? Note: specify the blog's slug.")</span>
</div> </div>

View File

@@ -1,11 +1,11 @@
@model Orchard.Blogs.Models.RecentBlogPostsPart @model Orchard.Blogs.Models.RecentBlogPostsPart
<fieldset> <fieldset>
<div> <div>
@Html.LabelFor(m => m.ForBlog) @Html.LabelFor(m => m.ForBlog, T("For Blog"))
@Html.TextBoxFor(m => m.ForBlog) @Html.TextBoxFor(m => m.ForBlog)
</div> </div>
<div> <div>
@Html.LabelFor(m => m.Count) @Html.LabelFor(m => m.Count, T("Count"))
@Html.TextBoxFor(m => m.Count) @Html.TextBoxFor(m => m.Count)
</div> </div>
</fieldset> </fieldset>

View File

@@ -12,7 +12,7 @@
</li> </li>
} }
</ul> </ul>
@Html.LabelFor(m => m.CommandLine) @Html.LabelFor(m => m.CommandLine, T("Command Line"))
@Html.TextBoxFor(m => m.CommandLine, new { style = "width:100%;" }) @Html.TextBoxFor(m => m.CommandLine, new { style = "width:100%;" })
@Html.ValidationMessageFor(m => m.CommandLine) @Html.ValidationMessageFor(m => m.CommandLine)
<pre>@Model.Results</pre> <pre>@Model.Results</pre>

View File

@@ -22,7 +22,7 @@
</fieldset> </fieldset>
} }
<fieldset> <fieldset>
@Html.LabelFor(m=>m.FeedUrl) @Html.LabelFor(m => m.FeedUrl, T("Feed Url"))
@Html.DropDownListFor(m => m.FeedUrl, new[]{new SelectListItem{Text=T("Download").ToString(),Value="Download"}}.Concat( Model.Sources.Select(x => new SelectListItem { Text = T("Push to {0}", x.FeedUrl).ToString(), Value = x.FeedUrl }))) @Html.DropDownListFor(m => m.FeedUrl, new[]{new SelectListItem{Text=T("Download").ToString(),Value="Download"}}.Concat( Model.Sources.Select(x => new SelectListItem { Text = T("Push to {0}", x.FeedUrl).ToString(), Value = x.FeedUrl })))
@Html.ValidationMessageFor(m=>m.FeedUrl) @Html.ValidationMessageFor(m=>m.FeedUrl)
</fieldset> </fieldset>

View File

@@ -5,7 +5,7 @@
@Html.ValidationSummary() @Html.ValidationSummary()
<fieldset> <fieldset>
@Html.LabelFor(m=>m.TagName) @Html.LabelFor(m => m.TagName, T("Tag Name"))
@Html.TextBoxFor(m=>m.TagName, new { @class = "text" }) @Html.TextBoxFor(m=>m.TagName, new { @class = "text" })
</fieldset> </fieldset>

View File

@@ -5,7 +5,7 @@
@Html.ValidationSummary() @Html.ValidationSummary()
<fieldset> <fieldset>
@Html.HiddenFor(m=>m.Id) @Html.HiddenFor(m=>m.Id)
@Html.LabelFor(m=>m.TagName) @Html.LabelFor(m => m.TagName, T("Tag Name"))
@Html.TextBoxFor(m=>m.TagName, new { @class = "text" }) @Html.TextBoxFor(m=>m.TagName, new { @class = "text" })
</fieldset> </fieldset>

View File

@@ -1,6 +1,6 @@
@model Orchard.Tags.ViewModels.EditTagsViewModel @model Orchard.Tags.ViewModels.EditTagsViewModel
<fieldset> <fieldset>
@Html.LabelFor(m => m.Tags) @Html.LabelFor(m => m.Tags, T("Tags"))
@Html.TextBoxFor(m => m.Tags, new { @class = "large text" }) @Html.TextBoxFor(m => m.Tags, new { @class = "large text" })
</fieldset> </fieldset>

View File

@@ -5,25 +5,25 @@
@Html.ValidationSummary() @Html.ValidationSummary()
<fieldset> <fieldset>
@Html.LabelFor(m=>m.UserName) @Html.LabelFor(m => m.UserName, T("User Name"))
@Html.TextBoxFor(m=>m.UserName, new { @class = "textMedium" }) @Html.TextBoxFor(m=>m.UserName, new { @class = "textMedium" })
@Html.ValidationMessageFor(m=>m.UserName, "*") @Html.ValidationMessageFor(m=>m.UserName, "*")
</fieldset> </fieldset>
<fieldset> <fieldset>
@Html.LabelFor(m=>m.Email) @Html.LabelFor(m => m.Email, T("Email"))
@Html.TextBoxFor(m=>m.Email, new { @class = "textMedium" }) @Html.TextBoxFor(m=>m.Email, new { @class = "textMedium" })
@Html.ValidationMessageFor(m=>m.Email, "*") @Html.ValidationMessageFor(m=>m.Email, "*")
</fieldset> </fieldset>
<fieldset> <fieldset>
@Html.LabelFor(m=>m.Password) @Html.LabelFor(m => m.Password, T("Password"))
@Html.PasswordFor(m=>m.Password, new { @class = "textMedium" }) @Html.PasswordFor(m=>m.Password, new { @class = "textMedium" })
@Html.ValidationMessageFor(m=>m.Password, "*") @Html.ValidationMessageFor(m=>m.Password, "*")
</fieldset> </fieldset>
<fieldset> <fieldset>
@Html.LabelFor(m=>m.ConfirmPassword) @Html.LabelFor(m => m.ConfirmPassword, T("Confirm Password"))
@Html.PasswordFor(m=>m.ConfirmPassword, new { @class = "textMedium" }) @Html.PasswordFor(m=>m.ConfirmPassword, new { @class = "textMedium" })
@Html.ValidationMessageFor(m=>m.ConfirmPassword, "*") @Html.ValidationMessageFor(m=>m.ConfirmPassword, "*")
</fieldset> </fieldset>

View File

@@ -5,13 +5,13 @@
@Html.ValidationSummary() @Html.ValidationSummary()
@Html.EditorFor(m=>m.Id) @Html.EditorFor(m=>m.Id)
<fieldset> <fieldset>
@Html.LabelFor(m=>m.UserName) @Html.LabelFor(m => m.UserName, T("User Name"))
@Html.TextBoxFor(m=>m.UserName, new { @class = "textMedium" }) @Html.TextBoxFor(m=>m.UserName, new { @class = "textMedium" })
@Html.ValidationMessageFor(m=>m.UserName, "*") @Html.ValidationMessageFor(m=>m.UserName, "*")
</fieldset> </fieldset>
<fieldset> <fieldset>
@Html.LabelFor(m=>m.Email) @Html.LabelFor(m => m.Email, T("Email"))
@Html.TextBoxFor(m=>m.Email, new { @class = "textMedium" }) @Html.TextBoxFor(m=>m.Email, new { @class = "textMedium" })
@Html.ValidationMessageFor(m=>m.Email, "*") @Html.ValidationMessageFor(m=>m.Email, "*")
</fieldset> </fieldset>

View File

@@ -1,16 +1,16 @@
@model Orchard.Widgets.Models.LayerPart @model Orchard.Widgets.Models.LayerPart
<fieldset> <fieldset>
@Html.LabelFor(layer => layer.Name) @Html.LabelFor(layer => layer.Name, T("Name"))
@Html.TextBoxFor(layer => layer.Name) @Html.TextBoxFor(layer => layer.Name)
</fieldset> </fieldset>
<fieldset> <fieldset>
@Html.LabelFor(layer => layer.Description) @Html.LabelFor(layer => layer.Description, T("Description"))
@Html.TextAreaFor(layer => layer.Description) @Html.TextAreaFor(layer => layer.Description)
</fieldset> </fieldset>
<fieldset> <fieldset>
@Html.LabelFor(layer => layer.LayerRule) @Html.LabelFor(layer => layer.LayerRule, T("Layer Rule"))
@Html.TextAreaFor(layer => layer.LayerRule) @Html.TextAreaFor(layer => layer.LayerRule)
</fieldset> </fieldset>

View File

@@ -1,11 +1,11 @@
@model Orchard.Widgets.Models.WidgetPart @model Orchard.Widgets.Models.WidgetPart
<fieldset> <fieldset>
@Html.LabelFor(widget => widget.Zone) @Html.LabelFor(widget => widget.Zone, T("Zone"))
@Html.DropDownListFor(widget => widget.Zone, new SelectList(Model.AvailableZones)) @Html.DropDownListFor(widget => widget.Zone, new SelectList(Model.AvailableZones))
</fieldset> </fieldset>
<fieldset> <fieldset>
@Html.LabelFor(widget => widget.Title) @Html.LabelFor(widget => widget.Title, T("Title"))
@Html.TextBoxFor(widget => widget.Title) @Html.TextBoxFor(widget => widget.Title)
</fieldset> </fieldset>

View File

@@ -194,7 +194,7 @@ namespace Orchard.Data.Migration.Interpreters {
} }
else { else {
if(command.Length > 0 || command.Precision > 0 || command.Scale > 0) { if(command.Length > 0 || command.Precision > 0 || command.Scale > 0) {
throw new OrchardException(T("Error while executing data migration: you need to specify the field's type in order to change it's properies")); throw new OrchardException(T("Error while executing data migration: you need to specify the field's type in order to change its properties"));
} }
} }