diff --git a/Theme/Backend/Components/AttributeTypeListView.php b/Theme/Backend/Components/AttributeTypeListView.php new file mode 100644 index 0000000..fc6941e --- /dev/null +++ b/Theme/Backend/Components/AttributeTypeListView.php @@ -0,0 +1,59 @@ +setTemplate('/Modules/Attribute/Theme/Backend/Components/type-list'); + } +} diff --git a/Theme/Backend/Components/AttributeTypeView.php b/Theme/Backend/Components/AttributeTypeView.php new file mode 100644 index 0000000..170c859 --- /dev/null +++ b/Theme/Backend/Components/AttributeTypeView.php @@ -0,0 +1,65 @@ +setTemplate('/Modules/Attribute/Theme/Backend/Components/type-view'); + + $this->l11nView = new L11nView($l11n, $request, $response); + } +} diff --git a/Theme/Backend/Components/AttributeValueView.php b/Theme/Backend/Components/AttributeValueView.php new file mode 100644 index 0000000..4787b32 --- /dev/null +++ b/Theme/Backend/Components/AttributeValueView.php @@ -0,0 +1,65 @@ +setTemplate('/Modules/Attribute/Theme/Backend/Components/value-view'); + + $this->l11nView = new L11nView($l11n, $request, $response); + } +} diff --git a/Theme/Backend/Components/attributes.tpl.php b/Theme/Backend/Components/attributes.tpl.php index b31f1ed..19e4bfa 100644 --- a/Theme/Backend/Components/attributes.tpl.php +++ b/Theme/Backend/Components/attributes.tpl.php @@ -59,6 +59,7 @@ $units = $this->units; --> +

