addition of help sentence
This commit is contained in:
parent
0569cdea43
commit
e55202c0d0
@ -373,6 +373,7 @@ class HelperForm{
|
||||
<input type="text" ' . $disabled . ' name="'.$p['name'].'" id="'.(isset($p['id']) ? $p['id'] : $p['name']).'" value="'.($this->_object ? $this->_object->{$p['name']} : $default_value ).'"'.(isset($p['css']) ? 'style="'.$p['css'].'"' : '').'/>
|
||||
' . ((isset($p['required']) && $p['required']) ? '<sup> *</sup>' : '') . '
|
||||
' . ((isset($p['hint']) && $p['hint']) ? '<p class="hint">'.$p['hint'].'</p>' : '') . '
|
||||
' . ((isset($p['help']) && $p['help']) ? '<p class="help">'.$p['help'].'</p>' : '') . '
|
||||
' . ((isset($p['html']) && $p['html']) ? $p['html'] : '') . '
|
||||
</div>';
|
||||
}
|
||||
|
@ -518,36 +518,36 @@ class AdminPhileaMagistor extends AdminTab {
|
||||
|
||||
$form .= $helperForm->renderForm(false, NULL, NULL, true);
|
||||
|
||||
if($cookie->id_employee == 1) {
|
||||
$helperForm = new HelperForm();
|
||||
$helperForm->_forms = array(
|
||||
array(
|
||||
'action' => $base_link,
|
||||
'legend' => $this->l('Export des commandes envoyées à Philéa'),
|
||||
'inputs' => array(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'name' => 'date_from',
|
||||
'label' => $this->l('De :'),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'name' => 'date_to',
|
||||
'label' => $this->l('A :'),
|
||||
),
|
||||
$helperForm = new HelperForm();
|
||||
$helperForm->_forms = array(
|
||||
array(
|
||||
'action' => $base_link,
|
||||
'legend' => $this->l('Export des commandes envoyées à Philéa'),
|
||||
'inputs' => array(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'name' => 'date_from',
|
||||
'label' => $this->l('De :'),
|
||||
'help' => 'Format YYYY-MM-DD'
|
||||
),
|
||||
'actions' => array(
|
||||
array(
|
||||
'type' => 'submit',
|
||||
'name' => 'exportCMDPhilea',
|
||||
'label' => $this->l('Exporter')
|
||||
)
|
||||
array(
|
||||
'type' => 'text',
|
||||
'name' => 'date_to',
|
||||
'label' => $this->l('A :'),
|
||||
'help' => 'Format YYYY-MM-DD'
|
||||
),
|
||||
),
|
||||
'actions' => array(
|
||||
array(
|
||||
'type' => 'submit',
|
||||
'name' => 'exportCMDPhilea',
|
||||
'label' => $this->l('Exporter')
|
||||
)
|
||||
)
|
||||
);
|
||||
)
|
||||
);
|
||||
|
||||
$form .= $helperForm->renderForm(false, NULL, NULL, true);
|
||||
}
|
||||
$form .= $helperForm->renderForm(false, NULL, NULL, true);
|
||||
|
||||
$CRR_list = $this->getCRRList();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user