Template operation : message if there is no template

This commit is contained in:
Dany De Bontridder 2017-11-04 08:47:47 +01:00
parent 1800b89bee
commit 2c48befc1d

View file

@ -281,8 +281,11 @@ class Pre_operation_detail
if ( $this->jrn_def_id=='') $value=array();
$r="";
$r.='<h2>'._("Choisissez un modèle").'</h2>';
$r.=_('Cherche').' '.HtmlInput::filter_table('modele_op_tab', '0', '0');
if (count($value)==0) {
$r.=_("Vous n'avez encore sauvé aucun modèle");
return $r;
}
$r.=_('Cherche').' '.HtmlInput::filter_table('modele_op_tab', '0,1', '0');
$r.='<table style="width:100%" id="modele_op_tab">';
for ($i=0;$i<count($value);$i++) {
$r.='<tr class="'.(($i%2==0)?"even":"odd").'">';