mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Renamed WithDisplayName to DisplayedAs and removed test view from TheThemeMachine.
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Orchard.Layouts.Helpers {
|
||||
return this;
|
||||
}
|
||||
|
||||
public SnippetFieldDescriptorBuilder WithDisplayName(LocalizedString value) {
|
||||
public SnippetFieldDescriptorBuilder DisplayedAs(LocalizedString value) {
|
||||
Descriptor.DisplayName = value;
|
||||
return this;
|
||||
}
|
||||
|
@@ -1,10 +0,0 @@
|
||||
@using Orchard.Layouts.Elements
|
||||
@using Orchard.Layouts.Helpers
|
||||
@{
|
||||
var element = (Snippet)Model.Element;
|
||||
var tagBuilder = TagBuilderExtensions.CreateElementTagBuilder(Model, "a");
|
||||
|
||||
tagBuilder.SetInnerText(Html.SnippetField("ButtonText", "Text").WithDisplayName(T("Button Text")).WithDescription(T("The button text label.")).ToString());
|
||||
tagBuilder.Attributes["href"] = Html.SnippetField("ButtonUrl", "Text").WithDisplayName(T("Button Url")).WithDescription(T("The button URL.")).ToString();
|
||||
}
|
||||
@tagBuilder.ToHtmlString()
|
@@ -177,9 +177,6 @@
|
||||
<ItemGroup>
|
||||
<Content Include="TheAdmin\Views\AdminCultureSelector.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="TheThemeMachine\Views\ButtonSnippet.cshtml" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
|
Reference in New Issue
Block a user