Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render groups problems #156

Open
aleswita opened this issue Jun 21, 2017 · 3 comments
Open

Render groups problems #156

aleswita opened this issue Jun 21, 2017 · 3 comments

Comments

@aleswita
Copy link
Contributor

  • bug report? yes
  • feature request? no
  • version: 2.4.4

Description

Nette Forms have two rendering issues with using with groups

1. Can not place control to the specific position

Steps To Reproduce

Expected output (without groups):

protected function createComponentForm(): \Nette\Application\UI\Form {
	$form = new \Nette\Application\UI\Form;

	//$form->addGroup("group1");

	$form->addText("input1", "input1");

	$form->addText("input2", "input2");

	$form->addSubmit("send1", "send1");

	$form->addSubmit("send2", "send2");

	$form->addComponent(new \Nette\Forms\Controls\TextInput("input3"), "input3", "send1");

	return $form;
}

Invalid inputs position (with groups):

protected function createComponentForm(): \Nette\Application\UI\Form {
	$form = new \Nette\Application\UI\Form;

	$form->addGroup("group1");

	$form->addText("input1", "input1");

	$form->addText("input2", "input2");

	$form->addSubmit("send1", "send1");

	$form->addSubmit("send2", "send2");

	$form->addComponent(new \Nette\Forms\Controls\TextInput("input3"), "input3", "send1");

	return $form;
}

2. First control without group rendered on the end of form

Steps To Reproduce

protected function createComponentForm(): \Nette\Application\UI\Form {
	$form = new \Nette\Application\UI\Form;

	$form->addText("input1", "input1");

	$form->addGroup("group1");

	$form->addText("input2", "input2");

	$form->addSubmit("send1", "send1");

	$form->addSubmit("send2", "send2");

	return $form;
}
@dg dg added this to the v3.0 milestone Jun 21, 2017
@mabar
Copy link
Contributor

mabar commented Mar 18, 2019

Seems this is related to #199

@dg dg modified the milestones: v3.0, v3.1 Apr 20, 2020
@dg dg removed this from the v3.1 milestone Jan 19, 2021
@markoph
Copy link

markoph commented Aug 21, 2023

Hi, we bumped into this issue. I am just pinging ticket so it doesn't get closed because of inactivity.

@dg
Copy link
Member

dg commented Oct 5, 2023

Groups really do behave this way and there is nothing we can do about it on principle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants