Jump to content

[Résolu] [Module] formulaire submit disparait


Recommended Posts

Bonjour,

 

dans le back office d'un module que je développe, je souhaite mettre à la fois une liste avec fields_list et aussi un formulaire avec fields_form

Mon problème est que le bouton submit du formulaire ne s'affiche pas quand il y a les deux ...

 

Est ce que vous savez comment je pourrai corriger ce problème ?

 

merci de votre aide !

 

 PS 1.6

public function renderList()
	{
		// list
		$this->addRowAction('edit');
		$this->addRowAction('delete');
		$this->bulk_actions = array(
			'delete' => array(
				'text' => $this->l('Delete selected items'),
				'confirm' => $this->l('Delete selected items?')
				)
			);
		$this->fields_list = array(
			'value' => array(
				'title' => $this->l('Angle'),
				'width' => 'auto',
			)				
		);
		$lists = parent::renderList();
		// form
		if (!($obj = $this->loadObject(true)))
			return;
		$this->fields_form = array(
			'legend' => array(
				'title' => $this->l('Pertes'),				
			),
			'editArray' => array(
				'angles' => $obj->getListAngle()
			),
			'submit' => array(
				'title' => $this->l('Save'),
				'class' => 'button'
			)
		);
		$lists .= parent::renderForm();
		return $lists;
	}
Edited by xmatox (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...