Create content template localization (#10945)
* Don't use self-closing element for custom HTML elements * Use button element for close/cancel in copy dialog * Update localization of "createBlueprintFrom" Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
This commit is contained in:
committed by
GitHub
parent
31ecc146d1
commit
48a3a0524d
@@ -12,7 +12,7 @@
|
||||
name: $scope.currentNode.name
|
||||
};
|
||||
|
||||
localizationService.localize("blueprints_createBlueprintFrom", ["<em>" + $scope.message.name + "</em>"]).then(function (localizedVal) {
|
||||
localizationService.localize("blueprints_createBlueprintFrom", [$scope.message.name]).then(localizedVal => {
|
||||
$scope.title = localizedVal;
|
||||
});
|
||||
|
||||
@@ -33,14 +33,13 @@
|
||||
|
||||
navigationService.hideMenu();
|
||||
},
|
||||
function (err) {
|
||||
formHelper.resetForm({ scope: $scope, hasErrors: true });
|
||||
contentEditingHelper.handleSaveError({
|
||||
err: err
|
||||
});
|
||||
function (err) {
|
||||
formHelper.resetForm({ scope: $scope, hasErrors: true });
|
||||
contentEditingHelper.handleSaveError({
|
||||
err: err
|
||||
});
|
||||
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -85,10 +85,10 @@
|
||||
</div>
|
||||
|
||||
<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
|
||||
<a class="btn btn-link" ng-click="closeDialog()" ng-show="!busy">
|
||||
<button type="button" class="btn btn-link" ng-click="closeDialog()" ng-show="!busy">
|
||||
<localize key="general_cancel">Cancel</localize>
|
||||
</a>
|
||||
<button class="btn btn-primary" ng-click="copy()" ng-disabled="busy || !target">
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" ng-click="copy()" ng-disabled="busy || !target">
|
||||
<localize key="actions_copy">Copy</localize>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<input type="text" name="name" ng-model="message.name" class="umb-textstring textstring input-block-level"
|
||||
val-server-field="name"
|
||||
required />
|
||||
<span ng-messages="blueprintForm.name.$error" show-validation-on-submit >
|
||||
<span ng-messages="blueprintForm.name.$error" show-validation-on-submit>
|
||||
<span class="help-inline" ng-message="required"><localize key="required">Required</localize></span>
|
||||
<span class="help-inline" ng-message="valServerField">{{blueprintForm.name.errorMsg}}</span>
|
||||
</span>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<umb-load-indicator ng-if="vm.loading"></umb-load-indicator>
|
||||
|
||||
<ul class="umb-actions umb-actions-child">
|
||||
<li class="umb-action" ng-repeat="documentType in vm.documentTypes |orderBy:'name':false">
|
||||
<li class="umb-action" ng-repeat="documentType in vm.documentTypes | orderBy:'name':false">
|
||||
<button type="button" class="umb-action-link umb-outline btn-reset" ng-click="vm.createBlueprint(documentType)">
|
||||
<umb-icon icon="{{documentType.icon}}" class="icon large"></umb-icon>
|
||||
<span class="menu-label">
|
||||
|
||||
Reference in New Issue
Block a user