- Adding OrchardSwitches attribute to the tenant add command handler.

- Removing UrlPrefix from the tenant creation admin UI (will be readded once implemented).

--HG--
branch : dev
This commit is contained in:
Suha Can 2010-04-28 14:33:08 -07:00
parent 02c6835627
commit eea9bfb2f0
2 changed files with 1 additions and 2 deletions

View File

@ -39,6 +39,7 @@ namespace Orchard.MultiTenancy.Commands {
[CommandHelp("tenant add <tenantName> /Host:<hostname> /UrlPrefix:<url prefix>" +
": create new tenant named <tenantName> on the site")]
[CommandName("tenant add")]
[OrchardSwitches("Host,UrlPrefix")]
public void Create(string tenantName) {
Context.Output.WriteLine(T("Creating tenant"));
_tenantService.CreateTenant(

View File

@ -11,8 +11,6 @@
<input id="Name" class="textMedium" name="Name" type="text" /><br />
<label for="RequestUrlHost"><%=_Encoded("Host") %></label>
<input id="RequestUrlHost" class="textMedium" name="RequestUrlHost" type="text" /><br />
<label for="RequestUrlPrefix"><%=_Encoded("Url Prefix") %></label>
<input id="RequestUrlPrefix" class="textMedium" name="RequestUrlPrefix" type="text" /><br />
</fieldset>
<fieldset>
<input type="submit" class="button primaryAction" value="<%=_Encoded("Save") %>" />