Fixing home page widgets on setup

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-02-16 14:04:45 -08:00
parent dee42e5d69
commit e2be72150e
3 changed files with 3 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ namespace Orchard.Widgets.Commands {
}
var owner = _membershipService.GetUser(Owner);
layer.As<ICommonPart>().Owner = owner;
_contentManager.Flush();
Context.Output.WriteLine(T("Layer created successfully.").Text);
}

View File

@@ -23,6 +23,6 @@
</fieldset>
<fieldset>
@Html.LabelFor(widget => widget.Name, T("Name"))
@Html.TextBoxFor(widget => widget.Name)
@Html.TextBoxFor(widget => widget.Name, new { @class = "text-box" })
<span class="hint">@T("The technical name of the Widget, used for css class and alternates.")</span>
</fieldset>