Skip to content

Commit

Permalink
Tenant Feature Profiles docs polishing (Lombiq Technologies: OCORE-68…
Browse files Browse the repository at this point in the history
…). (OrchardCMS#10432)

* Tenant Feature Profiles docs polishing

* Typo

Co-authored-by: Dean Marcussen <[email protected]>

Co-authored-by: Dean Marcussen <[email protected]>
  • Loading branch information
Piedone and deanmarcussen authored Oct 8, 2021
1 parent 4229796 commit 7032e2e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<input type="submit" name="submit.Filter" id="submitFilter" class="sr-only" />
<input asp-for="Options.BulkAction" type="hidden" />
<input type="submit" name="submit.BulkAction" class="sr-only" />

<div class="card mb-3 position-sticky action-bar">
<div class="card-body bg-primary p-3">
<div class="form-group mb-n1">
<div class="input-group input-group-sm w-sm-50 w-25 d-inline-flex has-search">
<i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
<i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
<input asp-for="Options.Search" class="form-control" placeholder="@T["Search"]" type="search" autofocus />
</div>
<div class="btn-group float-right">
Expand All @@ -39,19 +39,19 @@
<label id="selected-items" class="text-muted" for="select-all"></label>
</div>
</div>
<div class="form-group col-2 mb-n1" style="display:none" id="actions">
<span class="dropdown float-right mt-1">
<button class="btn btn-sm btn-light dropdown-toggle" type="button" id="bulk-action-menu-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@T["Actions"]
</button>
<span class="dropdown-menu dropdown-menu-right" aria-labelledby="bulk-action-menu-button">
@foreach (var item in Model.Options.ContentsBulkAction)
{
<a class="dropdown-item" href="javascript:void(0)" data-action="@item.Value" data-title="@T["Bulk Action"]" data-message="@T["Are you sure you want to {0} these items?", @item.Text.ToLower()]">@item.Text</a>
}
</span>
<div class="form-group col-2 mb-n1" style="display:none" id="actions">
<span class="dropdown float-right mt-1">
<button class="btn btn-sm btn-light dropdown-toggle" type="button" id="bulk-action-menu-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@T["Actions"]
</button>
<span class="dropdown-menu dropdown-menu-right" aria-labelledby="bulk-action-menu-button">
@foreach (var item in Model.Options.ContentsBulkAction)
{
<a class="dropdown-item" href="javascript:void(0)" data-action="@item.Value" data-title="@T["Bulk Action"]" data-message="@T["Are you sure you want to {0} these items?", @item.Text.ToLower()]">@item.Text</a>
}
</span>
</div>
</span>
</div>
</div>
</li>
@foreach (var entry in Model.FeatureProfiles)
Expand All @@ -76,8 +76,9 @@
<li class="list-group-item">
<div class="alert alert-info mb-0" role="alert">
@T["<strong>Nothing here!</strong> There are no feature profiles for the moment."]
@* TODO docs *@
@*<a class="seedoc" href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Shortcodes/#example-shortcode-templates" target="_blank">@T["See documentation"]</a>*@
<a class="seedoc" href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Tenants/#feature-profiles" target="_blank">
@T["See documentation"]
</a>
</div>
</li>
}
Expand Down
18 changes: 10 additions & 8 deletions src/docs/reference/modules/Tenants/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ This feature allows the `Default` tenant to create Feature Profiles which can re

### Creating a feature profile

- Enable the _Tenant Feature Profiles_ feature on the `Default` tenant
- Go to the _Configuration -> Tenant Feature Profiles_ menu
- Select _Add Feature Profile_
- Add a _Name_ and a set of _Rules_
1. Enable the _Tenant Feature Profiles_ feature on the `Default` tenant.
2. Go to the _Configuration -> Tenant Feature Profiles_ menu.
3. Select _Add Feature Profile_.
4. Add a _Name_ and a set of _Rules_.

#### Rule Configuration

Expand Down Expand Up @@ -80,9 +80,11 @@ Rules are processed in the order they are supplied, so reversing the order of th

### Selecting a feature profile

- Create a Feature Profile
- Go to the _Configuration -> Tenants_ menu
- Edit the tenant
- Select a feature profile from the dropdown
1. Create a Feature Profile.
2. Go to the _Configuration -> Tenants_ menu.
3. Edit the tenant.
4 Select a feature profile from the dropdown.

The _Feature Profile_ drop down will only be available if at least one Feature Profile has been configured.

A feature profile can also be set when creating a tenant via the web API.

0 comments on commit 7032e2e

Please sign in to comment.