Revize 1108
Přidáno uživatelem Michal Kliment před více než 13 roky(ů)
freenetis/branches/testing/application/controllers/devices.php | ||
---|---|---|
|
||
$form->input('trade_name')
|
||
->label(url_lang::lang('texts.Trade name').':')
|
||
->rules('length[1,50]');
|
||
->rules('length[1,50]')
|
||
->autocomplete('json/device_trade_name');
|
||
|
||
$form->dropdown('type')
|
||
->label(url_lang::lang('texts.Type').':')
|
||
... | ... | |
{
|
||
$form->input('login')
|
||
->label(url_lang::lang('texts.username').':')
|
||
->rules('length[0,30]');
|
||
->rules('length[0,30]')
|
||
->autocomplete('json/device_login');
|
||
}
|
||
|
||
if ($this->acl_check_new(get_class($this),'password'))
|
||
{
|
||
$form->input('login_password')
|
||
->label(url_lang::lang('texts.password').':')
|
||
->rules('length[0,30]');
|
||
->rules('length[0,30]')
|
||
->autocomplete('json/device_password');
|
||
}
|
||
|
||
$form->textarea('comment')
|
||
... | ... | |
|
||
$form->input('trade_name')
|
||
->label(url_lang::lang('texts.Trade name').':')
|
||
->rules('length[2,50]');
|
||
->rules('length[2,50]')
|
||
->autocomplete('json/device_trade_name');
|
||
|
||
$form->dropdown('type')
|
||
->label(url_lang::lang('texts.Type').':')
|
||
... | ... | |
{
|
||
$form->input('login')
|
||
->label(url_lang::lang('texts.username').':')
|
||
->rules('length[0,30]');
|
||
->rules('length[0,30]')
|
||
->autocomplete('json/device_login');
|
||
}
|
||
|
||
if ($this->acl_check_new(get_class($this),'password'))
|
||
{
|
||
$form->input('login_password')
|
||
->label(url_lang::lang('texts.password').':')
|
||
->rules('length[0,30]');
|
||
->rules('length[0,30]')
|
||
->autocomplete('json/device_password');
|
||
}
|
||
|
||
$form->textarea('comment')
|
||
... | ... | |
$form->input('trade_name')
|
||
->label(url_lang::lang('texts.Trade name').':')
|
||
->rules('length[1,50]')
|
||
->value($device->trade_name);
|
||
->value($device->trade_name)
|
||
->autocomplete('json/device_trade_name');
|
||
|
||
$form->dropdown('type')
|
||
->label(url_lang::lang('texts.Type'))
|
||
... | ... | |
$form->input('login')
|
||
->label(url_lang::lang('texts.username').':')
|
||
->rules('length[0,30]')
|
||
->value($device->login);
|
||
->value($device->login)
|
||
->autocomplete('json/device_login');
|
||
}
|
||
|
||
if ($this->acl_check_edit(get_class($this),'password'))
|
||
... | ... | |
$form->input('login_password')
|
||
->label(url_lang::lang('texts.password').':')
|
||
->rules('length[0,30]')
|
||
->value($device->password);
|
||
->value($device->password)
|
||
->autocomplete('json/device_password');
|
||
}
|
||
|
||
$form->textarea('comment')
|
freenetis/branches/testing/application/libraries/Form_Input.php | ||
---|---|---|
unset($data['label']);
|
||
unset($data['message']);
|
||
unset($data['help']);
|
||
unset($data['autocomplete']);
|
||
|
||
// array with aliases of validation function
|
||
$alias = array('numeric' => 'number');
|
freenetis/branches/testing/application/views/forge_template.php | ||
---|---|---|
<script type="text/javascript">
|
||
|
||
$(document).ready(function(){
|
||
<?php foreach ($inputs as $input): ?>
|
||
<?php if ($input->autocomplete != ''): ?>
|
||
$("#<?php echo $input->name ?>").autocomplete({source: "<?php echo url_lang::base().$input->autocomplete ?>"});
|
||
<?php endif ?>
|
||
<?php endforeach ?>
|
||
});
|
||
</script>
|
||
|
||
<?php echo $open; ?>
|
||
<table cellspacing="0" class="form" id="form_table">
|
||
<?php if ($title != ''): ?>
|
Také k dispozici: Unified diff
Do Forge pridana moznost naseptavace - implementovano u Vyrobniho nazvu zarizeni a jmena a hesla zarizeni.