-
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
+
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
@@ -45,12 +47,12 @@ echo $this->data['nav']->render(); ?>
-
+ >
-
+
= $this->l11nView->render(
$this->l11ns,
@@ -98,14 +101,20 @@ echo $this->data['nav']->render(); ?>
);
?>
+
+
request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
- = $this->getHtml('Defaults'); ?>download
+
@@ -166,5 +175,6 @@ echo $this->data['nav']->render(); ?>
+
\ No newline at end of file
diff --git a/Theme/Backend/Components/value-view.tpl.php b/Theme/Backend/Components/value-view.tpl.php
index 2b75330..a7a4aa4 100644
--- a/Theme/Backend/Components/value-view.tpl.php
+++ b/Theme/Backend/Components/value-view.tpl.php
@@ -32,20 +32,25 @@ echo $this->data['nav']->render(); ?>
-
-
+
+ >
- attribute->valueInt !== null) : ?>
+ type->datatype === AttributeValueType::_INT || $this->type->datatype === AttributeValueType::_FLOAT_INT) : ?>
- attribute->valueDec !== null) : ?>
+ type->datatype === AttributeValueType::_FLOAT) : ?>
- attribute->valueStr !== null) : ?>
+ type->datatype === AttributeValueType::_STRING) : ?>
- attribute->valueDat !== null) : ?>
+ type->datatype === AttributeValueType::_DATETIME) : ?>
+ type->datatype === AttributeValueType::_BOOL) : ?>
+
@@ -61,6 +66,7 @@ echo $this->data['nav']->render(); ?>
+
= $this->l11nView->render(
$this->l11ns,
@@ -68,4 +74,5 @@ echo $this->data['nav']->render(); ?>
'{/api}' . $this->path . '/attribute/value/l11n?csrf={$CSRF}'
);
?>
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php
index 303f3e1..1a1b740 100644
--- a/Theme/Backend/Lang/de.lang.php
+++ b/Theme/Backend/Lang/de.lang.php
@@ -27,11 +27,12 @@ return ['Attribute' => [
'Type' => 'Type',
'Unit' => 'Unit',
'Value' => 'Value',
- '_INT' => 'INTEGER',
- '_STRING' => 'STRING',
- '_FLOAT' => 'FLOAT',
- '_FLOAT_INT' => 'FLOAT_INT',
- '_DATETIME' => 'DATETIME',
+ '_INT' => 'INTEGER',
+ '_STRING' => 'STRING',
+ '_FLOAT' => 'FLOAT',
+ '_FLOAT_INT' => 'FLOAT_INT',
+ '_DATETIME' => 'DATETIME',
'_BOOL' => 'BOOL',
- 'Defaults' => 'Standards',
+ 'Defaults' => 'Standards',
+ 'Localization' => 'Lokalisierung',
]];
diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php
index 44e6d3e..69278ff 100755
--- a/Theme/Backend/Lang/en.lang.php
+++ b/Theme/Backend/Lang/en.lang.php
@@ -27,11 +27,12 @@ return ['Attribute' => [
'Type' => 'Type',
'Unit' => 'Unit',
'Value' => 'Value',
- '_INT' => 'INTEGER',
- '_FLOAT_INT' => 'FLOAT_INT',
- '_STRING' => 'STRING',
- '_FLOAT' => 'FLOAT',
- '_DATETIME' => 'DATETIME',
+ '_INT' => 'INTEGER',
+ '_FLOAT_INT' => 'FLOAT_INT',
+ '_STRING' => 'STRING',
+ '_FLOAT' => 'FLOAT',
+ '_DATETIME' => 'DATETIME',
'_BOOL' => 'BOOL',
- 'Defaults' => 'Defaults',
+ 'Defaults' => 'Defaults',
+ 'Localization' => 'Localization',
]];
diff --git a/tests/Models/AttributeValueTest.php b/tests/Models/AttributeValueTest.php
index 9d01dde..3c36ec8 100644
--- a/tests/Models/AttributeValueTest.php
+++ b/tests/Models/AttributeValueTest.php
@@ -76,11 +76,11 @@ final class AttributeValueTest extends \PHPUnit\Framework\TestCase
$value = new AttributeValue();
self::assertEquals(
[
- 'id' => 0,
- 'valueInt' => null,
- 'valueStr' => null,
- 'valueDec' => null,
- 'valueDat' => null,
+ 'id' => 0,
+ 'valueInt' => null,
+ 'valueStr' => null,
+ 'valueDec' => null,
+ 'valueDat' => null,
'isDefault' => false,
],
$value->toArray()
@@ -92,11 +92,11 @@ final class AttributeValueTest extends \PHPUnit\Framework\TestCase
$value = new AttributeValue();
self::assertEquals(
[
- 'id' => 0,
- 'valueInt' => null,
- 'valueStr' => null,
- 'valueDec' => null,
- 'valueDat' => null,
+ 'id' => 0,
+ 'valueInt' => null,
+ 'valueStr' => null,
+ 'valueDec' => null,
+ 'valueDat' => null,
'isDefault' => false,
],
$value->jsonSerialize()