Fix: Some fix into the canvas for companies.
This commit is contained in:
parent
ebf77e8c92
commit
fb4d62c34a
@ -384,6 +384,7 @@ abstract class ActionsCardCommon
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->tpl['error'] = get_htmloutput_errors($this->object->error,$this->object->errors);
|
$this->tpl['error'] = get_htmloutput_errors($this->object->error,$this->object->errors);
|
||||||
|
if (is_array($GLOBALS['errors'])) $this->tpl['error'] = get_htmloutput_mesg('',$GLOBALS['errors'],'error');
|
||||||
|
|
||||||
if ($action == 'create')
|
if ($action == 'create')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -105,7 +105,7 @@ class ActionsCardCompany extends ActionsCardCommon
|
|||||||
|
|
||||||
parent::assign_values($action);
|
parent::assign_values($action);
|
||||||
|
|
||||||
$this->tpl['title'] = $this->getTitle($action);
|
$this->tpl['title'] = load_fiche_titre($this->getTitle($action));
|
||||||
|
|
||||||
$this->tpl['profid1'] = $this->object->idprof1;
|
$this->tpl['profid1'] = $this->object->idprof1;
|
||||||
$this->tpl['profid2'] = $this->object->idprof2;
|
$this->tpl['profid2'] = $this->object->idprof2;
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE CARD_CREATE.TPL.PHP COMPANY -->
|
<!-- BEGIN PHP TEMPLATE CARD_CREATE.TPL.PHP COMPANY -->
|
||||||
|
|
||||||
<?php print_fiche_titre($this->control->tpl['title']); ?>
|
<?php echo $this->control->tpl['title']; ?>
|
||||||
|
|
||||||
<?php dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']); ?>
|
<?php echo $this->control->tpl['error']; ?>
|
||||||
|
|
||||||
<?php if ($conf->use_javascript_ajax) { ?>
|
<?php if ($conf->use_javascript_ajax) { ?>
|
||||||
<?php echo $this->control->tpl['ajax_selecttype']; ?>
|
<?php echo $this->control->tpl['ajax_selecttype']; ?>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -22,11 +23,9 @@ $contact = $GLOBALS['objcanvas']->control->object;
|
|||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE CARD_EDIT.TPL.PHP COMPANY -->
|
<!-- BEGIN PHP TEMPLATE CARD_EDIT.TPL.PHP COMPANY -->
|
||||||
|
|
||||||
<?php
|
<?php echo $this->control->tpl['title']; ?>
|
||||||
print_fiche_titre($this->control->tpl['title']);
|
|
||||||
|
|
||||||
dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']);
|
<?php echo $this->control->tpl['error']; ?>
|
||||||
?>
|
|
||||||
|
|
||||||
<?php echo $this->control->tpl['ajax_selectcountry']; ?>
|
<?php echo $this->control->tpl['ajax_selectcountry']; ?>
|
||||||
<?php if ($this->control->tpl['js_checkVatPopup']) echo $this->control->tpl['js_checkVatPopup']; ?>
|
<?php if ($this->control->tpl['js_checkVatPopup']) echo $this->control->tpl['js_checkVatPopup']; ?>
|
||||||
|
|||||||
@ -65,8 +65,8 @@ class ActionsCardIndividual extends ActionsCardCommon
|
|||||||
$out='';
|
$out='';
|
||||||
|
|
||||||
if ($action == 'view') $out.= $langs->trans("Individual");
|
if ($action == 'view') $out.= $langs->trans("Individual");
|
||||||
if ($action == 'edit') $out.= $langs->trans("EditIndividual");
|
if ($action == 'edit') $out.= $langs->trans("EditCompany");
|
||||||
if ($action == 'create') $out.= $langs->trans("NewIndividual");
|
if ($action == 'create') $out.= $langs->trans("NewCompany");
|
||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ class ActionsCardIndividual extends ActionsCardCommon
|
|||||||
|
|
||||||
parent::assign_values($action);
|
parent::assign_values($action);
|
||||||
|
|
||||||
$this->tpl['title'] = $this->getTitle($action);
|
$this->tpl['title'] = load_fiche_titre($this->getTitle($action));
|
||||||
|
|
||||||
if ($action == 'create' || $action == 'edit')
|
if ($action == 'create' || $action == 'edit')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2011 Regis Houssin <regis@dolibarr.fr>
|
/* Copyright (C) 2010-2011 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,11 +20,9 @@
|
|||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE CARD_CREATE.TPL.PHP INDIVIDUAL -->
|
<!-- BEGIN PHP TEMPLATE CARD_CREATE.TPL.PHP INDIVIDUAL -->
|
||||||
|
|
||||||
<?php
|
<?php echo $this->control->tpl['title']; ?>
|
||||||
print_fiche_titre($this->control->tpl['title']);
|
|
||||||
|
|
||||||
dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']);
|
<?php echo $this->control->tpl['error']; ?>
|
||||||
?>
|
|
||||||
|
|
||||||
<?php if ($conf->use_javascript_ajax) { ?>
|
<?php if ($conf->use_javascript_ajax) { ?>
|
||||||
<?php echo $this->control->tpl['ajax_selecttype']; ?>
|
<?php echo $this->control->tpl['ajax_selecttype']; ?>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,11 +20,9 @@
|
|||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE CARD_EDIT.TPL.PHP INDIVIDUAL -->
|
<!-- BEGIN PHP TEMPLATE CARD_EDIT.TPL.PHP INDIVIDUAL -->
|
||||||
|
|
||||||
<?php
|
<?php echo $this->control->tpl['title']; ?>
|
||||||
print_fiche_titre($this->control->tpl['title']);
|
|
||||||
|
|
||||||
dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']);
|
<?php echo $this->control->tpl['error']; ?>
|
||||||
?>
|
|
||||||
|
|
||||||
<?php echo $this->control->tpl['ajax_selectcountry']; ?>
|
<?php echo $this->control->tpl['ajax_selectcountry']; ?>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user