(no commit message)

skala
Julio Montoya 15 years ago
parent 1e800afcaa
commit cbbb22ed7c
  1. 9
      main/admin/group_add.php

@ -43,19 +43,20 @@ $form = new FormValidator('group_add');
$form->addElement('header', '', $tool_name);
// name
$form->addElement('text', 'name', get_lang('Name'));
$form->addElement('text', 'name', get_lang('Name'), array('size'=>60));
$form->applyFilter('name', 'html_filter');
$form->applyFilter('name', 'trim');
$form->addRule('name', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('name', '', 'maxlength',120);
// Description
$form->addElement('text', 'description', get_lang('Description'));
$form->addElement('textarea', 'description', get_lang('Description'), array('rows'=>8, 'cols'=>58));
$form->applyFilter('description', 'html_filter');
$form->applyFilter('description', 'trim');
$form->addRule('name', '', 'maxlength',255);
// url
$form->addElement('text', 'url', get_lang('URL'));
$form->addElement('text', 'url', get_lang('URL'), array('size'=>35));
$form->applyFilter('url', 'html_filter');
$form->applyFilter('url', 'trim');

Loading…
Cancel
Save