Skip to content

Commit

Permalink
removed checkbox to enable backoffice template
Browse files Browse the repository at this point in the history
  • Loading branch information
lumimario committed Nov 11, 2022
1 parent 2fe26a8 commit 7b3f84d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
7 changes: 2 additions & 5 deletions Our.Iconic/wwwroot/Views/iconic.edit.dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@
<span class="help-inline" ng-message="required"><localize key="iconicValidation_name">Please enter a template</localize></span>
</span>
</umb-control-group>
<umb-control-group label="@iconicConfig_backofficeTemplate" description="@iconicConfig_backofficeTemplateDescription">
<umb-toggle checked="model.package.overrideTemplate" on-click="toggleOverrideTemplate()">
</umb-toggle>
</umb-control-group>


<umb-control-group label="Enter a backoffice template" ng-if="model.package.overrideTemplate">
<umb-control-group label="Enter a backoffice template" description="@iconicConfig_backofficeTemplateDescription">
<input class="umb-property-editor" name="editBackofficeTemplate" type="text" ng-model="model.package.backofficeTemplate" val-highlight="{{ packageForm.editBackofficeTemplate.$invalid }}" />
</umb-control-group>

Expand Down
2 changes: 1 addition & 1 deletion Our.Iconic/wwwroot/js/src/iconic.directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

function updateTemplate() {
if ($scope.package && $scope.icon) {
if ($scope.package && $scope.package.overrideTemplate) {
if ($scope.package && $scope.package.backofficeTemplate) {
$scope.template = $scope.package.backofficeTemplate.replace(
"{icon}",
$scope.icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@
$scope.changeConfigType = function(value) {
$scope.configType = value;
}

$scope.toggleOverrideTemplate = function() {
$scope.model.package.overrideTemplate = !$scope.model.package.overrideTemplate;
}


$scope.openCssFilePicker = function() {
const config = {
select: function(node) {
Expand Down
3 changes: 1 addition & 2 deletions Our.Iconic/wwwroot/lang/en-US.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
<key alias="selectorDescription">Enter a valid regex that extracts the individual icon code</key>
<key alias="template">Template</key>
<key alias="templateDescription">Enter an icon template</key>
<key alias="backofficeTemplate">Override Backoffice Template</key>
<key alias="backofficeTemplateDescription">Activate to have a different icon template in your backoffice. i.e. size, color, ...</key>
<key alias="backofficeTemplateDescription">Overrides the Template value when icon is displayed on the backoffice. Allows to have a different icon template in your backoffice. i.e. size, color, ...</key>
<key alias="cssFile">CSS file</key>
<key alias="cssFileDescription">CSS source to style the icon on the backoffice</key>
<key alias="configType">Configuration type</key>
Expand Down
3 changes: 2 additions & 1 deletion Our.Iconic/wwwroot/lang/es-ES.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<key alias="name">Nombre</key>
<key alias="selector">Seleccionador</key>
<key alias="template">Plantilla</key>
<key alias="backofficeTemplate">Reemplazar plantilla en backoffice</key>
<key alias="backofficeTemplateDescription">Overrides the Template value when icon is displayed on the backoffice. Allows to have a different icon template in your backoffice. i.e. size, color, ...</key>
<key alias="backofficeTemplate">Reemplazar plantilla en backoffice</key>
<key alias="cssFile">Archivo Css</key>
<key alias="rulesFile">Archivo fuente de reglas</key>
<key alias="rulesFileDescription">De donde extraer la lista de iconos. Si no se elige one, el utilizado para el Archivo CSS se usara por defecto.</key>
Expand Down

0 comments on commit 7b3f84d

Please sign in to comment.