| @@ 402-414 (lines=13) @@ | ||
| 399 | return Widget::Select($name, $options); |
|
| 400 | } |
|
| 401 | ||
| 402 | private function appendSelectionSelect(&$wrapper) |
|
| 403 | { |
|
| 404 | $name = $this->createSettingsFieldName('linked_section_id', false); |
|
| 405 | ||
| 406 | $input = $this->buildSectionSelect($name); |
|
| 407 | $input->setAttribute('class', 'reverse_relationship-sections'); |
|
| 408 | ||
| 409 | $label = Widget::Label(); |
|
| 410 | ||
| 411 | $label->setValue(__('Available sections %s', array($input->generate()))); |
|
| 412 | ||
| 413 | $wrapper->appendChild($label); |
|
| 414 | } |
|
| 415 | ||
| 416 | private function buildFieldSelect($name) |
|
| 417 | { |
|
| @@ 434-446 (lines=13) @@ | ||
| 431 | return Widget::Select($name, $options); |
|
| 432 | } |
|
| 433 | ||
| 434 | protected function appendFieldSelect(&$wrapper) |
|
| 435 | { |
|
| 436 | $name = $this->createSettingsFieldName('linked_field_id', false); |
|
| 437 | ||
| 438 | $input = $this->buildFieldSelect($name); |
|
| 439 | $input->setAttribute('class', 'reverse_relationship-field'); |
|
| 440 | ||
| 441 | $label = Widget::Label(); |
|
| 442 | ||
| 443 | $label->setValue(__('Available Fields %s', array($input->generate()))); |
|
| 444 | ||
| 445 | $wrapper->appendChild($label); |
|
| 446 | } |
|
| 447 | ||
| 448 | /** |
|
| 449 | * |
|
| @@ 1069-1082 (lines=14) @@ | ||
| 1066 | return Widget::Select($name, $options, array('multiple' => 'multiple')); |
|
| 1067 | } |
|
| 1068 | ||
| 1069 | private function appendSelectionSelect(&$wrapper) |
|
| 1070 | { |
|
| 1071 | $name = $this->createSettingsFieldName('sections', true); |
|
| 1072 | ||
| 1073 | $input = $this->buildSectionSelect($name); |
|
| 1074 | $input->setAttribute('class', 'entry_relationship-sections'); |
|
| 1075 | ||
| 1076 | $label = Widget::Label(); |
|
| 1077 | $label->setAttribute('class', 'column'); |
|
| 1078 | ||
| 1079 | $label->setValue(__('Available sections %s', array($input->generate()))); |
|
| 1080 | ||
| 1081 | $wrapper->appendChild($label); |
|
| 1082 | } |
|
| 1083 | ||
| 1084 | private function createEntriesHiddenInput($data) |
|
| 1085 | { |
|