addition of help sentence

This commit is contained in:
Marion Muszynski 2016-12-08 11:54:04 +01:00
parent 0569cdea43
commit e55202c0d0
2 changed files with 27 additions and 26 deletions

View File

@ -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'].'"' : '').'/> <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['required']) && $p['required']) ? '<sup> *</sup>' : '') . '
' . ((isset($p['hint']) && $p['hint']) ? '<p class="hint">'.$p['hint'].'</p>' : '') . ' ' . ((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'] : '') . ' ' . ((isset($p['html']) && $p['html']) ? $p['html'] : '') . '
</div>'; </div>';
} }

View File

@ -518,36 +518,36 @@ class AdminPhileaMagistor extends AdminTab {
$form .= $helperForm->renderForm(false, NULL, NULL, true); $form .= $helperForm->renderForm(false, NULL, NULL, true);
if($cookie->id_employee == 1) { $helperForm = new HelperForm();
$helperForm = new HelperForm(); $helperForm->_forms = array(
$helperForm->_forms = array( array(
array( 'action' => $base_link,
'action' => $base_link, 'legend' => $this->l('Export des commandes envoyées à Philéa'),
'legend' => $this->l('Export des commandes envoyées à Philéa'), 'inputs' => array(
'inputs' => array( array(
array( 'type' => 'text',
'type' => 'text', 'name' => 'date_from',
'name' => 'date_from', 'label' => $this->l('De :'),
'label' => $this->l('De :'), 'help' => 'Format YYYY-MM-DD'
),
array(
'type' => 'text',
'name' => 'date_to',
'label' => $this->l('A :'),
),
), ),
'actions' => array( array(
array( 'type' => 'text',
'type' => 'submit', 'name' => 'date_to',
'name' => 'exportCMDPhilea', 'label' => $this->l('A :'),
'label' => $this->l('Exporter') '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(); $CRR_list = $this->getCRRList();