diff --git a/arikaim-package.json b/arikaim-package.json
index 384b78e..01e4d32 100644
--- a/arikaim-package.json
+++ b/arikaim-package.json
@@ -2,7 +2,7 @@
"title": "UI components",
"package-type": "components",
"name": "semantic",
- "version": "1.8.11",
+ "version": "1.8.12",
"description": "Arikaim components library for Semantic UI.",
"repository": "https://github.com/arikaim/ui-components.git",
"require": {
diff --git a/panel/panel.html b/panel/panel.html
index 27010da..267c6e8 100644
--- a/panel/panel.html
+++ b/panel/panel.html
@@ -1,5 +1,6 @@
{% if hide_title != true %}
{{ component('semantic~panel.title',{
diff --git a/panel/panel.js b/panel/panel.js
index be41f31..bda7ed5 100644
--- a/panel/panel.js
+++ b/panel/panel.js
@@ -2,11 +2,21 @@
arikaim.component.onLoaded(function(component) {
+ component.close = function() {
+ if (component.get('show_parent') != true) {
+ $(component.getElement()).parent().hide();
+ }
+ $(component.getElement()).remove();
+ };
+
+ component.remove = function() {
+ $(component.getElement()).remove();
+ }
+
component.init = function() {
var closeButtons = $(component.getElement()).find('.panel-close-button');
- arikaim.ui.button(closeButtons,function(element) {
- $(component.getElement()).parent().hide();
- $(component.getElement()).remove();
+ arikaim.ui.button(closeButtons,function() {
+ component.close();
});
$(component.getElement()).parent().show();
};
diff --git a/properties/items/items.html b/properties/items/items.html
index d93f966..032f2c4 100644
--- a/properties/items/items.html
+++ b/properties/items/items.html
@@ -4,6 +4,11 @@
{% else %}
{% set field_name = property.name %}
{% endif %}
+
+ {% if field_group is not empty %}
+ {% set field_name = field_group ~ '[' ~ field_name ~ ']' %}
+ {% endif %}
+
{% set rule = (property.required == true) ? 'empty' : '' %}
{% if property['type'] == 7 %}