% layout 'default', title => "Sme server 2 - directory"; % content_for 'module' => begin
%if (config->{debug} == 1) {

(DBG)route: <%= $c->current_route %>
(DBG)dir. access: <%= $dir_datas->{access}%>

%}

<%= $title %>


<%= $modul %> <% my $btn = l('SAVE'); %> %= form_for 'directory' => (method => 'POST') => begin

%= l('dir_LABEL_ROOT'), class => "" %= $dir_datas->{root}, class => ""

%=l 'dir_DESC_DIRECTORY_ACCESS', class => ""
%=l 'dir_DIRECTORY_ACCESS', class => "" % param 'access' => $dir_datas->{access} unless param 'access'; %= select_field 'access' => [[ (l 'NETWORKS_ALLOW_LOCAL') => 'private'], [ (l 'NETWORKS_ALLOW_PUBLIC') => 'public']], class => "", id => ""

%=l 'dir_DESC_DEPARTMENT', class => ""

%=l 'dir_DEPARTMENT', class => "" %= text_field 'department' => $dir_datas->{department}, class => ""

%=l 'dir_COMPANY', class => "" %= text_field 'company', $dir_datas->{company}, class => ""

%=l 'dir_STREET', class => "" %= text_field 'street' => $dir_datas->{street}, class => ""

%=l 'dir_CITY', class => "" %= text_field 'city', $dir_datas->{city}, class => ""

%=l 'dir_PHONENUMBER', class => "" %= text_field 'phonenumber', $dir_datas->{phonenumber}, class => ""

%=l 'dir_DESC_EXISTING', class => ""

%=l 'dir_EXISTING', class => "" %= select_field 'existing'=> [[ (l 'dir_LEAVE') => 'leave'], [ (l 'dir_UPDATE') => 'update' ]], class => ""


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

% end
%end