mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Removed @deprecated 2.3 class HiddenFieldGroup
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77397 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
55bcfbe1a1
commit
1b84cdd7e4
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Lets you include a nested group of fields inside a template.
|
||||
* This control gives you more flexibility over form layout.
|
||||
*
|
||||
* Note: the child fields within a field group aren't rendered using DefaultFieldHolder. Instead,
|
||||
* SmallFieldHolder() is called, which just prefixes $Field with a <label> tag, if the Title is set.
|
||||
* @deprecated 2.3
|
||||
* @package forms
|
||||
* @subpackage fields-structural
|
||||
*/
|
||||
class HiddenFieldGroup extends FieldGroup {
|
||||
|
||||
/**
|
||||
* Returns a set of <span class="subfield"> tags, each containing a sub-field.
|
||||
* You can also use <% control FieldSet %>, if you'd like more control over the generated HTML
|
||||
*/
|
||||
function Field() {
|
||||
$fs = $this->FieldSet();
|
||||
$content = "<span class=\"fieldgroup\">";
|
||||
foreach($fs as $subfield) {
|
||||
$content .= $subfield->SmallFieldHolder() . " ";
|
||||
}
|
||||
$content .= "</span>";
|
||||
|
||||
return $content;
|
||||
}
|
||||
function FieldHolder() {
|
||||
return $this->renderWith("HiddenFieldHolder");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user