Render quick search form.

@param \mod_forum\output\quick_search_form $form The renderable.
@return string
192983
public function render_quick_search_form(\mod_forum\output\quick_search_form $form) {
        return $this->render_from_template('mod_forum/quick_search_form', $form->export_for_template($this));
    }
585180
def render_form(form, **kwargs):
    
    renderer_cls = get_form_renderer(**kwargs)
    return renderer_cls(form, **kwargs).render()
1172401
private function renderForm($form, $data = [])
    {
        // Check for tag name
        if ($form->tagName != 'form') {
            return $this;
        }

        // Set form values
        FormHelper::setValues($this->getHTMLHandler(), $form, $data['values']);

        return $this;
    }
154401
public function render(string $searchform): string
    {
        $home_url = \home_url('/');

        return '<div class="search-wrap" itemscope itemtype="http://schema.org/WebSite">
            <meta itemprop="url" content="'.$home_url.'"/>

            <form role="search" method="get" class="form search" action="'.
                $home_url.'" itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction">
                <meta itemprop="target" content="'.$home_url.'?s={s}" />

                <label>
                    <span class="screen-reader-text">'.
                        \esc_html__('Search for:', 'jentil').'</span>

                    <input itemprop="query-input" type="search" placeholder="'.
                        \esc_attr__('Search', 'jentil').
                        '" class="input search" name="s" value="'.
                        (\get_search_query() ?: '').'" />
                </label>

                <button type="submit" class="button submit">
                    <span class="fas fa-search fa-sm" aria-hidden="true"></span>

                    <span class="search-button-text icon-text">'.
                        \esc_html__('Search', 'jentil').'</span>
                </button>
            </form>
        </div>';
    }
153973
public function renderForm($options = NULL) {

	//Verify if user send options if not I declare
	if(is_null($options))
	{
	  	$options = array(
		  	'button_type' => 'image',
		  	'button_class' => 'btn-paid-khipu',
		  	'button_submit' => array( 'options' => array(
										
										'value' => 'Pagar con Khipu'
										)),
		  	'button_image' => array( 'options' => array(
										'size' => '100x50',
										'url' => NULL,
										))


	  );
	}

	$values = $this->getFormLabels();
	$html = new \DOMDocument();
	$html->formatOutput = true;

	$form = $html->createElement('form');
	$form->setAttribute('action', $this->getApiUrl());
	$form->setAttribute('method', 'POST');
	foreach($values as $name => $value) {
	  	$input_hidden = $html->createElement('input');
	  	$input_hidden->setAttribute('type', 'hidden');
	  	$input_hidden->setAttribute('name', $name);
	  	$input_hidden->setAttribute('value', $value);
	  	$form->appendChild($input_hidden);
	}
	$input_hidden = $html->createElement('input');
	$input_hidden->setAttribute('type', 'hidden');
	$input_hidden->setAttribute('name', 'agent');
	$input_hidden->setAttribute('value', $this->agent);
	$form->appendChild($input_hidden);

	if($options['button_type'] === 'image')
	{
	  	//Verify if user use custom URL
	  	if(! is_null($options['button_image']['options']['url']) )
	  	{
			$submit = $html->createElement('input');
	  		$submit->setAttribute('class', $options['button_class']);
			$submit->setAttribute('type', 'image');
			$submit->setAttribute('src', $options['button_image']['options']['url']);
	  	}
	  	else
	  	{
	  		//We use default khipu button
		  	$buttons = Khipu::getButtonsKhipu();
		  	if (isset($buttons[$options['button_image']['options']['size']])) {
				$button = $buttons[$options['button_image']['options']['size']];
		  	}
		  	else {
				$button = $buttons['100x50'];
		  	}
		  	$submit = $html->createElement('input');
	  		$submit->setAttribute('class', $options['button_class']);
		  	$submit->setAttribute('type', 'image');
		  	$submit->setAttribute('src', $button);
	  	}
	  
	}
	else
	{
	  	$submit = $html->createElement('input');
	  	$submit->setAttribute('type', 'submit');
	  	$submit->setAttribute('class', $options['button_class']);
	  	$submit->setAttribute('value', $options['button_submit']['options']['value']);
	}

	$form->appendChild($submit);

	$html->appendChild($form);

	return $html->saveHTML();
  }
