(merged from branches/roa. use "svn log -c <changeset> -g <module-svn-path>" for detailed commit message)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@59969 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-08-06 06:54:59 +00:00
parent 5000d0a227
commit 4b5ab8a997
2 changed files with 31 additions and 3 deletions

View File

@ -303,12 +303,12 @@ class MemberTableField extends ComplexTableField {
} }
$fields->push(new HiddenField('ctf[ID]', null, $this->group->ID)); $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, $fields,
new FieldSet( new FieldSet(
new FormAction('addtogroup', _t('MemberTableField.ADD','Add')) new FormAction('addtogroup', _t('MemberTableField.ADD','Add'))
) )
)); )));
} }
/** /**

View File

@ -23,5 +23,33 @@ body.ModelAdmin #AddForm_holder {
body.ModelAdmin #SearchForm_holder { body.ModelAdmin #SearchForm_holder {
overflow: auto; 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;
} }