Manage string attribute on group

issue6611
review35581002
This commit is contained in:
Sergi Almacellas Abellana committed 2017-08-31 11:13:09 +02:00
1 parent 80074df5fd
commit c9e521b6b1
2 files changed
+8 -1

No files matched your search

+4
View File
@@ -190,6 +190,10 @@ button {
.panel-heading {
padding: 1px 1px;
}
& fieldset.form-group_ > legend {
font-size: @font-size-base;
margin-bottom: 5px;
}
}
.form-binary, .editabletree-binary {
+4 -1
View File
@@ -789,9 +789,12 @@ function eval_pyson(value){
class_: 'form-group_',
init: function(attributes) {
Sao.View.Form.Group._super.init.call(this, attributes);
this.el = jQuery('<div/>', {
this.el = jQuery('<fieldset/>', {
'class': this.class_
});
if (attributes.string) {
this.el.append(jQuery('<legend/>').text(attributes.string));
}
},
add: function(widget) {
this.el.append(widget.el);