diff --git a/code/MemberTableField.php b/code/MemberTableField.php index 09f8084e..2eb6fc1b 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -303,12 +303,12 @@ class MemberTableField extends ComplexTableField { } $fields->push(new HiddenField('ctf[ID]', null, $this->group->ID)); - return new TabularStyle(new Form($this->controller,'AddRecordForm', + return new TabularStyle(new NestedForm(new Form($this, 'AddRecordForm', $fields, new FieldSet( new FormAction('addtogroup', _t('MemberTableField.ADD','Add')) ) - )); + ))); } /** diff --git a/css/ModelAdmin.css b/css/ModelAdmin.css index 52cee2f7..205d3c90 100644 --- a/css/ModelAdmin.css +++ b/css/ModelAdmin.css @@ -23,5 +23,33 @@ body.ModelAdmin #AddForm_holder { body.ModelAdmin #SearchForm_holder { overflow: auto; - height: 300px; + margin-bottom:1em; +} + +body.ModelAdmin #ResultTable_holder { + overflow:auto; +} + +body.ModelAdmin #ResultTable_holder table { + margin:6px; + padding:0; + border-spacing:0 2px; + width:230px; +} + +body.ModelAdmin #ResultTable_holder table td { + font-size:11px; + font-weight:bold; + background-color:#fff; + padding:2px; +} + +body.ModelAdmin #ResultTable_holder table td.over { + background-color:#bbb; + cursor:pointer; +} + +body.ModelAdmin #ResultTable_holder table td.active { + background-color:#555; + color:#fff; } \ No newline at end of file