% layout 'default', title => "Sme server 2 - directory"; % content_for 'module' => begin
(DBG)route: <%= $c->current_route %>
(DBG)dir. access: <%= $dir_datas->{access}%>
%= 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_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'