Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2137

Přidáno uživatelem David Raška před asi 11 roky(ů)

Upravy:
- closes #602: Oprava vytvareni help::hint u pridavani a editace

Zobrazit rozdíly:

freenetis/branches/1.1/application/controllers/device_active_links.php
$form = new Forge();
$form->input('url_pattern')
->label(__('URL pattern').' '.help::hint('url_pattern').':')
->label('URL pattern')
->help(help::hint('url_pattern'))
->rules('required');
$form->input('name')
->label(__('Name').' '.help::hint('active_link_name').':');
->label('Name')
->help(help::hint('active_link_name'));
$form->input('title')
->label(__('Link title').' '.help::hint('active_link_title').':')
->label('Link title')
->help(help::hint('active_link_title'))
->rules('required');
$form->dropdown('show_in_user_grid')
......
->size(20);
$form->dropdown('device_templates[]')
->label(__('Device templates').' '.help::hint('active_link_device_templates').':')
->label('Device templates')
->help(help::hint('active_link_device_templates'))
->options($device_templates)
->multiple('multiple')
->size(20);
......
$form = new Forge();
$form->input('url_pattern')
->label(__('URL pattern').' '.help::hint('url_pattern').':')
->label('URL pattern')
->help(help::hint('url_pattern'))
->rules('required')
->value($active_link->url_pattern);
$form->input('name')
->label(__('Name').' '.help::hint('active_link_name').':')
->label('Name')
->help(help::hint('active_link_name'))
->value($active_link->name);
$form->input('title')
->label(__('Link title').' '.help::hint('active_link_title').':')
->label('Link title')
->help(help::hint('active_link_title'))
->rules('required')
->value($active_link->title);
......
->size(20);
$form->dropdown('device_templates[]')
->label(__('Device templates').' '.help::hint('active_link_device_templates').':')
->label('Device templates')
->help(help::hint('active_link_device_templates'))
->options($device_templates)
->selected($selected_device_templates)
->multiple('multiple')

Také k dispozici: Unified diff