% 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 => 'label' %= $dir_datas->{root}, class => 'data'

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

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

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

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

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

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

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

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

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


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

% end
%end