| @@ 429-441 (lines=13) @@ | ||
| 426 | return Widget::Select($name, $options); |
|
| 427 | } |
|
| 428 | ||
| 429 | private function appendSelectionSelect(&$wrapper) |
|
| 430 | { |
|
| 431 | $name = $this->createSettingsFieldName('linked_section_id', false); |
|
| 432 | ||
| 433 | $input = $this->buildSectionSelect($name); |
|
| 434 | $input->setAttribute('class', 'reverse_relationship-sections'); |
|
| 435 | ||
| 436 | $label = Widget::Label(); |
|
| 437 | ||
| 438 | $label->setValue(__('Available sections %s', array($input->generate()))); |
|
| 439 | ||
| 440 | $wrapper->appendChild($label); |
|
| 441 | } |
|
| 442 | ||
| 443 | private function buildFieldSelect($name) |
|
| 444 | { |
|
| @@ 469-481 (lines=13) @@ | ||
| 466 | return Widget::Select($name, $options); |
|
| 467 | } |
|
| 468 | ||
| 469 | protected function appendFieldSelect(&$wrapper) |
|
| 470 | { |
|
| 471 | $name = $this->createSettingsFieldName('linked_field_id', false); |
|
| 472 | ||
| 473 | $input = $this->buildFieldSelect($name); |
|
| 474 | $input->setAttribute('class', 'reverse_relationship-field'); |
|
| 475 | ||
| 476 | $label = Widget::Label(); |
|
| 477 | ||
| 478 | $label->setValue(__('Available Fields %s', array($input->generate()))); |
|
| 479 | ||
| 480 | $wrapper->appendChild($label); |
|
| 481 | } |
|
| 482 | ||
| 483 | /** |
|
| 484 | * |
|
| @@ 1115-1128 (lines=14) @@ | ||
| 1112 | return Widget::Select($name, $options, array('multiple' => 'multiple')); |
|
| 1113 | } |
|
| 1114 | ||
| 1115 | private function appendSelectionSelect(&$wrapper) |
|
| 1116 | { |
|
| 1117 | $name = $this->createSettingsFieldName('sections', true); |
|
| 1118 | ||
| 1119 | $input = $this->buildSectionSelect($name); |
|
| 1120 | $input->setAttribute('class', 'entry_relationship-sections'); |
|
| 1121 | ||
| 1122 | $label = Widget::Label(); |
|
| 1123 | $label->setAttribute('class', 'column'); |
|
| 1124 | ||
| 1125 | $label->setValue(__('Available sections %s', array($input->generate()))); |
|
| 1126 | ||
| 1127 | $wrapper->appendChild($label); |
|
| 1128 | } |
|
| 1129 | ||
| 1130 | private function createEntriesHiddenInput($data) |
|
| 1131 | { |
|