";
return $form;
}
/*
* Sauvegarde du formulaire, revient à remplir la propriété parameters et appeler la méthode parente...
*/
public function save_form(){
global $cms_module_common_view_template_choice;
global $cms_module_common_view_templates;
global $cms_module_common_view_django_template_content;
$this->parameters['active_template'] = $this->stripslashes($cms_module_common_view_django_template_content);
return parent::save_form();
}
public function render($datas){
return H2o::parseString($this->parameters['active_template'])->render($datas);
}
public function get_manage_form(){
global $base_path;
//variables persos...
global $cms_template;
global $cms_template_delete;
if(!$this->managed_datas) $this->managed_datas = array();
if($this->managed_datas['templates'][$cms_template_delete]) unset($this->managed_datas['templates'][$cms_template_delete]);
$form="
";
if($this->managed_datas['templates']){
foreach($this->managed_datas['templates'] as $key => $infos){
$form.="