mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
- 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:
parent
02c6835627
commit
eea9bfb2f0
@ -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(
|
||||
|
@ -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") %>" />
|
||||
|
Loading…
Reference in New Issue
Block a user