diff --git a/Theme/Backend/Components/type-list.tpl.php b/Theme/Backend/Components/type-list.tpl.php
new file mode 100644
index 0000000..7e24926
--- /dev/null
+++ b/Theme/Backend/Components/type-list.tpl.php
@@ -0,0 +1,69 @@
+data['nav']->render(); ?>
+
+
+
+
+
getHtml('AttributeTypes'); ?>download
+
+ + + + + attributes as $key => $value) : ++$count; + $url = UriFactory::build('{/base}/' . $this->path . '/attribute/type/view?{?}&id=' . $value->id); + ?> + +
getHtml('ID', '0', '0'); ?> + + + + getHtml('Name'); ?> + + + +
id; ?> + printHtml($value->getL11n()); ?> + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+
diff --git a/Theme/Backend/Components/type-view.tpl.php b/Theme/Backend/Components/type-view.tpl.php new file mode 100644 index 0000000..c9dd1b4 --- /dev/null +++ b/Theme/Backend/Components/type-view.tpl.php @@ -0,0 +1,170 @@ +attribute->id === 0; +$path = $this->path; + +echo $this->data['nav']->render(); ?> + +
+
+ +
+
+ request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>> +
+
+
+
+
+
getHtml('Attribute', 'Attribute', 'Backend'); ?>
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+ +
+
+
+ + + + + +
+
+
+
+
+ +
+ l11nView->render( + $this->l11ns, + [], + '{/api}' . $path . '/attribute/type/l11n?csrf={$CSRF}' + ); + ?> +
+
+ + request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>> +
+
+
+
+
getHtml('Defaults'); ?>download
+
+ + + + + attribute->defaults as $key => $value) : ++$count; + $url = UriFactory::build('{/base}/' . $path . '/attribute/value/view?{?}&id=' . $value->id); + ?> + +
getHtml('ID', '0', '0'); ?> + + + + getHtml('Name'); ?> + + + + getHtml('Value'); ?> + + + +
id; ?> + printHtml($value->getL11n()); ?> + printHtml((string) $value->getValue()); ?> + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/Theme/Backend/Components/value-view.tpl.php b/Theme/Backend/Components/value-view.tpl.php new file mode 100644 index 0000000..2b75330 --- /dev/null +++ b/Theme/Backend/Components/value-view.tpl.php @@ -0,0 +1,71 @@ +attribute->id === 0; + +echo $this->data['nav']->render(); ?> +
+
+
+
+
getHtml('Attribute', 'Attribute', 'Backend'); ?>
+
+
+ + +
+ +
+ + +
+ +
+ + attribute->valueInt !== null) : ?> + + attribute->valueDec !== null) : ?> + + attribute->valueStr !== null) : ?> + + attribute->valueDat !== null) : ?> + + +
+
+
+ + + + + +
+
+
+
+
+ +
+ l11nView->render( + $this->l11ns, + [], + '{/api}' . $this->path . '/attribute/value/l11n?csrf={$CSRF}' + ); + ?> +
\ No newline at end of file diff --git a/Theme/Backend/Lang/ar.lang.php b/Theme/Backend/Lang/ar.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/ar.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/cs.lang.php b/Theme/Backend/Lang/cs.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/cs.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/da.lang.php b/Theme/Backend/Lang/da.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/da.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php index 354ef09..303f3e1 100644 --- a/Theme/Backend/Lang/de.lang.php +++ b/Theme/Backend/Lang/de.lang.php @@ -27,4 +27,11 @@ return ['Attribute' => [ 'Type' => 'Type', 'Unit' => 'Unit', 'Value' => 'Value', + '_INT' => 'INTEGER', + '_STRING' => 'STRING', + '_FLOAT' => 'FLOAT', + '_FLOAT_INT' => 'FLOAT_INT', + '_DATETIME' => 'DATETIME', + '_BOOL' => 'BOOL', + 'Defaults' => 'Standards', ]]; diff --git a/Theme/Backend/Lang/el.lang.php b/Theme/Backend/Lang/el.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/el.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 354ef09..44e6d3e 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -27,4 +27,11 @@ return ['Attribute' => [ 'Type' => 'Type', 'Unit' => 'Unit', 'Value' => 'Value', + '_INT' => 'INTEGER', + '_FLOAT_INT' => 'FLOAT_INT', + '_STRING' => 'STRING', + '_FLOAT' => 'FLOAT', + '_DATETIME' => 'DATETIME', + '_BOOL' => 'BOOL', + 'Defaults' => 'Defaults', ]]; diff --git a/Theme/Backend/Lang/es.lang.php b/Theme/Backend/Lang/es.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/es.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/fi.lang.php b/Theme/Backend/Lang/fi.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/fi.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/fr.lang.php b/Theme/Backend/Lang/fr.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/fr.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/hu.lang.php b/Theme/Backend/Lang/hu.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/hu.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/it.lang.php b/Theme/Backend/Lang/it.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/it.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/ja.lang.php b/Theme/Backend/Lang/ja.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/ja.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/ko.lang.php b/Theme/Backend/Lang/ko.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/ko.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/no.lang.php b/Theme/Backend/Lang/no.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/no.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/pl.lang.php b/Theme/Backend/Lang/pl.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/pl.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/pt.lang.php b/Theme/Backend/Lang/pt.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/pt.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/ru.lang.php b/Theme/Backend/Lang/ru.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/ru.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/sv.lang.php b/Theme/Backend/Lang/sv.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/sv.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/th.lang.php b/Theme/Backend/Lang/th.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/th.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/tr.lang.php b/Theme/Backend/Lang/tr.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/tr.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/uk.lang.php b/Theme/Backend/Lang/uk.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/uk.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]]; diff --git a/Theme/Backend/Lang/zh.lang.php b/Theme/Backend/Lang/zh.lang.php deleted file mode 100644 index 5aef460..0000000 --- a/Theme/Backend/Lang/zh.lang.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'Attribute' => '', - 'AttributeTypes' => '', - 'Attributes' => '', - 'CustomValue' => '', - 'Datatype' => '', - 'DefaultValues' => '', - 'IsRequired' => '', - 'Name' => '', - 'Pattern' => '', - 'Status' => '', - 'Title' => '', - 'Type' => '', - 'Unit' => '', - 'Value' => '', -]];