Issue #0001788: [Dirigeants Opérationnels] use tabFctDir, change datePicker year range to 100years
This commit is contained in:
parent
71aee03d67
commit
bd89df3e57
@ -2591,16 +2591,16 @@ class SaisieController extends Zend_Controller_Action
|
||||
|
||||
switch ($mode) {
|
||||
case 'add':
|
||||
$fonction = $ws->getCatalogFctDir();
|
||||
$fonction = $this->fctDir();
|
||||
|
||||
$this->view->assign('fonction', json_decode($fonction));
|
||||
$this->view->assign('fonction', $fonction);
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
$fonction = $ws->getCatalogFctDir();
|
||||
$fonction = $this->fctDir();
|
||||
$infos = $ws->getDirigeantsOp($siren, $id);
|
||||
|
||||
$this->view->assign('fonction', json_decode($fonction));
|
||||
$this->view->assign('fonction', $fonction);
|
||||
$this->view->assign('infos', $infos->item[0]);
|
||||
break;
|
||||
}
|
||||
|
@ -44,10 +44,9 @@ foreach ($civilites as $civilite) {
|
||||
<label><?=$this->translate("Fonction") ?></label>
|
||||
<div class="field">
|
||||
<select name="codFct" style="width:380px;">
|
||||
<option value="0000">-</option>
|
||||
<?php foreach ($this->fonction as $val) {
|
||||
$selected=(intval($val->codeFct)==intval($this->infos->Code))?"selected":""; ?>
|
||||
<option value="<?=$val->codeFct ?>" <?=$selected?>><?=$val->libelle?></option>
|
||||
<?php foreach ($this->fonction as $key=>$val) {
|
||||
$selected=(intval($key)==intval($this->infos->Code))?"selected":""; ?>
|
||||
<option value="<?=$key ?>" <?=$selected?>><?=$val?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</div>
|
||||
@ -107,5 +106,5 @@ $('input[name=email]').on("focusout", function(){
|
||||
});
|
||||
|
||||
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
|
||||
$('input[name=naiss_date]').datepicker({ changeMonth: true, changeYear: true });
|
||||
$('input[name=naiss_date]').datepicker({ changeMonth: true, changeYear: true, yearRange: "-100:+0", });
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user