Render custom field management interface.

@param \core_customfield\output\management $list
@return string HTML
352815
protected function render_management(\core_customfield\output\management $list) {
        $context = $list->export_for_template($this);

        return $this->render_from_template('core_customfield/list', $context);
    }
1025424
public function formatList(): string
    {
        $html = '<a href="' . e($this->url()) . '" class="list_item">';
        $html .= '<b>' . $this->fullName() . '</b>';
        $html .= $this->formatListDetails();
        $html .= '</a>';

        return $html;
    }
1049873
def list_managers_view(request):
    '''  '''
    managerset = Manager.objects.filter(active=True)
    return render_to_response('list_managers.html', {
        'page_name': "Managers",
        'managerset': managerset,
        }, context_instance=RequestContext(request))
1284189
protected function render_models_list(\tool_analytics\output\models_list $modelslist) {
        $data = $modelslist->export_for_template($this);
        return parent::render_from_template('tool_analytics/models_list', $data);
    }
536786
public function render()
    {
        // Always add this class
        $this->addClass('autocomplete');

        // Make the hidden field.  Render it before we (might) set the value to
        // the title of the parent.
        $hidden = $this->renderHidden();

        // If there is a value and the field name matches a relationship on function
        // on the current item, then get and display the title text for the related
        // record
        if ($parent = $this->parentModel()) {
            $this->value = $parent->getAdminTitleAttribute();

        // Else, if there is no parent (it's a create page), set the value if a
        // title was set
        } elseif ($this->title) {
            $this->value = $this->title;
        }

        // Add the hidden field and return
        return parent::render().$hidden;
    }
1239255
protected void writeObjectHeader(List<Object> list) {
        // action
        list.add("{\"" + getOperation() + "\":{");

        // flag indicating whether a comma needs to be added between fields
        boolean commaMightBeNeeded = false;

        commaMightBeNeeded = addExtractorOrDynamicValue(list, getMetadataExtractorOrFallback(Metadata.INDEX, indexExtractor), "", commaMightBeNeeded);
        commaMightBeNeeded = addExtractorOrDynamicValue(list, getMetadataExtractorOrFallback(Metadata.TYPE, typeExtractor), "\"_type\":", commaMightBeNeeded);
        commaMightBeNeeded = id(list, commaMightBeNeeded);
        commaMightBeNeeded = addExtractorOrDynamicValue(list, getMetadataExtractorOrFallback(Metadata.PARENT, parentExtractor), requestParameterNames.parent, commaMightBeNeeded);
        commaMightBeNeeded = addExtractorOrDynamicValueAsFieldWriter(list, getMetadataExtractorOrFallback(Metadata.ROUTING, routingExtractor), requestParameterNames.routing, commaMightBeNeeded);
        commaMightBeNeeded = addExtractorOrDynamicValue(list, getMetadataExtractorOrFallback(Metadata.TTL, ttlExtractor), "\"_ttl\":", commaMightBeNeeded);
        commaMightBeNeeded = addExtractorOrDynamicValue(list, getMetadataExtractorOrFallback(Metadata.TIMESTAMP, timestampExtractor), "\"_timestamp\":", commaMightBeNeeded);

        // version & version_type fields
        Object versionField = getMetadataExtractorOrFallback(Metadata.VERSION, versionExtractor);
        if (versionField != null) {
            if (commaMightBeNeeded) {
                list.add(",");
                commaMightBeNeeded = false;
            }
            commaMightBeNeeded = true;
            list.add(requestParameterNames.version);
            list.add(versionField);

            // version_type - only needed when a version is specified
            Object versionTypeField = getMetadataExtractorOrFallback(Metadata.VERSION_TYPE, versionTypeExtractor);
            if (versionTypeField != null) {
                if (commaMightBeNeeded) {
                    list.add(",");
                    commaMightBeNeeded = false;
                }
                commaMightBeNeeded = true;
                list.add(requestParameterNames.versionType);
                list.add(versionTypeField);
            }
        }

        // useful for update command
        otherHeader(list, commaMightBeNeeded);
        list.add("}}\n");
    }
613494
public function datalist( $id, $list = [] ) {
		$this->type = 'datalist';

		$attributes['id'] = $id;

		$html = [];

		if ( $this->is_associative_array( $list ) ) {
			foreach ( $list as $value => $display ) {
				$html[] = $this->option( $display, $value, null, [] );
			}
		} else {
			foreach ( $list as $value ) {
				$html[] = $this->option( $value, $value, null, [] );
			}
		}

		$attributes = $this->attributes( $attributes );

		$list = implode( '', $html );

		return $this->to_html_string( "<datalist{$attributes}>{$list}</datalist>" );
	}
