mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 13:22:08 +08:00
Making progress on updating the content manager API fit better with the new dynamic UI composition scheme
- Includes changing display-related implementations (drivers & views) to work with shapes - Editor implementations still on the old template model - Orchard.Blogs is currently using a different display type instead of specifying alterations (for Blog and BlogPost) --HG-- branch : dev
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Orchard.Users.Controllers {
|
||||
|
||||
var user = Services.ContentManager.New<IUser>("User");
|
||||
var model = new UserCreateViewModel {
|
||||
User = Services.ContentManager.BuildEditorModel(user)
|
||||
User = Services.ContentManager.BuildEditor(user)
|
||||
};
|
||||
return View(model);
|
||||
}
|
||||
@@ -70,7 +70,7 @@ namespace Orchard.Users.Controllers {
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
var user = Services.ContentManager.New<IUser>("User");
|
||||
model.User = Services.ContentManager.UpdateEditorModel(user, this);
|
||||
model.User = Services.ContentManager.UpdateEditor(user, this);
|
||||
if (!ModelState.IsValid) {
|
||||
Services.TransactionManager.Cancel();
|
||||
return View(model);
|
||||
@@ -91,7 +91,7 @@ namespace Orchard.Users.Controllers {
|
||||
model.Email,
|
||||
null, null, true));
|
||||
|
||||
model.User = Services.ContentManager.UpdateEditorModel(user, this);
|
||||
model.User = Services.ContentManager.UpdateEditor(user, this);
|
||||
|
||||
if (ModelState.IsValid == false) {
|
||||
Services.TransactionManager.Cancel();
|
||||
|
||||
Reference in New Issue
Block a user