70 lines
2.3 KiB
Plaintext
70 lines
2.3 KiB
Plaintext
% layout 'default', title => "Sme server 2 - geneweb";
|
|
|
|
% content_for 'module' => begin
|
|
<div id="module" class="module geneweb-panel">
|
|
% if ($config->{debug} == 1) {
|
|
<p>
|
|
%= dumper $c->current_route
|
|
</p>
|
|
% }
|
|
|
|
% if ( stash 'error' ) {
|
|
<br><div class=sme-error>
|
|
%= $c->render_to_string(inline => stash 'error')
|
|
</div>
|
|
%}
|
|
|
|
<h1><%= $title %></h1>
|
|
|
|
%= form_for 'geneweb' => (method => 'POST') => begin
|
|
%= $c->render_to_string(inline => $c->l('gnw_DESC_GWSETUP'))
|
|
<p><span class=label>
|
|
%= l('gnw_GWSETUP_STATUS'), class => 'label'
|
|
</span><span class=data>
|
|
% param 'Status_gws' => $c->get_gws_st() unless param 'Status_gws';
|
|
%= select_field 'Status_gws' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => 'input'
|
|
</span></p>
|
|
<p>
|
|
%= $c->render_to_string(inline => $c->get_stat_gws())
|
|
|
|
%= $c->render_to_string(inline => $c->l('gnw_DESC_GWSETUP_ACCESS'))
|
|
<br><span class=label>
|
|
%=l 'gnw_GWSETUP_ACCESS', class => 'label'
|
|
</span><span class=data>
|
|
% param 'Access_gws' => $c->get_gws_ac() unless param 'Access_gws';
|
|
%= select_field 'Access_gws' => [[(l 'gnw_PRIVATE') => 'private'], [ (l 'gnw_PUBLIC') => 'public']], class => 'input'
|
|
</span></p>
|
|
|
|
%= $c->render_to_string(inline => $c->l('gnw_DESC_GENEWEB'))
|
|
<p><span class=label>
|
|
%= l('gnw_GENEWEB_STATUS'), class => 'label'
|
|
</span><span class=data>
|
|
% param 'Status_gnw' => $c->get_gnw_st() unless param 'Status_gnw';
|
|
%= select_field 'Status_gnw' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => 'input'
|
|
</span></p>
|
|
%= $c->render_to_string(inline => $c->get_stat_gwd())
|
|
|
|
<p><span class=label>
|
|
%=l 'gnw_GENEWEB_ACCESS', class => 'label'
|
|
</span><span class=data>
|
|
% param 'Access_gnw' => $c->get_gnw_ac() unless param 'Access_gnw';
|
|
%= select_field 'Access_gnw' => [[ (l 'gnw_PRIVATE') => 'private'], [ (l 'gnw_PUBLIC') => 'public']], class => 'input'
|
|
</span></p>
|
|
<p>
|
|
%= $c->render_to_string(inline => $c->l('gnw_DESC_GENEWEB_BASE_DIR_DESCRIPTION'))
|
|
<br><span class=label>
|
|
%=l 'gnw_LABEL_GENEWEB_BASE_DIR', class => 'label'
|
|
</span><span class=data>
|
|
% param 'Dbdir_gnw' => $c->get_gnw_dbdir() unless param 'Dbdir_gnw';
|
|
%= text_field 'Dbdir_gnw', class => 'input'
|
|
</span></p>
|
|
|
|
<div class='center'>
|
|
%= submit_button $c->l('SAVE'), class => 'action'
|
|
</div>
|
|
|
|
% end
|
|
|
|
</div>
|
|
%end
|