235962
protected function prepareListImageStyle(array &$list)
    {
        foreach ($list as $id => &$item) {
            $item['directory_exists'] = is_dir($this->image_style->getDirectory($id));
        }
    }
1117833
protected function output()
    {
        $listItems = '';

        foreach ($this->lines as $li) {
            $icon = $this->buildIcon($li[0]);

            $listItems .= sprintf(self::LI_HTML, $icon, $li[1]);
        }

        return sprintf(self::UL_HTML, $listItems);
    }
535801
protected function renderChoices(ChoiceListInterface $list, $currentValue): string
    {
        if (! is_array($currentValue)) {
            $currentValue = [$currentValue];
        }

        $selected = $list->choicesForValue($currentValue);
        $html = [];

        foreach ($list->choices() as $key => $name) {
            $html[] = sprintf(
                '<option %s>%s</option>',
                $this->attributesToString(
                    [
                        'value' => $key,
                        'selected' => isset($selected[$key]),
                    ]
                ),
                $this->escapeHtml($name)
            );
        }

        return implode('', $html);
    }
16329
function toHtml(){
        global $OUTPUT;

        $managelink = '';
        if (has_capability('moodle/tag:manage', context_system::instance()) && $this->showstandard) {
            $url = new moodle_url('/tag/manage.php', array('tc' => $this->get_tag_collection()));
            $managelink = ' ' . $OUTPUT->action_link($url, get_string('managestandardtags', 'tag'));
        }

        return parent::toHTML() . $managelink;
    }
929378
public function render()
	{
		switch ($this->getContext()) {
			case BaseField::CONTEXT_LIST:
				$values = [];
				foreach ($this->getValue() as $item) {
					$values[] = $item->{$this->getDisplayField()};
				}

				return implode(', ', $values);

				break;
			case BaseField::CONTEXT_FORM:

				$baseModel  = $this->getAdmin()->getModel();
				$baseModel  = new $baseModel;
				$primaryKey = $baseModel->getKeyName();

				$relatedModel = $baseModel->{$this->getName()}()->getRelated();
				$relatedModel = get_class($relatedModel);

				$items = [];
				foreach ($relatedModel::all() as $item) {
					$items[$item->{$primaryKey}] = $item->{$this->getDisplayField()};
				}

				$id = $this->getAdmin()->getFormBuilder()->getIdentifier();

				$values = [];
				foreach ($relatedModel::where(Str::singular($baseModel->getTable()) . '_id', $id)->get() as $item) {
					$values[] = (string) $item->{$primaryKey};
				}

				return View::make('krafthaus/bauhaus::models.fields._has_many')
					->with('field',  $this)
					->with('items',  $items)
					->with('values', $values);

				break;
		}
	}
898723
private function formatListForApi(array $list)
    {
        $values = [];

        foreach ($list as $value) {
            $values[] = $this->formatValueForApi($value);
        }

        return ['values' => $values];
    }
984638
public function render()
    {
        $oTheme = oxNew(\OxidEsales\Eshop\Core\Theme::class);

        parent::render();

        // assign our list
        $this->_aViewData['mylist'] = $oTheme->getList();

        return 'theme_list.tpl';
    }
78956
private function _toFormatBreadcrumbs($list)
    {
        $format = [];
        foreach ($list as $val) {
            $format[$val[$this->pkField]] = $val[$this->showTitleField];
            if (array_key_exists('_child', $val)) {
                $format = ArrayHelper::merge($format, $this->_toFormatBreadcrumbs($val['_child']));
            }
        }
        
        return $format;
    }
467683
public function dl(array $list, array $attributes = [])
    {
        $attributes = $this->attributes($attributes);

        $html = "<dl{$attributes}>";

        foreach ($list as $key => $value) {
            $value = (array) $value;

            $html .= "<dt>$key</dt>";

            foreach ($value as $v_key => $v_value) {
                $html .= "<dd>$v_value</dd>";
            }
        }

        $html .= '</dl>';

        return $this->toHtmlString($html);
    }
1366738
public function dl(array $list, array $attributes = [])
    {
        $attributes = $this->attributes($attributes);
        $html       = "<dl{$attributes}>";

        foreach ($list as $key => $value) {
            $html .= "<dt>$key</dt><dd>$value</dd>";
        }

        $html .= '</dl>';

        return $html;
    }