Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create view: Add missing fallback texts #11497

Merged
merged 1 commit into from
Oct 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions src/Umbraco.Web.UI.Client/src/views/content/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,33 @@ <h5 ng-show="selectContentType" id="selectContentType"><localize key="create_cre
<h5 ng-show="selectBlueprint"><localize key="blueprints_selectBlueprint">Select a blueprint</localize></h5>

<div ng-if="allowedTypes && allowedTypes.length === 0">
<p class="abstract" ng-if="!hasSettingsAccess"><localize key="create_noDocumentTypesWithNoSettingsAccess"></localize></p>
<p class="abstract" ng-if="!hasSettingsAccess">
<localize key="create_noDocumentTypesWithNoSettingsAccess">The selected page in the content tree doesn't allow for any pages to be created below it.</localize>
</p>
<div ng-if="hasSettingsAccess && currentNode.id >= 0">
<p class="abstract">
<localize key="create_noDocumentTypes"></localize>
<localize key="create_noDocumentTypes">There are no allowed Document Types available for creating content here. You must enable these in <strong>Document
Types</strong> within the <strong>Settings</strong> section, by editing the <strong>Allowed child node
types</strong> under <strong>Permissions</strong>.</localize>
</p>
<button type="button" class="btn umb-outline" ng-click="editContentType()">
<localize key="create_noDocumentTypesEditPermissions"></localize>
<localize key="create_noDocumentTypesEditPermissions">Edit permissions for this Document Type</localize>
</button>
</div>
<div ng-if="hasSettingsAccess && currentNode.id < 0">
<!-- There are existing document types, but none are allowed at root -->
<p class="abstract" ng-if="countTypes > 0">
<localize key="create_noDocumentTypesAllowedAtRoot"></localize>
<localize key="create_noDocumentTypesAllowedAtRoot">There are no allowed Document Types available for creating content here. You must enable these in <strong>Document
Types</strong> within the <strong>Settings</strong> section, by changing the <strong>Allow as root</strong> option under <strong>Permissions</strong>.</localize>
</p>

<!-- There's no document types, help people create one -->
<p class="abstract" ng-if="countTypes === 0">
<localize key="create_noDocumentTypesAtRoot"></localize>
<localize key="create_noDocumentTypesAtRoot">There are no Document Types available for creating content here. You must create these in <strong>Document
Types</strong> within the <strong>Settings</strong> section.</localize>
</p>
<button type="button" class="btn umb-outline" ng-click="createContentType()" ng-if="countTypes === 0">
<localize key="create_noDocumentTypesCreateNew"></localize>
<localize key="create_noDocumentTypesCreateNew">Create a new Document Type</localize>
</button>
</div>
</div>
Expand Down Expand Up @@ -58,7 +64,7 @@ <h5 ng-show="selectBlueprint"><localize key="blueprints_selectBlueprint">Select
</li>

</ul>

<ul class="umb-actions umb-actions-child" ng-if="selectBlueprint">

<li class="umb-action" ng-repeat="blueprint in selectableBlueprints | orderBy:'name':false track by $index">
Expand Down