mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
support for additional parameters of type 'password'
This commit is contained in:
parent
619e8a8d30
commit
cfc2ca1e24
|
@ -152,16 +152,30 @@ $(document).ready( function() {
|
|||
)
|
||||
);
|
||||
break;
|
||||
case 'password':
|
||||
$this->formField(
|
||||
getMLText('task_'.$extname."_".$taskname."_".$param['name']),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'password',
|
||||
'id'=>'params_'.$param['name'],
|
||||
'name'=>'params['.$param['name'].']',
|
||||
'required'=>false
|
||||
)
|
||||
);
|
||||
break;
|
||||
default:
|
||||
?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="params_<?= $param['name'] ?>"><?php printMLText('task_'.$extname."_".$taskname."_".$param['name']);?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="params_<?= $param['name'] ?>" name="params[<?= $param['name'] ?>]" value="">
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
$this->formField(
|
||||
getMLText('task_'.$extname."_".$taskname."_".$param['name']),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'text',
|
||||
'id'=>'params_'.$param['name'],
|
||||
'name'=>'params['.$param['name'].']',
|
||||
'required'=>false
|
||||
)
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +183,7 @@ $(document).ready( function() {
|
|||
<div class="control-group">
|
||||
<label class="control-label" for="login"></label>
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn"><i class="icon-save"></i> <?php printMLText("save")?></button>
|
||||
<button type="submit" class="btn btn-primary"><i class="icon-save"></i> <?php printMLText("save")?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
@ -245,16 +259,32 @@ $(document).ready( function() {
|
|||
)
|
||||
);
|
||||
break;
|
||||
case 'password':
|
||||
$this->formField(
|
||||
getMLText("task_".$task->getExtension()."_".$task->getTask()."_".$param['name']),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'password',
|
||||
'id'=>'params_'.$param['name'],
|
||||
'name'=>'params['.$param['name'].']',
|
||||
'value'=>$task->getParameter()[$param['name']],
|
||||
'required'=>false
|
||||
)
|
||||
);
|
||||
break;
|
||||
default:
|
||||
?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="params_<?= $param['name'] ?>"><?php printMLText('task_'.$task->getExtension()."_".$task->getTask()."_".$param['name']);?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="params_<?= $param['name'] ?>" name="params[<?= $param['name'] ?>]" value="<?= $task->getParameter()[$param['name']] ?>">
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
$this->formField(
|
||||
getMLText("task_".$task->getExtension()."_".$task->getTask()."_".$param['name']),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'text',
|
||||
'id'=>'params_'.$param['name'],
|
||||
'name'=>'params['.$param['name'].']',
|
||||
'value'=>$task->getParameter()[$param['name']],
|
||||
'required'=>false
|
||||
)
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -262,7 +292,7 @@ $(document).ready( function() {
|
|||
<div class="control-group">
|
||||
<label class="control-label" for="login"></label>
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn"><i class="icon-save"></i> <?php printMLText("save")?></button>
|
||||
<button type="submit" class="btn btn-primary"><i class="icon-save"></i> <?php printMLText("save")?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue
Block a user