mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Simplified Settings recipe builder step.
This commit is contained in:
@@ -140,9 +140,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Views\EditorTemplates\BuilderSteps\RecipeMetadata.cshtml" />
|
<Content Include="Views\EditorTemplates\BuilderSteps\RecipeMetadata.cshtml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="Views\EditorTemplates\BuilderSteps\Settings.cshtml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Views\EditorTemplates\ExecutionSteps\Content.cshtml" />
|
<Content Include="Views\EditorTemplates\ExecutionSteps\Content.cshtml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -23,21 +23,12 @@ namespace Orchard.Recipes.Providers.Builders {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override LocalizedString Description {
|
public override LocalizedString Description {
|
||||||
get { return T("Exports settings."); }
|
get { return T("Exports settings. Please verify that you are not exporting confidential information, such as passwords or application keys."); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Priority { get { return 30; } }
|
public override int Priority { get { return 30; } }
|
||||||
public override int Position { get { return 60; } }
|
public override int Position { get { return 60; } }
|
||||||
|
|
||||||
public override dynamic BuildEditor(dynamic shapeFactory) {
|
|
||||||
return UpdateEditor(shapeFactory, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override dynamic UpdateEditor(dynamic shapeFactory, IUpdateModel updater) {
|
|
||||||
var viewModel = new SiteSettingsStepViewModel();
|
|
||||||
return shapeFactory.EditorTemplate(TemplateName: "BuilderSteps/Settings", Model: viewModel, Prefix: Prefix);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Build(BuildContext context) {
|
public override void Build(BuildContext context) {
|
||||||
context.RecipeDocument.Element("Orchard").Add(ExportSiteSettings());
|
context.RecipeDocument.Element("Orchard").Add(ExportSiteSettings());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
@model Orchard.Recipes.ViewModels.SiteSettingsStepViewModel
|
|
||||||
@Html.Hint(T("Please verify that you are not exporting confidential information, such as passwords or application keys."))
|
|
||||||
Reference in New Issue
Block a user