developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#756 closed bug (worksforme)

htmleditor jForm not display in a sub template

Reported by: foxmask Owned by:
Priority: normal Milestone: jelix 1.1
Component: jelix:forms Version: trunk
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

here is my form

<htmleditor ref="dl_desc" required="true">
	<label locale="downloads~common.dl_desc"/>
</htmleditor>

this piece of code does not display the textarea with the WYSIWYG toolbar :

       $tpl->assign('form', $form);
        $rep = $this->getResponse('html');        
        $rep->title = jLocale::get('add.title.page');
        $tpl->assign('action','downloads~admin:add');
        $rep->bodyTpl = 'downloads~admin_main';
        $rep->body->assign("MAIN", $tpl->fetch('admin_edit'));        
        return $rep;          

this one does

       $tpl->assign('form', $form);
        $rep = $this->getResponse('html');        
        $rep->title = jLocale::get('add.title.page');
        $tpl->assign('action','downloads~admin:add');   
        $rep->body->assign("MAIN", $tpl->fetch('admin_edit'));        
        return $rep;          

but in this case i cant use my "main" template.

Change History (1)

comment:1 Changed 12 years ago by laurentj

  • Resolution set to worksforme
  • Status changed from new to closed

I created the same test, with a sample controller, and it's works for me... Perhaps you missed something in your template ?

Note: See TracTickets for help on using tickets.