-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
122 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 67 additions & 35 deletions
102
src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/ContentTypeSettings.Edit.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,81 @@ | ||
@model ContentTypeSettingsViewModel | ||
|
||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Creatable"> | ||
<label class="custom-control-label" asp-for="Creatable">@T["Creatable"]</label> | ||
<span class="hint dashed">@T["Determines if an instance of this content type can be created through the UI."]</span> | ||
<p> | ||
<button class="btn btn-primary btn-sm dropdown-toggle" type="button" data-toggle="collapse" data-target="#options" aria-expanded="false" aria-controls="options"> | ||
@T["Options"] | ||
</button> | ||
@if (Model.Creatable) | ||
{ | ||
<span class="badge ta-badge font-weight-normal"><i class="fa fa-plus text-info"></i> @T["Creatable"]</span> | ||
} | ||
@if (Model.Listable) | ||
{ | ||
<span class="badge ta-badge font-weight-normal"><i class="fa fa-list text-info"></i> @T["Listable"]</span> | ||
} | ||
@if (Model.Draftable) | ||
{ | ||
<span class="badge ta-badge font-weight-normal"><i class="fa fa-edit text-info"></i> @T["Draftable"]</span> | ||
} | ||
@if (Model.Versionable) | ||
{ | ||
<span class="badge ta-badge font-weight-normal"><i class="fa fa-sort-numeric-down text-info"></i> @T["Versionable"]</span> | ||
} | ||
@if (Model.Securable) | ||
{ | ||
<span class="badge ta-badge font-weight-normal"><i class="fa fa-lock text-info"></i> @T["Securable"]</span> | ||
} | ||
@if (!string.IsNullOrEmpty(Model.Stereotype)) | ||
{ | ||
<span class="badge ta-badge font-weight-normal"><i class="fa fa-cog text-info"></i> @Model.Stereotype</span> | ||
} | ||
</p> | ||
|
||
<div class="collapse" id="options"> | ||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Creatable"> | ||
<label class="custom-control-label" asp-for="Creatable">@T["Creatable"]</label> | ||
<span class="hint dashed">@T["Determines if an instance of this content type can be created through the UI."]</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Listable"> | ||
<label class="custom-control-label" asp-for="Listable">@T["Listable"]</label> | ||
<span class="hint dashed">@T["Determines if an instance of this content type can be listed through the UI."]</span> | ||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Listable"> | ||
<label class="custom-control-label" asp-for="Listable">@T["Listable"]</label> | ||
<span class="hint dashed">@T["Determines if an instance of this content type can be listed through the UI."]</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Draftable"> | ||
<label class="custom-control-label" asp-for="Draftable">@T["Draftable"]</label> | ||
<span class="hint dashed">@T["Determines if this content type supports draft versions."]</span> | ||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Draftable"> | ||
<label class="custom-control-label" asp-for="Draftable">@T["Draftable"]</label> | ||
<span class="hint dashed">@T["Determines if this content type supports draft versions."]</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Versionable"> | ||
<label class="custom-control-label" asp-for="Versionable">@T["Versionable"]</label> | ||
<span class="hint dashed">@T["Determines if this content type supports versioning."]</span> | ||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Versionable"> | ||
<label class="custom-control-label" asp-for="Versionable">@T["Versionable"]</label> | ||
<span class="hint dashed">@T["Determines if this content type supports versioning."]</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Securable"> | ||
<label class="custom-control-label" asp-for="Securable">@T["Securable"]</label> | ||
<span class="hint dashed">@T["Determines if this content type can have custom permissions."]</span> | ||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" asp-for="Securable"> | ||
<label class="custom-control-label" asp-for="Securable">@T["Securable"]</label> | ||
<span class="hint dashed">@T["Determines if this content type can have custom permissions."]</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="w-md-75 w-xl-50"> | ||
<label asp-for="Stereotype">@T["Stereotype"]</label> | ||
<input asp-for="Stereotype" type="text" class="form-control"> | ||
<div class="form-group"> | ||
<div class="w-md-75 w-xl-50"> | ||
<label asp-for="Stereotype">@T["Stereotype"]</label> | ||
<input asp-for="Stereotype" type="text" class="form-control"> | ||
</div> | ||
<span class="hint">@T["(Optional) The stereotype of the content type. e.g., Widget, MenuItem, ..."]</span> | ||
</div> | ||
<span class="hint">@T["(Optional) The stereotype of the content type. e.g., Widget, MenuItem, ..."]</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/OrchardCore.Modules/OrchardCore.Placements/Views/PlacementSettings.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/OrchardCore.Modules/OrchardCore.Templates/Views/TemplateSettings.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters