Skip to content

Commit

Permalink
ks filter: removed context_form usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Oct 15, 2018
1 parent 5f6b490 commit 8820e63
Showing 1 changed file with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,37 +135,7 @@ protected function renderProxyField(Template $input_tpl, Input $input, RendererI
* @return string
*/
protected function renderInputFieldWithContext(Template $input_tpl, Input $input) {

$tpl = $this->getTemplate("tpl.context_form.html", true, true);
/**
* TODO: should we through an error in case for no name or render without name?
*
* if(!$input->getName()){
* throw new \LogicException("Cannot render '".get_class($input)."' no input name given.
* Is there a name source attached (is this input packed into a container attaching
* a name source)?");
* } */
if ($input->getName()) {
// $tpl->setVariable("NAME", $input->getName());
} else {
// $tpl->setVariable("NAME", "");
}

// $tpl->setVariable("LABEL", $input->getLabel());
$tpl->setVariable("INPUT", $this->renderInputField($input_tpl, $input));

if ($input->getByline() !== null) {
// $tpl->setCurrentBlock("byline");
// $tpl->setVariable("BYLINE", $input->getByline());
// $tpl->parseCurrentBlock();
}

if ($input->isRequired()) {
// $tpl->touchBlock("required");
}


return $tpl->get();
return $this->renderInputField($input_tpl, $input);
}


Expand Down

0 comments on commit 8820e63

Please sign in to comment.