mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Changing edit part shape names to end in "_Edit"
--HG-- branch : dev
This commit is contained in:
@@ -47,7 +47,7 @@ namespace Orchard.Blogs.Drivers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override DriverResult Editor(RecentBlogPostsPart part, dynamic shapeHelper) {
|
protected override DriverResult Editor(RecentBlogPostsPart part, dynamic shapeHelper) {
|
||||||
return ContentShape("Parts_Blogs_RecentBlogPosts_Editor",
|
return ContentShape("Parts_Blogs_RecentBlogPosts_Edit",
|
||||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts/Blogs.RecentBlogPosts", Model: part, Prefix: Prefix));
|
() => shapeHelper.EditorTemplate(TemplateName: "Parts/Blogs.RecentBlogPosts", Model: part, Prefix: Prefix));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,13 @@ namespace Orchard.Email.Drivers {
|
|||||||
protected override string Prefix { get { return "SmtpSettings"; } }
|
protected override string Prefix { get { return "SmtpSettings"; } }
|
||||||
|
|
||||||
protected override DriverResult Editor(SmtpSettingsPart part, dynamic shapeHelper) {
|
protected override DriverResult Editor(SmtpSettingsPart part, dynamic shapeHelper) {
|
||||||
return ContentShape("Parts_SmtpSettings_Editor",
|
return ContentShape("Parts_SmtpSettings_Edit",
|
||||||
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: part, Prefix: Prefix));
|
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: part, Prefix: Prefix));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override DriverResult Editor(SmtpSettingsPart part, IUpdateModel updater, dynamic shapeHelper) {
|
protected override DriverResult Editor(SmtpSettingsPart part, IUpdateModel updater, dynamic shapeHelper) {
|
||||||
updater.TryUpdateModel(part, Prefix, null, null);
|
updater.TryUpdateModel(part, Prefix, null, null);
|
||||||
return ContentShape("Parts_SmtpSettings_Editor",
|
return ContentShape("Parts_SmtpSettings_Edit",
|
||||||
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: part, Prefix: Prefix));
|
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: part, Prefix: Prefix));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Orchard.Tags.Drivers {
|
|||||||
if (!_authorizationService.TryCheckAccess(Permissions.ApplyTag, CurrentUser, part))
|
if (!_authorizationService.TryCheckAccess(Permissions.ApplyTag, CurrentUser, part))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
return ContentShape("Parts_Tags_Editor",
|
return ContentShape("Parts_Tags_Edit",
|
||||||
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: BuildEditorViewModel(part), Prefix: Prefix));
|
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: BuildEditorViewModel(part), Prefix: Prefix));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ namespace Orchard.Tags.Drivers {
|
|||||||
_tagService.UpdateTagsForContentItem(part.ContentItem.Id, tagNames);
|
_tagService.UpdateTagsForContentItem(part.ContentItem.Id, tagNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ContentShape("Parts_Tags_Editor",
|
return ContentShape("Parts_Tags_Edit",
|
||||||
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: model, Prefix: Prefix));
|
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: model, Prefix: Prefix));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user