% my $btn = l('ADD');

%= form_for '/domains2' => (method => 'POST') => begin

## % if ( $dom_datas->{trt} eq "ADD" ) { %=l 'dom_CREATE_TITLE' % } else { %=l 'dom_MODIFY_TITLE' % $btn = l('MODIFY'); % }

%=l 'DOMAIN_NAME', class => "" % if ( $dom_datas->{trt} eq "ADD" ) { % param 'Domain' => $dom_datas->{domain} unless param 'Domain'; %= text_field 'Domain', class => "" % } else { %= hidden_field 'Domain' => $dom_datas->{domain} %= $dom_datas->{domain}, class => "" % }

%=l 'DESCRIPTION_BRIEF', class => "" % param 'Description' => $dom_datas->{description} unless param 'Description'; %= text_field 'Description', class => ""

%=l 'dom_CONTENT_FIELD_DESCRIPTION'
%= $c->l('dom_CONTENT', ''); % param 'Content' => $dom_datas->{content} unless param 'Content'; %= select_field 'Content', $c->content_options_list(), class => ""

%=l 'dom_DESC_NAMESERVERS'
%=l 'dom_LABEL_NAMESERVERS', class => "" % param 'Nameservers' => $dom_datas->{nameservers} unless param 'Nameservers'; %= select_field 'Nameservers', $c->nameserver_options_list(), class => ""

%= submit_button "$btn", class => ""

%= hidden_field 'trt' => $dom_datas->{trt}

%end