135762
public function render(Nette\Forms\Form $form, $mode = null)
    {
        $form->getElementPrototype()->setClass('form-inline');

        foreach ($form->getControls() as $control) {
            if ($control instanceof Controls\Button) {
                $usedPrimary = true;
            } elseif ($control instanceof Controls\TextBase ||
                $control instanceof Controls\SelectBox ||
                $control instanceof Controls\MultiSelectBox) {
                $control->getControlPrototype()->addClass('form-control');
            } elseif ($control instanceof Controls\Checkbox ||
                $control instanceof Controls\CheckboxList ||
                $control instanceof Controls\RadioList) {
                $control->getSeparatorPrototype()->setName('div')->addClass($control->getControlPrototype()->type);
            }
        }

        return parent::render($form, $mode);
    }
559339
public function updateSearchForm(Form $form)
    {
        /** @var DropdownField $filterField */
        $filterField = $form->Fields()->fieldByName('Search__FilterClass');
        if ($filterField) {
            $filterField->setEmptyString('')->setHasEmptyDefault(false);
        }
    }
1122923
public function renderForm(Form $form)
	{
		$content = '';
		foreach ($form as $element)
		{
			$content .= $this->render($element);
		}

		$form->setAttribute('role', 'form');

		return Html::tag('form', $form->getAttributes(), $content);
	}
1049877
protected function getConditionBuilder(Form $form)
    {
        $builderClosure = $form->getConfig()->getAttribute('filter_condition_builder');

        $builder = new ConditionBuilder();

        if ($builderClosure instanceof \Closure) {
            $builderClosure($builder);
        } else {
            $this->buildDefaultConditionNode($form, $builder->root('AND'));
        }

        return $builder;
    }
414540
function toHtml() {
        include_once('HTML/QuickForm/Renderer/Default.php');
        $renderer = new HTML_QuickForm_Renderer_Default();
        $renderer->setElementTemplate('{element}');
        parent::accept($renderer);
        return $renderer->toHtml();
    }
289250
public function search($data, $form)
    {
        foreach ($data as $key => $value) {
            // Ensure we clear any null values
            // so they don't mess up the list
            if (empty($data[$key])) {
                unset($data[$key]);
            }

            // Ensure we clear any null values
            // so they don't mess up the list
            if (strpos($key, "action_") !== false) {
                unset($data[$key]);
            }
        }

        $this->setSearchSession($data);

        return $this->redirectBack();
    }
911060
public function searchBoxAction()
    {
        $response = new Response();

        $simpleSearch = new SimpleSearch();
        $form = $this->createForm($this->get('ezdemo.form.type.simple_search'), $simpleSearch);

        return $this->render(
            'eZDemoBundle::page_header_searchbox.html.twig',
            array(
                'form' => $form->createView(),
            ),
            $response
        );
    }
621443
public function updateSearchForm($form){
		if($this->modelIsMultiSitesAware()) {
			$managedSites = Multisites::inst()->sitesManagedByMember();

			$source = Site::get()->filter('ID', Multisites::inst()->sitesManagedByMember())->map('ID', 'Title')->toArray();
			$plural = singleton($this->owner->modelClass)->plural_name();
			if(count($source)){
				$activeSite = $this->getActiveSite();
				$form->Fields()->push(DropdownField::create(
					'SiteID', 
					"Site: ", 
					$source,
					$activeSite ? $activeSite->ID : null
				));
			}
		}
	}
194833
public function render_assign_form(assign_form $form) {
        $o = '';
        if ($form->jsinitfunction) {
            $this->page->requires->js_init_call($form->jsinitfunction, array());
        }
        $o .= $this->output->box_start('boxaligncenter ' . $form->classname);
        $o .= $this->moodleform($form->form);
        $o .= $this->output->box_end();
        return $o;
    }
393911
public function getSearchForm($searchform)
    {
        if ($view = \Municipio\Helper\Template::locateTemplate('searchform.blade.php')) {
            $view = $this->cleanViewPath($view);
            $this->loadController($view);
            $this->render($view);
            return false;
        }

        return $searchform;
    }
1027213
private function renderForm(Form $form) : string
    {
        $html = '';

        foreach ($form->getComponents() as $component) {
            $html .= $this->renderErrors($component);

            if ($component instanceof Element) {
                $html .= $this->renderElement($component);
            } elseif ($component instanceof Group) {
                foreach ($component->getElements() as $element) {
                    $html .= $this->renderElement($element);
                }
            }
        }

        return $html;
    }
281225
public function formToArray($form)
    {
        $result = [];
        if (preg_match_all('/<input[^>]*>/sm', $form, $inputs) !== false) {
            foreach ($inputs[0] as $input) {
                if (preg_match('/name=["\']([^"\']*)["\']\s+value=["\']([^"\']*)["\']/', $input, $match) !== false) {
                    if (count($match) === 3) {
                        $result[$match[1]] = $match[2];
                    }
                }
            }
        }

        return $result;
    }