Compare commits

...

7 Commits

Author SHA1 Message Date
John Crisp
767cf3bc19 More review template fixes 2025-04-17 17:53:04 +02:00
John Crisp
dbdd5217d9 Update review template and fix typo 2025-04-17 17:27:15 +02:00
John Crisp
f516d2b759 Update review template and fix typo 2025-04-17 17:26:55 +02:00
John Crisp
4551efc1ed Remove template and update breadcrumbs 2025-04-16 20:06:58 +02:00
John Crisp
79b2e7f492 Fix remote Access remove network 2025-04-16 18:40:51 +02:00
John Crisp
93b8d4cb6f Fix form syntax issues and more cleaning 2025-04-16 18:09:49 +02:00
John Crisp
cc4e08b14a Finish template tidy 2025-04-15 20:43:24 +02:00
53 changed files with 983 additions and 699 deletions

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -29,7 +29,8 @@
<p>
<span class="">
%=l 'bac_ENABLE_TAPE_BACKUP'
</span><span class="">
</span>
<span class="">
% if ( $bac_datas->{status} eq 'checked' ) {
<input type='checkbox' name='Tapebackup' checked >
%} else {
@@ -42,7 +43,8 @@
<p>
<span class="">
%=l 'bac_TAPE_BACKUP_TIME'
</span><span class="">
</span>
<span class="">
% param 'BackupHour' => $bac_datas->{backupHour} unless param 'BackupHour';
%= text_field 'BackupHour', size => '2'
% param 'BackupMin' => $bac_datas->{backupMin} unless param 'BackupMin';
@@ -50,7 +52,8 @@
</span>
<!--span class="">
%=l 'AM/PM:'
<!--/span--><span class="">
<!--/span-->
<span class="">
% param 'BackupAMPM' => $bac_datas->{backupAMPM} unless param 'BackupAMPM';
%= select_field 'BackupAMPM' => ['AM', 'PM'], class => ""
</span>
@@ -59,7 +62,8 @@
<p>
<span class="">
%=l 'bac_LOAD_TAPE_REMINDER_TIME'
</span><span class="">
</span>
<span class="">
% param 'ReminderHour' => $bac_datas->{reminderHour} unless param 'ReminderHour';
%= text_field 'ReminderHour', size => '2'
% param 'ReminderMin' => $bac_datas->{reminderMin} unless param 'ReminderMin';
@@ -67,7 +71,8 @@
</span>
<!--span class="">
%=l 'AM/PM:'
<!--/span--><span class="">
<!--/span-->
<span class="">
% param 'ReminderAMPM' => $bac_datas->{reminderAMPM} unless param 'ReminderAMPM';
%= select_field 'ReminderAMPM' => ['AM', 'PM'], class => ""
</span>

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -29,19 +29,24 @@
%=l 'bac_WORKSTN_BACKUP_ENABLED'
<span class="">
%= $bac_datas->{status}
</span><br>
</span>
<br>
%= $c->render_to_string(inline => $c->workstnBackupConfig())
<p><h3>
<p>
<h3>
%= l 'bac_WORKSTATION_BACKUP_SETCONF'
</h3><br>
</h3>
<br>
<span class="">
%=l 'bac_SELECT_VFS_TYPE'
</span><span class="">
</span>
<span class="">
% param 'VFSType' => $bac_datas->{vfstype} unless param 'VFSType';
%= select_field 'VFSType' => $c->get_VFSType_options(), class => ""
</span></p>
</span>
</p>
%= hidden_field 'Function' => $bac_datas->{'function'} . '1'
%= submit_button $c->l('NEXT'), class => ""

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -11,7 +11,7 @@
% }
% if ( stash 'error' ) {
<br><div class="">
<br><div>
%= $c->render_to_string(inline => stash 'error')
</div>
%}
@@ -29,7 +29,8 @@
<p>
<span class="">
%=l 'bac_ENABLE_WORKSTN_BACKUP'
</span><span class="">
</span>
<span class="">
% if ( $bac_datas->{status} eq 'checked' ) {
<input type='checkbox' name='Workstnbackup' checked >
%} else {
@@ -38,60 +39,73 @@
</span>
</p>
<p><h3>
<p>
<h3>
%= l 'bac_WORKSTATION_BACKUP_DEST'
</h3><br>
</h3>
<br>
% if ( $bac_datas->{vfstype} =~ m/cifs|nfs/s ) {
<span class="">
%=l 'bac_WORKSTN_NAME'
</span><span class="">
% param 'BackupwkStation' => $bac_datas->{station} unless param 'BackupwkStation';
%= text_field 'BackupwkStation', size => 20, class => ""
</span><br>
<span class="">
%=l 'bac_WORKSTN_NAME'
</span>
<span class="">
% param 'BackupwkStation' => $bac_datas->{station} unless param 'BackupwkStation';
%= text_field 'BackupwkStation', size => 20, class => ""
</span>
<br>
%}
% if ( $bac_datas->{vfstype} eq 'usb' ) {
<span class="">
%=l 'bac_local removable disk'
</span><span class="">
% param 'BackupwkFolder' => $bac_datas->{mount} unless param 'BackupwkFolder';
%= select_field 'BackupwkFolder' => $c->get_BackupwkDest_options( $bac_datas->{vfstype}), class => ""
</span><br>
<span class="">
%=l 'bac_local removable disk'
</span>
<span class="">
% param 'BackupwkFolder' => $bac_datas->{mount} unless param 'BackupwkFolder';
%= select_field 'BackupwkFolder' => $c->get_BackupwkDest_options( $bac_datas->{vfstype}), class => ""
</span>
<br>
% } elsif ( $bac_datas->{vfstype} eq 'mnt') {
<span class="">
%=l 'bac_Mounted disk'
</span><span class="">
% param 'BackupwkFolder' => $bac_datas->{folder} unless param 'BackupwkFolder';
%= select_field 'BackupwkFolder' => $c->get_BackupwkDest_options( $bac_datas->{vfstype}), class => ""
</span><br>
%=l 'bac_Mounted disk'
</span>
<span class="">
% param 'BackupwkFolder' => $bac_datas->{folder} unless param 'BackupwkFolder';
%= select_field 'BackupwkFolder' => $c->get_BackupwkDest_options( $bac_datas->{vfstype}), class => ""
</span>
<br>
% } else {
<span class="">
%=l 'bac_SHARED_FOLDER_NAME'
</span><span class="">
% param 'BackupwkFolder' => $bac_datas->{folder} unless param 'BackupwkFolder';
%= text_field 'BackupwkFolder', size => 20, class => ""
</span><br>
<span class="">
%=l 'bac_SHARED_FOLDER_NAME'
</span><span class="">
% param 'BackupwkFolder' => $bac_datas->{folder} unless param 'BackupwkFolder';
%= text_field 'BackupwkFolder', size => 20, class => ""
</span>
<br>
%}
% if ( $bac_datas->{vfstype} eq 'cifs' ) {
<span class="">
%=l 'bac_WORKSTN_LOGIN'
</span><span class="">
% param 'BackupwkLogin' => $bac_datas->{login} unless param 'BackupwkLogin';
%= text_field 'BackupwkLogin', size => 12, class => ""
</span><br><span class="">
%=l 'bac_PASSWORD'
</span><span class="">
% param 'BackupwkPassword' => $bac_datas->{password} unless param 'BackupwkPassword';
%= password_field 'BackupwkPassword', size => 12, class => ""
</span>
<span class="">
%=l 'bac_WORKSTN_LOGIN'
</span><span class="">
% param 'BackupwkLogin' => $bac_datas->{login} unless param 'BackupwkLogin';
%= text_field 'BackupwkLogin', size => 12, class => ""
</span>
<br>
<span class="">
%=l 'bac_PASSWORD'
</span><span class="">
% param 'BackupwkPassword' => $bac_datas->{password} unless param 'BackupwkPassword';
%= password_field 'BackupwkPassword', size => 12, class => ""
</span>
%}
</p><br><h3>
%= l 'bac_WORKSTN_BACKUP_SETTINGS'
</h3><br>
<p><span class="">
<p>
<span class="">
%=l 'bac_NUMBER_OF_SETS'
</span><span class="">
</span>
<span class="">
% param 'SetsNumber' => $bac_datas->{setsNumber} unless param 'SetsNumber';
%= text_field 'SetsNumber', size => '3'
</span>
@@ -104,7 +118,8 @@
<p>
<span class="">
%=l 'bac_WORKSTN_BACKUP_TIME'
</span><span class="">
</span>
<span class="">
% param 'BackupwkHour' => $bac_datas->{hour} unless param 'BackupwkHour';
%= text_field 'BackupwkHour', size => '2'
% param 'BackupwkMin' => $bac_datas->{min} unless param 'BackupwkMin';
@@ -119,23 +134,25 @@
<p><span class="">
%=l 'bac_WORKSTN_TIMEOUT'
</span><span class="">
</span>
<span class="">
% param 'BackupwkTimeout' => $bac_datas->{timeout} unless param 'BackupwkTimeout';
%= text_field 'BackupwkTimeout', size => '2'
</span>
%=l 'bac_INC_ONLY_TIMEOUT'
<span class="">
% if ( $bac_datas->{incOnlyTimeout} eq 'checked' ) {
<input type='checkbox' name='IncOnlyTimeout' checked >
<input type='checkbox' name='IncOnlyTimeout' checked >
%} else {
%= check_box 'IncOnlyTimeout'
%= check_box 'IncOnlyTimeout'
%}
</span></p>
<p>
<span class="">
%=l 'bac_COMPRESSION_LEVEL'
</span><span class="">
</span>
<span class="">
% param 'Compression' => $bac_datas->{compression} unless param 'Compression';
%= text_field 'Compression', size => '1'
</span>
@@ -143,7 +160,8 @@
<span class="">
% param 'Dof' => $bac_datas->{dof} unless param 'Dof';
%= select_field 'Dof' => $c->get_dow_list(), class => ""
</p><br>
</p>
<br>
%= hidden_field 'Function' => $bac_datas->{function}

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -33,7 +33,8 @@
<br><br><span class="">
%=l 'bac_SELECT_BACKUP_FILE'
</span><span class="">
</span>
<span class="">
%= select_field 'Backupset' => $c->get_Backupset_options(), class => ""
</span><br><br>

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -26,17 +26,22 @@
<h3><%=l 'bac_BACKUP_CHOICE' %></h3>
<br><span class="">
<br>
<span class="">
%=l 'bac_SELECT_BACKUP_FILE'
</span><span class="">
</span>
<span class="">
%= select_field 'Backupset' => $c->get_Restoreset_options(), class => ""
</span><br>
<br><span class="">
</span>
<br>
<br>
<span class="">
%=l 'bac_FILTER_EXPRESSION'
</span><span class="">
</span>
<span class="">
%= text_field 'Filterexp', size => 32, class => ""
</span><br>
</span>
<br>
<br>
%= hidden_field 'Function' => $bac_datas->{'function'}
%= submit_button $c->l('PERFORM'), class => ""

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -19,7 +19,8 @@
<h1><%= $title%></h1>
<h2><%=l 'bac_WORKSTN_SELECTIVE_RESTORE' %></h2><br>
<h2><%=l 'bac_WORKSTN_SELECTIVE_RESTORE' %></h2>
<br>
%= $c->render_to_string(inline => (l 'bac_READ_COMPLETE'))
@@ -27,15 +28,19 @@
<br><span class="">
%=l 'bac_SELECT_FILES_TO_RESTORE'
</span><span class="">
</span>
<span class="">
%= select_field 'Restorefiles' => $c->get_Restorefiles_options($bac_datas->{'filterexp'},$bac_datas->{'backupset'}), class => "", multiple => 1, size => 15
</span><br>
<br><span class="">
</span>
<br>
<br>
<span class="">
%=l 'bac_SELECT_DATE_BEFORE'
</span><span class="">
</span>
<span class="">
%= text_field 'Seldatebefore', size => 32, class => ""
</span><br>
</span>
<br>
<br>
%= hidden_field 'Function' => $bac_datas->{'function'}
%= hidden_field 'Backupset' => $bac_datas->{'backupset'}

View File

@@ -11,9 +11,10 @@
% }
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<h1><%= $title%></h1>

View File

@@ -1,18 +1,19 @@
% layout 'AdminLTE', title => "Sme server 2 - backup - verify";
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $bac_datas
</p>
<p>
%= dumper $c->current_route
%= dumper $bac_datas
</p>
% }
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<h1><%= $title%></h1>
@@ -24,25 +25,34 @@
%= form_for '/backup' => (method => 'POST') => begin
% if ($bac_datas->{status} ne 'enabled') {
%= $c->render_to_string(inline => (l 'bac_CONFIGURATION_TO_BE_DONE'))
%= $c->render_to_string(inline => (l 'bac_CONFIGURATION_TO_BE_DONE'))
% } else {
%= $c->render_to_string(inline => (l 'bac_VERIFY_WORKSTN_BACKUP_DESC') . ' ' . $c->get_shared_folder_to_verify())
%= $c->render_to_string(inline => (l 'bac_VERIFY_WORKSTN_BACKUP_DESC') . ' ' . $c->get_shared_folder_to_verify())
%}
<br><br><span class="">
<br>
<br>
<span class="">
%=l 'bac_SELECT_BACKUP_FILE'
</span><span class="">
</span>
<span class="">
%= select_field 'Backupset' => $c->get_Backupset_options(), class => ""
</span><br>
</span>
<br>
<p><span class="">
<p>
<span class="">
%=l 'bac_CHECK_TO_VERIFY_FULL_RESTORE'
</span><span class="">
</span>
<span class="">
%= check_box 'Verifyall'
</span></p><br>
</span>
</p>
<br>
%=l 'bac_CHECK_INTEGRITY_WARNING'
<br><br>
<br>
<br>
%= hidden_field 'Function' => $bac_datas->{'function'} . '1'
%= submit_button $c->l('bac_VERIFY'), class => ""

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - backup - verify";
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -11,9 +11,10 @@
% }
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<h1><%= $title%></h1>

View File

@@ -3,8 +3,8 @@
my $backups = esmith::BackupHistoryDB->open;
my $now = time();
my $backup_rec = $backups->new_record($now, {
type => 'backup_record', BackupType => 'desktop',
StartEpochTime => $now,
type => 'backup_record', BackupType => 'desktop',
StartEpochTime => $now,
});
# Dump the current mysql tables so that they are part of the image.

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -11,14 +11,16 @@
% }
% if ( stash 'warning' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'warning')
</div>
</div>
%}
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<h1><%= $title%></h1>
@@ -35,39 +37,49 @@
%=l 'bac_BACKUP_CONFIG_STATUS'
</h2>
<p><span class="">
<p>
<span class="">
%=l 'bac_TAPE_BACKUPS',
</span><span class="">
</span>
<span class="">
%= $c->l(uc($bac_datas->{'backupStatus'})).'.'
</span>
% if ( $bac_datas->{'backupStatus'} eq 'enabled' ) {
%= $c->l('bac_BACKUPS_RUN_AT')
<span class="">
%= $bac_datas->{'backupTime'}
</span>
%= $c->l('bac_REMINDER_MESSAGE_AT')
<span class="">
%= $bac_datas->{'reminderTime'}
</span>
%= $c->l('bac_BACKUPS_RUN_AT')
<span class="">
%= $bac_datas->{'backupTime'}
</span>
%= $c->l('bac_REMINDER_MESSAGE_AT')
<span class="">
%= $bac_datas->{'reminderTime'}
</span>
%}
<p><span class="">
</p>
<p>
<span class="">
%=l 'bac_WORKSTN_BACKUPS',
</span><span class="">
</span>
<span class="">
%= $c->l(uc($bac_datas->{'backupwkStatus'})).'.'
</span>
% if ( $bac_datas->{'backupwkStatus'} eq 'enabled' ) {
%= $c->l('bac_WKBACKUPS_RUN_AT')
<b>
%= $bac_datas->{'backupwkTime'}
</b>
%= $c->l('bac_WKBACKUPS_RUN_AT')
<b>
%= $bac_datas->{'backupwkTime'}
</b>
%}
</p>
<p><span class="">
<p>
<span class="">
%=l 'bac_SELECT_AN_ACTION'
</span><span class="">
</span>
<span class="">
% param 'Function' => $bac_datas->{function} unless param 'Function';
%= select_field 'Function' => $c->get_function_options(), class => ""
</span></p>
</span>
</p>
<br>
%= submit_button $c->l('PERFORM'), class => ""

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
@@ -15,39 +15,53 @@
<!--br><%= $modul %><br-->
<b>
%=l ('bugr_DO_NOT_PANIC')
%=l ('bugr_DO_NOT_PANIC')
</b>
<p>
%=l ('bugr_SME_EXPERIENCE')
</p><p>
%=l ('bugr_SME_EXPERIENCE')
</p>
<p>
%=l ('bugr_USE_TEMPLATE')
: <a href="https://wiki.koozali.org/Bugzilla_Help#Reporting_Bugs"
target="_blank">https://wiki.koozali.org/Bugzilla_Help#Reporting_Bugs</a>.
</p><p>
</p>
<p>
%=l ('bugr_PLEASE_REPORT_HERE')
: <a href="https://bugs.koozali.org" target="_blank">https://bugs.koozali.org</a>.
</p><p>
%=l ('bugr_FOLLOWING_REPORT_MIGHT_HELP')
</p><p>
%=l ('bugr_REPORT_CONTENT')
<br><ul><li>
%=l ('bugr_SME_VERSION')
</li><li>
%=l ('bugr_SERVER_MODE')
</li><li>
%=l ('bugr_PREVIOUS_SERVER_MODE')
</li><li>
%=l ('bugr_KERNEL_AND_ARCH')
</li><li>
%=l ('bugr_INSTALLED_RPMS')
</li><li>
%=l ('bugr_ALTERED_TEMPLATES')
</li><li>
%=l ('bugr_ALTERED_EVENTS')
</li><li>
%=l ('bugr_YUM_REPOS')
</li><br></ul>
%=l ('bugr_PRIVACY')
</p>
<p>
%=l ('bugr_FOLLOWING_REPORT_MIGHT_HELP')
</p>
<p>
%=l ('bugr_REPORT_CONTENT')
<br>
<ul>
<li>
%=l ('bugr_SME_VERSION')
</li>
<li>
%=l ('bugr_SERVER_MODE')
</li>
<li>
%=l ('bugr_PREVIOUS_SERVER_MODE')
</li>
<li>
%=l ('bugr_KERNEL_AND_ARCH')
</li>
<li>
%=l ('bugr_INSTALLED_RPMS')
</li>
<li>
%=l ('bugr_ALTERED_TEMPLATES')
</li>
<li>
%=l ('bugr_ALTERED_EVENTS')
</li> <li>
%=l ('bugr_YUM_REPOS')
</li>
<br>
</ul>
%=l ('bugr_PRIVACY')
</p>
<% my $btn = l('bugr_CREATE_REPORT'); %>
@@ -57,14 +71,17 @@
% end
<p><b>
%=l ('bugr_DONATING')
</b><br><br>
%=l ('bugr_AWARE_SME')
<br><br><b>
%=l ('bugr_YOUR_HELP')
</b><br><br>
%=l ('bugr_CONSIDER_DONATING')
<br><br>
%=l ('bugr_DONATING')
</b>
<br><br>
%=l ('bugr_AWARE_SME')
<br><br>
<b>
%=l ('bugr_YOUR_HELP')
</b>
<br><br>
%=l ('bugr_CONSIDER_DONATING')
<br><br>
</p>
%= link_to 'https://wiki.koozali.org/Donate' => begin

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - clamav";
% content_for 'module' => begin
<div id="" class="">
<div>
%if (config->{debug} == 1) {
<p>(DBG)route: <%= $c->current_route %><br>
(DBG)FsS stat: <%= $clm_datas->{FilesystemScan}%> <br>
@@ -15,29 +15,32 @@
%= form_for 'clamav' => (method => 'POST') => begin
<p>
<span class="">
%=l 'clm_LABEL_FILESYSTEM_SCAN_PERIOD'
</span><span class="">
% param 'FilesystemScan' => $clm_datas->{FilesystemScan} unless param 'FilesystemScan';
%= select_field 'FilesystemScan' => [[ (l 'clm_DAILY') => 'daily'], [ (l 'clm_NEVER') => 'disabled'], [ (l 'clm_WEEKLY') => 'weekly']], class => ""
</span>
<span class="">
%=l 'clm_LABEL_FILESYSTEM_SCAN_PERIOD'
</span>
<span class="">
% param 'FilesystemScan' => $clm_datas->{FilesystemScan} unless param 'FilesystemScan';
%= select_field 'FilesystemScan' => [[ (l 'clm_DAILY') => 'daily'], [ (l 'clm_NEVER') => 'disabled'], [ (l 'clm_WEEKLY') => 'weekly']], class => ""
</span>
</p>
<p>
<span class="">
%=l 'clm_LABEL_QUARANTINE'
</span><span class="">
% param 'Quarantine' => $clm_datas->{Quarantine} unless param 'Quarantine';
%= select_field 'Quarantine' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => ""
<br>
</span>
<span class="">
%=l 'clm_LABEL_QUARANTINE'
</span>
<span class="">
% param 'Quarantine' => $clm_datas->{Quarantine} unless param 'Quarantine';
%= select_field 'Quarantine' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => ""
<br>
</span>
</p>
<p>
<span class="">
%=l 'clm_LABEL_CLAM_VERSIONS'
</span><span class="">
%= $clm_datas->{clam_versions}
<br>
</span>
<span class="">
%=l 'clm_LABEL_CLAM_VERSIONS'
</span>
<span class="">
%= $clm_datas->{clam_versions}
<br>
</span>
</p>
%= submit_button "$btn", class => ""
% end

View File

@@ -1,8 +1,8 @@
% layout 'AdminLTE', title => "Sme server 2 - err 400";
% content_for 'module' => begin
<div id="" class="">
<div class="">
<div>
<div class="text-danger">
%= l 'CSRF_VALIDATION_FAILURE'
</div>

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - datetime";
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
@@ -11,7 +11,8 @@
% }
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
%}
@@ -49,7 +50,8 @@
<br>
<span class="">
%=l 'dat_NTP_SERVER'
</span><span class="">
</span>
<span class="">
%= text_field 'Ntpserver' => $dat_datas->{ntpserver}, class => ""
</span>
</p>
@@ -78,36 +80,44 @@
<br>
<span class="">
%=l 'dat_NEW_M/D/Y'
</span><span class="">
</span>
<span class="">
% param 'Month' => $dat_datas->{month} unless param 'Month';
%= select_field 'Month' => $c->getMonth_list(), class => ""
</span><span class="">
</span>
<span class="">
% param 'Day' => $dat_datas->{day} unless param 'Day';
%= text_field 'Day', size => '2', class => ""
</span><span class="">
</span>
<span class="">
% param 'Year' => $dat_datas->{year} unless param 'Year';
%= text_field 'Year', size => '4', class => ""
</span>
<br>
<span class="">
%=l 'dat_NEW_H/M/S'
</span><span class="">
</span>
<span class="">
% param 'Hour' => $dat_datas->{hour} unless param 'Hour';
%= text_field 'Hour', size => '2', class => ""
</span><span class="">
</span>
<span class="">
% param 'Minute' => $dat_datas->{minute} unless param 'Minute';
%= text_field 'Minute', size => '2', class => ""
</span><span class="">
</span>
<span class="">
% param 'Second' => $dat_datas->{second} unless param 'Second';
%= text_field 'Second', size => '2', class => ""
</span>
<br>
<span class="">
%=l 'dat_AM/PM_AND_TZ'
</span><span class="">
</span>
<span class="">
% param 'Ampm' => $dat_datas->{ampm} unless param 'Ampm';
%= select_field 'Ampm' => ['AM', 'PM'], class => ""
</span><span class="">
</span>
<span class="">
% param 'Timezone' => $c->getTimezone() unless param 'Timezone';
%= select_field 'Timezone' => $c->getZone_list(), class => ""
</span>

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
<p><%= $title %></p>
<%= $modul %>
<p>

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - emailaccess";
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
@@ -22,30 +22,39 @@
%=l 'mai_DESC_POP_ACCESS_CONTROL'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_POP_ACCESS_CONTROL'
</span><span class="">
</span>
<span class="">
% param 'POPAccess' => $c->get_current_pop3_access() unless param 'POPAccess';
%= select_field 'POPAccess' => $c->get_pop_opt(), class => ""
</span></p>
</span>
</p>
%=l 'mai_DESC_IMAP_ACCESS_CONTROL'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_IMAP_ACCESS_CONTROL'
</span><span class="">
</span>
<span class="">
% param 'IMAPAccess' => $c->get_current_imap_access() unless param 'IMAPAccess';
%= select_field 'IMAPAccess' => $c->get_imap_opt(), class => ""
</span></p>
</span>
</p>
%=l 'mai_DESC_WEBMAIL'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_WEBMAIL'
</span><span class="">
</span>
<span class="">
% param 'WebMail' => $c->get_current_webmail_status() unless param 'WebMail';
%= select_field 'WebMail' => $c->get_webmail_opt(), class => ""
</span></p>
</span>
</p>
% my $btn = l('SAVE');
%= submit_button "$btn", class => ""

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - emaildeliver";
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
@@ -11,9 +11,10 @@
% }
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<h1><%= $title%></h1>
@@ -26,12 +27,15 @@
%=l 'mai_DESC_UNKNOWN'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_UNKNOWN'
</span><span class="">
</span>
<span class="">
% param 'EmailUnknownUser' => $mai_datas->{emailunknownuser} unless param 'EmailUnknownUser';
%= select_field 'EmailUnknownUser' => $c->get_emailunknownuser_opt(), class => ""
</span></p>
</span>
</p>
<!--<hr class="" />-->
<h2>
@@ -40,12 +44,15 @@
%=l 'mai_DESC_DELEGATE'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_DELEGATE'
</span><span class="">
</span>
<span class="">
% param 'DelegateMailServer' => $mai_datas->{delegatemailserver} unless param 'DelegateMailServer';
%= text_field 'DelegateMailServer', class => ""
</span></p>
</span>
</p>
<!--<hr class="" />-->
<h2>
@@ -54,33 +61,45 @@
%=l 'mai_DESC_SMARTHOST'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SMARTHOST'
</span><span class="">
</span>
<span class="">
% param 'SMTPSmartHost' => $mai_datas->{smtpsmarthost} unless param 'SMTPSmartHost';
%= text_field 'SMTPSmartHost', class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SMARTHOST_SMTPAUTH_STATUS'
</span><span class="">
</span>
<span class="">
% param 'SMTPAUTHPROXY_status' => $mai_datas->{smtpauthproxystatus} unless param 'SMTPAUTHPROXY_status';
%= select_field 'SMTPAUTHPROXY_status' => [[(l 'DISABLED') => 'disabled'], [(l 'ENABLED') => 'enabled']], class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SMARTHOST_SMTPAUTH_USERID'
</span><span class="">
</span>
<span class="">
% param 'SMTPAUTHPROXY_Userid' => $mai_datas->{smtpauthproxyuserid} unless param 'SMTPAUTHPROXY_Userid';
%= text_field 'SMTPAUTHPROXY_Userid', class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SMARTHOST_SMTPAUTH_PASSWD'
</span><span class="">
</span>
<span class="">
% param 'SMTPAUTHPROXY_Passwd' => $mai_datas->{smtpauthproxypassword} unless param 'SMTPAUTHPROXY_Passwd';
%= password_field 'SMTPAUTHPROXY_Passwd', class => ""
</span></p>
</span>
</p>
% my $btn = l('SAVE');
%= submit_button "$btn", class => ""

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - emailfilter";
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
@@ -11,9 +11,10 @@
% }
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<h1><%= $title%></h1>
@@ -22,74 +23,102 @@
%=l 'mai_DESC_VIRUS_SCAN'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_VIRUS_SCAN'
</span><span class="">
</span>
<span class="">
% param 'VirusStatus' => $mai_datas->{virusstatus} unless param 'VirusStatus';
%= select_field 'VirusStatus' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => ""
</span><br></p>
</span>
<br>
</p>
%=l 'mai_DESC_SPAM_SCAN'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SPAM_SCAN'
</span><span class="">
</span>
<span class="">
% param 'Spamstatus' => $mai_datas->{spamstatus} unless param 'Spamstatus';
%= select_field 'Spamstatus' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SPAM_SENSITIVITY'
</span><span class="">
</span>
<span class="">
% param 'SpamSensitivity' => $mai_datas->{spamsensitivity} unless param 'SpamSensitivity';
%= select_field 'SpamSensitivity' => $c->get_spam_sensitivity_opt(), class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SPAM_TAGLEVEL'
</span><span class="">
</span>
<span class="">
% param 'SpamTagLevel' => $mai_datas->{spamtaglevel} unless param 'SpamTagLevel';
%= select_field 'SpamTagLevel' => $c->get_spam_level_options(), class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SPAM_REJECTLEVEL'
</span><span class="">
</span>
<span class="">
% param 'SpamRejectLevel' => $mai_datas->{spamrejectlevel} unless param 'SpamRejectLevel';
%= select_field 'SpamRejectLevel' => $c->get_spam_level_options(), class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SORTSPAM'
</span><span class="">
</span>
<span class="">
% param 'SpamSortSpam' => $mai_datas->{spamsortspam} unless param 'SpamSortSpam';
%= select_field 'SpamSortSpam' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => ""
</span></p>
</span>
</p>
%=l 'mai_DESC_SPAM_SUBJECT'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SPAM_SUBJECTTAG'
</span><span class="">
</span>
<span class="">
% param 'SpamSubjectTag' => $mai_datas->{spamsubjecttag} unless param 'SpamSubjectTag';
%= select_field 'SpamSubjectTag' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SPAM_SUBJECT'
</span><span class="">
</span>
<span class="">
% param 'SpamSubject' => $mai_datas->{spamsubject} unless param 'SpamSubject';
%= text_field 'SpamSubject' => class => ""
</span></p>
</span>
</p>
%=l 'mai_DESC_BLOCK_EXECUTABLE_CONTENT'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_CONTENT_TO_BLOCK'
</span><span class="">
</span>
<span class="">
% param 'BlockExecutableContent' => $c->get_patterns_current_opt() unless param 'BlockExecutableContent';
%= select_field 'BlockExecutableContent' => $c->get_patterns_opt(), class => "", multiple => "1"
</span></p>
</span>
</p>
% my $btn = l('SAVE');
%= submit_button "$btn", class => ""

View File

@@ -5,7 +5,7 @@
% use constant FALSE => 0;
% use constant TRUE => 1;
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
@@ -16,9 +16,10 @@
% }
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<h1><%= $title%></h1>
@@ -27,9 +28,11 @@
%=l 'mai_DESC_MODE'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_MODE'
</span><span class="">
</span>
<span class="">
% param 'FetchmailMethod' => $mai_datas->{fetchmailmethod} unless param 'FetchmailMethod';
<!--
<pre>
@@ -39,7 +42,8 @@
</pre>
-->
%= select_field 'FetchmailMethod' => $c->get_retrieval_opt(), class => ""
</span></p>
</span>
</p>
%#=l 'mai_DESC_SMTP_AUTH_CONTROL'
<br />
@@ -51,9 +55,11 @@
<br />
% my $smtp_mesg=l('SMTP port %u allow client to authenticate:');
<p><span class="">
<p>
<span class="">
%= sprintf($smtp_mesg,$c->get_db_prop('qpsmtpd','TCPPort',25));
</span><span class="">
</span>
<span class="">
% param 'SMTPAuth' => $c->get_current_smtp_auth( FALSE ) unless param 'SMTPAuth';
<!--
<pre>
@@ -64,23 +70,28 @@
</pre>
-->
%= select_field 'SMTPAuth' => $c->get_smtp_auth_opt(), class => ""
</span></p>
</span>
</p>
% my $smtp_mesg=l('SMTPS SSL/TLS auth: port %u status:');
<p><span class="">
<p>
<span class="">
%= sprintf($smtp_mesg,$c->get_db_prop('sqpsmtpd','TCPPort',465));
</span><span class="">
% param 'sSMTPAuth' => $c->get_current_smtp_ssl_auth(FALSE,'s', TRUE) unless param 'sSMTPAuth';
</span>
<span class="">
% param 'sSMTPAuth' => $c->get_current_smtp_ssl_auth(FALSE,'s', TRUE) unless param 'sSMTPAuth';
%= select_field 'sSMTPAuth' => $c->get_smtp_ssl_auth_opt(), class => ""
</span></p>
</span>
</p>
%my $smtp_mesg=l('Submission port %u status:');
<p><span class="">
<p>
<span class="">
%= sprintf($smtp_mesg,$c->get_db_prop('uqpsmtpd','TCPPort',587));
</span><span class="">
</span>
<span class="">
% param 'uSMTPAuth' => $c->get_current_smtp_ssl_auth(FALSE,'u', TRUE) unless param 'uSMTPAuth';
<!--
<!--
<pre>
%= dumper $c->get_smtp_ssl_auth_opt()
%= dumper $c->get_current_smtp_ssl_auth(FALSE,'s', TRUE)
@@ -88,9 +99,10 @@
%= dumper $c->get_db_prop("uqpsmtpd","access")
%= param 'uSMTPAuth'
</pre>
-->
-->
%= select_field 'uSMTPAuth' => $c->get_smtp_ssl_auth_opt(), class => ""
</span></p>
</span>
</p>
<!--<hr class="" />-->
<h2>
@@ -99,63 +111,87 @@
%=l 'mai_DESC_SECONDARY'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SECONDARY'
</span><span class="">
</span>
<span class="">
% param 'SecondaryMailServer' => $mai_datas->{secondarymailserver} unless param 'SecondaryMailServer';
%= text_field 'SecondaryMailServer', class => ""
</span></p>
</span>
</p>
%=l 'mai_DESC_FETCH_PERIOD'
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_FETCH_PERIOD'
</span><span class="">
</span>
<span class="">
% param 'FreqOffice' => $mai_datas->{freqoffice} unless param 'FreqOffice';
%= select_field 'FreqOffice' => $c->fetchmail_freq(), class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_FETCH_PERIOD_NIGHTS'
</span><span class="">
</span>
<span class="">
% param 'FreqOutside' => $mai_datas->{freqoutside} unless param 'FreqOutside';
%= select_field 'FreqOutside' => $c->fetchmail_freq(), class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_FETCH_PERIOD_WEEKENDS'
</span><span class="">
</span>
<span class="">
% param 'FreqWeekend' => $mai_datas->{freqweekend} unless param 'FreqWeekend';
%= select_field 'FreqWeekend' => $c->fetchmail_freq(), class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_POP_ACCOUNT'
</span><span class="">
</span>
<span class="">
% param 'SecondaryMailAccount' => $mai_datas->{secondarymailaccount} unless param 'SecondaryMailAccount';
%= text_field 'SecondaryMailAccount', class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_POP_PASS'
</span><span class="">
</span>
<span class="">
% param 'SecondaryMailPassword' => $mai_datas->{secondarymailpassword} unless param 'SecondaryMailPassword';
%= password_field 'SecondaryMailPassword', class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SORT_METHOD'
</span><span class="">
</span>
<span class="">
% param 'SpecifyHeader' => $mai_datas->{specifyheader} unless param 'SpecifyHeader';
%= select_field 'SpecifyHeader' => [[(l 'mai_DEFAULT') => 'off'], [(l 'mai_SPECIFY_BELOW') => 'on']], class => ""
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SORT_HEADER'
</span><span class="">
</span>
<span class="">
% param 'SecondaryMailEnvelope' => $mai_datas->{secondarymailenvelope} unless param 'SecondaryMailEnvelope';
%= text_field 'SecondaryMailEnvelope', class => ""
</span></p>
</span>
</p>
% my $btn = l('SAVE');
%= submit_button "$btn", class => ""

View File

@@ -5,7 +5,7 @@
% use constant FALSE => 0;
% use constant TRUE => 1;
<div id="" class="">
<div>
% if (config->{debug} == TRUE) {
<p>
@@ -17,31 +17,40 @@
% if ( stash 'error' ) {
<br><div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<h1><%= $title%></h1>
%= form_for 'emailsettings' => (method => 'POST') => begin
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_POP_ACCESS_CONTROL'
</span><span class="">
</span>
<span class="">
%= $c->get_current_pop3_access( TRUE )
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_IMAP_ACCESS_CONTROL'
</span><span class="">
</span>
<span class="">
%= $c->get_current_imap_access( TRUE )
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_WEBMAIL'
</span><span class="">
</span>
<span class="">
%= $c->get_current_webmail_status( TRUE )
</span></p>
</span>
</p>
% my $btn = l('mai_DESC_STATE_ACCESS_BUTTON');
% my $btn = l('mai_DESC_STATE_ACCESS_BUTTON');
<div class="">
%= submit_button "$btn", class => ""
</div>
@@ -53,23 +62,32 @@
<!--<hr class="" />-->
%= form_for 'emailsettings' => (method => 'POST') => begin
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_VIRUS_SCAN'
</span><span class="">
</span>
<span class="">
%= $c->get_virus_status(TRUE)
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SPAM_SCAN'
</span><span class="">
</span>
<span class="">
%= $c->get_spam_status(TRUE)
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_BLOCK_EXECUTABLE_CONTENT'
</span><span class="">
</span>
<span class="">
%= $c->get_patterns_status(TRUE)
</span></p>
</span>
</p>
% my $btn = l('mai_DESC_STATE_FILTERING_BUTTON');
<div class="">
@@ -83,34 +101,46 @@
<!--<hr class="" />-->
%= form_for 'emailsettings' => (method => 'POST') => begin
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_MODE'
</span><span class="">
</span>
<span class="">
%= $mai_datas->{fetchmailmethod}
</span></p>
</span>
</p>
% my $smtp_mesg;
% $smtp_mesg=l('SMTP port %u allow client to authenticate:');
<p><span class="">
<p>
<span class="">
%= sprintf($smtp_mesg,$c->get_db_prop('qpsmtpd','TCPPort',25));
</span><span class="">
%= $c->get_current_smtp_auth( TRUE )
</span></p>
</span>
<span class="">
%= $c->get_current_smtp_auth( TRUE )
</span>
</p>
% $smtp_mesg=l('SMTPS SSL/TLS auth: port %u status:');
<p><span class="">
<p>
<span class="">
%= sprintf($smtp_mesg,$c->get_db_prop('sqpsmtpd','TCPPort',465));
</span><span class="">
%= $c->get_current_smtp_ssl_auth( TRUE, 's', FALSE )
</span></p>
</span>
<span class="">
%= $c->get_current_smtp_ssl_auth( TRUE, 's', FALSE )
</span>
</p>
% $smtp_mesg=l 'Submission port %u status:';
<p><span class="">
<p>
<span class="">
%= sprintf($smtp_mesg,$c->get_db_prop('uqpsmtpd','TCPPort',587));
</span><span class="">
</span>
<span class="">
%= $c->get_current_smtp_ssl_auth( TRUE,'u', FALSE )
</span></p>
</span>
</p>
<br />
% my $btn = l('mai_DESC_STATE_RECEPTION_BUTTON');
@@ -125,27 +155,36 @@
<!--<hr class="" />-->
%= form_for 'emailsettings' => (method => 'POST') => begin
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_UNKNOWN'
</span><span class="">
</span>
<span class="">
%= $c->get_emailunknownuser_status( TRUE )
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_DELEGATE'
</span><span class="">
</span>
<span class="">
%= $c->get_value('DelegateMailServer')
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'mai_LABEL_SMARTHOST'
</span><span class="">
</span>
<span class="">
%= $c->get_value('SMTPSmartHost')
</span></p>
</span>
</p>
% my $btn = l('mai_DESC_STATE_DELIVERY_BUTTON');
% my $btn = l('mai_DESC_STATE_DELIVERY_BUTTON');
<div class="">
%= submit_button "$btn", class => ""
%= submit_button "$btn", class => ""
</div>
%= hidden_field 'trt' => 'DEL'

View File

@@ -2,18 +2,20 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
</p>
% }
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
%}
<h1> Embedded - <%=$title %></h1><br>
<h1> Embedded - <%=$title %></h1>
<br>
<p>If the legacy panel does not appear, then you may not be logged into the original Server manager.<br />You can log in by clicking <a href="/server-manager" target='_blank'>here</a>. Or by clicking on the "Legacy SM" button at the top of the window.</p>
% my $height = $c->stash('height') | '600px';
% if ($height !~ /px$/) { $height = $height.'px';}

View File

@@ -1,69 +0,0 @@
% layout 'AdminLTE' , title => "Sme server 2 - login";
% content_for 'module' => begin
<div id="" class="">
%if ( config 'debug' ) {
<p>
%= dumper $c->current_route
%if ( stash 'trt' ) {
%= dumper stash 'trt'
%}
</p>
%}
% if ( stash 'error' ) {
<br><div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
%}
% my $btn = l('use_SIGNIN');
% if ( $trt eq 'RESET' ) {
<br><div class=""><h2>
%= $c->render_to_string(inline => l 'use_DESC_RESET')
</h2></div>
% $btn = l('use_RESET');
%}
<h1>
%=l 'use_TITLE'
</h1>
%= form_for '/login' => (method => 'POST') => begin
<p><span class="">
%=l 'USER_NAME'
</span><span class="">
%= text_field 'Username'
</span></p>
% if ( $trt ne 'RESET' ) {
<p><span class="">
%=l 'PASSWORD'
</span><span class="">
%= password_field 'Password', id => "", autocomplete => 'current-password', class=>""
% if (config 'hasJquery') {
%#<a href='#' id="" class=""> <img src="images/visible.png" height="16" alt="Visible"></a>
% }
</span></p>
%}
%= hidden_field 'From' => $c->tx->req->url
%= hidden_field 'Trt' => $trt
<br>
<div class="">
%= submit_button "$btn", class => ""
</div>
%if ( config 'pwdreset' ) {
<div class=""><a href='login2'>
%=l 'use_FORGOT'
</a></div>
%}
% end
</div>
%end

View File

@@ -8,7 +8,10 @@
<div class="col-sm-6">
<ol class="breadcrumb float-sm-start">
<li class="breadcrumb-item"><a href="initial">Home</a></li>
<li class="breadcrumb-item active" aria-current="page"><%= $c->current_route %></li>
<li class="breadcrumb-item active" aria-current="page">
<a href="<%= $c->stash('controller') %>"> <%= $c->stash('controller') %>
</a>
</li>
</ol>
</div>
</div>

View File

@@ -1,5 +1,5 @@
<div id="flag-container" class = "flag-style">
<div id="flag-container" class="flag-style">
<!-- class=flag-style" -->
<!-- The flag icon will be inserted here -->
</div>

View File

@@ -1,14 +1,14 @@
<div id="" class="">
<div>
<!--<HR class="">-->
<a href="https://mojolicious.org" target="_blank"><img src="images/sme-mojo-logo-white.png" style="position:relative;"></a>
<font class="">
% if ( $c->is_logged_in && $c->is_admin) {
SME Server <%= session 'releaseVersion' %>-<%= $c->app->VERSION %> Manager II
% my $mode;
% if (config->{mode} eq 'development'){ $mode = '-dev';} else { $mode = '';}
(Mojo:<%= Mojolicious->VERSION %><%= $mode %>)
% }
<br>Copyright 1999-2006 Mitel Corporation<br>
%= session 'copyRight'
<br>Copyright (c) 2013-2024 Koozali Foundation Inc.<br>
<font>
% if ( $c->is_logged_in && $c->is_admin) {
SME Server <%= session 'releaseVersion' %>-<%= $c->app->VERSION %> Manager II
% my $mode;
% if (config->{mode} eq 'development'){ $mode = '-dev';} else { $mode = '';}
(Mojo:<%= Mojolicious->VERSION %><%= $mode %>)
% }
<br>Copyright 1999-2006 Mitel Corporation<br>
%= session 'copyRight'
<br>Copyright (c) 2013-2024 Koozali Foundation Inc.<br>
</font>

View File

@@ -18,7 +18,7 @@
%=l 'PASSWORD_NEW', class => ""
</span>
<span class="">
%= password_field 'newPass', class => "" , class="">'sme-password'
%= password_field 'newPass', class => "" , class=> 'sme-password'
</span>
</p>
@@ -27,7 +27,7 @@
%=l 'PASSWORD_VERIFY_NEW', class => ""
</span>
<span class="">
%= password_field 'newPassVerify', class => "", class="">'sme-password'
%= password_field 'newPassVerify', class => "", class=> 'sme-password'
</span>
</p>
@@ -41,4 +41,4 @@
% end
</div>
</div>

View File

@@ -25,19 +25,19 @@
<a href='letsencryptd?trt=PARAMS' class="">
%= l('lets_CONFIG')
</a>
%#= link_to l('lets_CONFIG'), 'letsencryptd?trt=PARAMS' , class="">'link link2'
%#= link_to l('lets_CONFIG'), 'letsencryptd?trt=PARAMS' , class=> 'link link2'
<a href='letsencryptd?trt=CHECKALLDOMAINS' class="">
%= l('lets_CHECK_ALL_DOMAINS')
</a>
%#= link_to l('lets_CHECK_ALL_DOMAINS'), 'letsencryptd?trt=CHECKALLDOMAINS' , class="">'link link3'
%#= link_to l('lets_CHECK_ALL_DOMAINS'), 'letsencryptd?trt=CHECKALLDOMAINS' , class=> 'link link3'
<a href='letsencryptd?trt=CHECKALLENABLEDDOMAINS' class="">
%= l('lets_CHECK_ALL_ENABLED_DOMAINS')
</a>
%#= link_to l('lets_CHECK_ALL_ENABLED_DOMAINS'), 'letsencryptd?trt=CHECKALLENABLEDDOMAINS' , class="">'link link4'
%#= link_to l('lets_CHECK_ALL_ENABLED_DOMAINS'), 'letsencryptd?trt=CHECKALLENABLEDDOMAINS' , class=> 'link link4'
</div>
@@ -105,7 +105,8 @@
<p>
<span class="">
%=l('lets_Not_Before')
</span><span class="">
</span>
<span class="">
% param 'NotBefore' => $lets_data->{NotBefore} unless param 'NotBefore';
%= text_field 'NotBefore', size => '50', class => "" , pattern=>'.*' , placeholder=>'NotBefore', Readonly=>'true'
<br>
@@ -148,4 +149,4 @@
%# Probably finally by a submit.
%end
</div>
</div>

View File

@@ -29,7 +29,8 @@
<p>
<span class="">
%=l('lets_SERVICE_STATUS')
</span><span class="">
</span>
<span class="">
%# my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']];
% my @status_options = selected_field([['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']], $lets_data->{status});
%# param 'status' => $lets_data->{status} unless param 'status';
@@ -77,7 +78,8 @@
<p>
<span class="">
%=l('lets_API_STATUS')
</span><span class="">
</span>
<span class="">
% my @API_options = [['2' => '2']];
% param 'API' => $lets_data->{API} unless param 'API';
%= select_field 'API' => @API_options, class => ""

View File

@@ -26,7 +26,7 @@
<a href='nutupsd?trt=CONFIG' class="">
%= l('nut_Configure_NutUPS')
</a>
%#= link_to l('nut_Configure_NutUPS'), 'nutupsd?trt=CONFIG' , class="">'link link1'
%#= link_to l('nut_Configure_NutUPS'), 'nutupsd?trt=CONFIG' , class=> 'link link1'
</div>
@@ -53,4 +53,4 @@
%# Probably finally by a submit.
%end
</div>
</div>

View File

@@ -0,0 +1,121 @@
<div>
<table class="table table-bordered">
<thead>
<tr>
<th><%= l 'rvw_NETWORKING_PARAMS' %></th>
<th>&nbsp</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= l 'rvw_SERVER_MODE' %></td>
<td><%= $rvw_datas->{servermode} %></td>
</tr>
<tr>
<td><%= l 'rvw_LOCAL_IP_ADDRESS_SUBNET_MASK' %></td>
<td><%= $rvw_datas->{localip} %></td>
</tr>
% if ( $rvw_datas->{publicip} ) {
<tr>
<td><%=l 'rvw_INTERNET_VISIBLE_ADDRESS' %></td>
<td><%= $rvw_datas->{publicip} %></td>
</tr>
% }
<tr>
<td><%= l 'rvw_GATEWAY'%></td>
<td>
<%= $rvw_datas->{gateway} %>
<%= $rvw_datas->{serveronly} %>
</td>
</tr>
<tr>
<td>Local Networks (not translated?)</td>
<td><%= $c->render_to_string( inline => $rvw_datas->{addlocalnetworks} );%> </td>
<tr>
<tr>
<td><%= l 'rvw_DHCP_SERVER' %></td>
<td><%= $rvw_datas->{dhcpserver} %></td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<thead>
<tr>
<th><%= l 'rvw_SERVER_NAMES' %></th>
<th>&nbsp</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= l 'rvw_DNS_SERVER' %></td>
<td><%= $rvw_datas->{dnsserver} %></td>
</tr>
<tr>
<td><%= l 'rvw_WEB_SERVER' %></td>
<td><%= $rvw_datas->{webserver} %></tr>
</tr>
<tr>
<td><%= l 'rvw_PROXY_SERVER' %></td>
<td><%= $rvw_datas->{proxyserver} %></tr>
</tr>
<tr>
<td><%= l 'rvw_FTP_SERVER' %></td>
<td><%= $rvw_datas->{ftpserver} %></tr>
</tr>
<tr>
<td><%= l 'rvw_SMTP_POP_AND_IMAP_MAIL_SERVERS' %></td>
<td><%= $rvw_datas->{smtpserver} %></tr>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<thead>
<tr>
<th><%= l 'rvw_DOMAIN_INFORMATION' %></th>
<th>&nbsp</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= l 'rvw_PRIMARY_DOMAIN' %></td>
<td><%= $rvw_datas->{domainname} %></td>
</tr>
<tr>
<td><%= l 'rvw_VIRTUAL_DOMAINS' %></td>
<td><%= $rvw_datas->{virtualdomains} %></td>
</tr>
<tr>
<td><%= l 'rvw_PRIMARY_WEB_SITE' %></td>
<td><%= $rvw_datas->{primarywebsite} %></td>
</tr>
<tr>
<td><%= l 'rvw_SERVER_MANAGER' %></td>
<td><%= $rvw_datas->{servermanager} %></td>
</tr>
<tr>
<td><%= l 'rvw_USER_PASSWORD_PANEL' %></td>
<td><%= $rvw_datas->{usermanager} %></td>
</tr>
<tr>
<td><%= l 'rvw_EMAIL_ADDRESSES' %></td>
<td><%= $rvw_datas->{emailaddresses} %></td>
</tr>
</tbody>
</table>
</div>

View File

@@ -18,7 +18,7 @@
<span class="">
%=l 'PASSWORD_NEW', class => ""
</span><span class="">
%= password_field 'newPass', class => "", class="">'sme-password'
%= password_field 'newPass', class => "", class=> 'sme-password'
</span>
</p>
@@ -27,7 +27,7 @@
%=l 'PASSWORD_VERIFY_NEW', class => ""
</span>
<span class="">
%= password_field 'newPassVerify', class => "", class="">'sme-password'
%= password_field 'newPassVerify', class => "", class=> 'sme-password'
</span>
</p>
@@ -42,4 +42,4 @@
% end
</div>
</div>

View File

@@ -12,7 +12,7 @@
%=l 'usr_CURRENT_SYSTEM_PASSWORD', class => ""
</span>
<span class="">
%= password_field 'CurPass', class => "", class="">'sme-password'
%= password_field 'CurPass', class => "", class=> 'sme-password'
</span>
</p>
@@ -21,7 +21,7 @@
%=l 'usr_NEW_SYSTEM_PASSWORD', class => ""
</span>
<span class="">
%= password_field 'Pass', class => "", class="">'sme-password'
%= password_field 'Pass', class => "", class=> 'sme-password'
</span>
</p>
@@ -30,7 +30,7 @@
%=l 'usr_NEW_SYSTEM_PASSWORD_VERIFY', class => ""
</span>
<span class="">
%= password_field 'PassVerify', class => "", class="">'sme-password'
%= password_field 'PassVerify', class => "", class=> 'sme-password'
</span>
</p>

View File

@@ -29,7 +29,8 @@
<p>
<span class="">
%=l 'usr_FIRSTNAME'
</span><span class="">
</span>
<span class="">
% param 'FirstName' => $usr_datas->{firstname} unless param 'FirstName';
%= text_field 'FirstName', class => ""
</span>
@@ -64,7 +65,8 @@
<p>
<span class="">
%=l 'usr_STREET_ADDRESS'
</span><span class="">
</span>
<span class="">
% param 'Street' => $usr_datas->{street} unless param 'Street';
%= text_field 'Street', class => ""
</span>
@@ -139,17 +141,19 @@
%=l 'usr_GROUP_MEMBERSHIPS'
</span>
<span class="">
<table class="tabel table-bordered">
<table class="table table-bordered">
<thead>
<tr><th class="">
<tr>
<th class="">
%=l 'usr_MEMBER'
</th><th class="">
%=l 'GROUP'
</th><th class="">
%=l 'DESCRIPTION'
</th>
</tr>
</thead><tbody>
</tr>
</thead>
<tbody>
% foreach my $g ( @groups) {
% my $user = $usr_datas->{user};

View File

@@ -19,7 +19,8 @@
<br><br>
<span class="">
%=l 'prx_HTTP_PROXY_STATUS_LABEL'
</span><span class="">
</span>
<span class="">
% param 'http_proxy_status' => $prx_datas->{http_proxy_status} unless param 'http_proxy_status';
%= select_field 'http_proxy_status' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => "", id => ""
</span>

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - qmailanalog";
% content_for 'module' => begin
%= javascript '/js/qmailanalog.js'
<div id="" class="">
<div>
%if (config->{debug} == 1) {
<p>
(DBG)route: <%= $c->current_route %><br>
@@ -15,7 +15,8 @@
<p>
<span class="">
%=l 'qma_REPORT_TYPE'
</span><span class="">
</span>
<span class="">
<!-- (to be sorted) -->
%= select_field 'report_type' => $c->reportType_list(), id => ""
</span>
@@ -25,7 +26,8 @@
<div id="">
<span class="">
%= label_for message_id => 'Message ID:'
</span><span class="">
</span>
<span class="">
%= text_field 'message_id', placeholder => 'Enter Postfix Message ID', id => ""
</span>
</div>
@@ -33,7 +35,8 @@
<div id="">
<span class="">
%= label_for email_address => 'Email Address:'
</span><span class="">
</span>
<span class="">
%= email_field 'email_address', placeholder => 'Enter email address', id => ""
</span>
</div>

View File

@@ -91,7 +91,9 @@
%= t td => (class => "") => $net
%= t td => (class => "") => $mask
%= t td => (class => "") => $numhosts
<td class=""><input type='checkbox' name='Remote_nets' value='<%= $net.'/'.$mask %>'> </td>
<td class="">
<input type='checkbox' name='Remove_nets' value='<%= $net.'/'.$mask %>'>
</td>
</tr>
% }
@@ -111,7 +113,8 @@
<br><br>
<span class="">
%=l 'NETWORK'
</span><span class="">
</span>
<span class="">
%= text_field 'ValidFromNetwork', class => ""
</span>
<br>
@@ -225,4 +228,4 @@
</div>
% end
% end

View File

@@ -1,137 +1,32 @@
% layout 'AdminLTE', title => 'Sme server 2 - Review';
% content_for 'module' => begin
<div id="" class="">
<h1> <%= $title %> </h1>
<%= $modul %><br><br>
%= form_for 'review' => begin
<b>
%=l 'rvw_NETWORKING_PARAMS'
</b><br>
%#= include 'partials/_panel_card_top'
%#= include 'partials/_panel_card_header'
<div>
<h1> <%= $title %> </h1>
<!-- Header text -->
%= $modul
<p><span class="">
%=l 'rvw_SERVER_MODE'
</span>
%= $rvw_datas->{servermode}
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $rvw_datas
</p>
<p><span class="">
%=l 'rvw_LOCAL_IP_ADDRESS_SUBNET_MASK'
</span>
%= $rvw_datas->{localip}
</p>
% if ( $rvw_datas->{publicip} ) {
<p><span class="">
%=l 'rvw_INTERNET_VISIBLE_ADDRESS'
</span>
%= $rvw_datas->{publicip}
</p>
% }
<p><span class="">
%=l 'rvw_GATEWAY'
</span>
%= $rvw_datas->{gateway}
%= $rvw_datas->{serveronly}
</p>
<p><table width='100%'><tr><td class=""><!--span class="">
%=l 'rvw_ADDITIONAL_LOCAL_NETWORKS'
<!--/span--></td><td>
%= $c->render_to_string( inline => $rvw_datas->{addlocalnetworks} );
</td></tr></table>
</p>
<p><table width='100%'><tr><td class="">
<!--<p><span class="">-->
%=l 'rvw_DHCP_SERVER'
<!--</span>-->
</td><td>
%= $rvw_datas->{dhcpserver}
<!--</p>-->
</td></tr></table></p>
<br><br>
<br><br><b>
%=l 'rvw_SERVER_NAMES'
</b><br>
<p><span class="">
%=l 'rvw_DNS_SERVER'
</span>
%= $rvw_datas->{dnsserver}
</p>
<p><span class="">
%=l 'rvw_WEB_SERVER'
</span>
%= $rvw_datas->{webserver}
</p>
<p><span class="">
%=l 'rvw_PROXY_SERVER'
</span>
%= $rvw_datas->{proxyserver}
</p>
<p><span class="">
%=l 'rvw_FTP_SERVER'
</span>
%= $rvw_datas->{ftpserver}
</p>
<p><span class="">
%=l 'rvw_SMTP_POP_AND_IMAP_MAIL_SERVERS'
</span>
%= $rvw_datas->{smtpserver}
</p>
<br><br><b>
%=l 'rvw_DOMAIN_INFORMATION'
</b><br>
<p><span class="">
%=l 'rvw_PRIMARY_DOMAIN'
</span>
%= $rvw_datas->{domainname}
</p>
<!---<p><span class="">-->
<p><table width='100%'><tr><td class="">
%=l 'rvw_VIRTUAL_DOMAINS'
</td><td>
<!--</span>-->
%= $rvw_datas->{virtualdomains}
</td></tr></table></p>
<!--</p>-->
<p><span class="">
%=l 'rvw_PRIMARY_WEB_SITE'
</span>
%= $rvw_datas->{primarywebsite}
</p>
<p><span class="">
%=l 'rvw_SERVER_MANAGER'
</span>
%= $rvw_datas->{servermanager}
</p>
<p><span class="">
%=l 'rvw_USER_PASSWORD_PANEL'
</span>
%= $rvw_datas->{usermanager}
</p>
<p><table width='100%'><tr><td class="">
%=l 'rvw_EMAIL_ADDRESSES'
</td><td>
%= $rvw_datas->{emailaddresses}
</td></tr></table></p>
% end
%= include 'partials/_rvw_content'
</div>
%#= include 'partials/_panel_card_footer'
%#= include 'partials/_panel_card_bottom'
% end

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
@@ -16,9 +16,10 @@
</h1>
% if ( stash 'error' ) {
<br><div class="">
<br>
<div class="">
%= $c->render_to_string(inline => stash 'error')
</div>
</div>
%}
<p>
@@ -33,38 +34,50 @@
</p>
%= form_for $url => (method => 'POST') => begin
<p><span class="">
<p>
<span class="">
%= l 'pwd_YOUR_ACCOUNT'
</span><span class="">
</span>
<span class="">
%= $pwd_datas->{Account}
</span>
%= hidden_field 'User' => $pwd_datas->{Account}
%= hidden_field 'Trt' => $pwd_datas->{trt}
%= hidden_field 'jwt' => $pwd_datas->{jwt}
<br><br></p>
<br><br>
</p>
% if ( $pwd_datas->{trt} ne 'RESET' ) {
<p><span class="">
<p>
<span class="">
%= l 'pwd_PASSWORD_OLD'
</span><span class="">
%= password_field 'Oldpass', class => "", class="">'sme-password'
</span>
<br><br></p>
<span class="">
%= password_field 'Oldpass', class => "", class=> 'sme-password'
</span>
<br><br>
</p>
% }
<p><span class="">
<p>
<span class="">
%=l 'pwd_PASSWORD_NEW'
</span><span class="">
%= password_field 'Pass', class => "", class="">'sme-password'
</span>
<br><br></p>
<span class="">
%= password_field 'Pass', class => "", class=> 'sme-password'
</span>
<br><br>
</p>
<p><span class="">
<p>
<span class="">
%=l 'pwd_PASSWORD_VERIFY_NEW'
</span><span class="">
%= password_field 'Passverify', class => "", class="">'sme-password'
</span>
<br><br></p>
<span class="">
%= password_field 'Passverify', class => "", class=> 'sme-password'
</span>
<br><br>
</p>
<p>
<br>

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - viewlogfiles";
% content_for 'module' => begin
<div id="" class="">
<div>
%if (config->{debug} == 1) {
<p>
(DBG)route: <%= $c->current_route %><br>
@@ -18,7 +18,8 @@
<br>
<span class="">
%=l 'log_LOG_FILE_SELECT_DESC'
</span><span class="">
</span>
<span class="">
% param 'Filename' => 'messages';
<!-- select_field 'Filename' => [['toto'], ['tata']], class => "" -->
%= select_field 'Filename' => $c->findlogFiles(), class => ""
@@ -30,7 +31,8 @@
<br>
<span class="">
%=l 'log_FILTER_PATTERN_LABEL'
</span><span class="">
</span>
<span class="">
%= text_field 'Matchpattern', class => ""
</span>
</p>
@@ -40,7 +42,8 @@
<br>
<span class="">
%=l 'log_MATCH_PATTERN_LABEL'
</span><span class="">
</span>
<span class="">
%= text_field 'Highlightpattern', class => ""
</span>
</p>
@@ -50,7 +53,8 @@
<br>
<span class="">
%=l 'log_OP_LABEL'
</span><span class="">
</span>
<span class="">
%if ($log_datas->{'default_op'} eq 'download') {
% param 'Operation' => 'download';
%}

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
@@ -26,7 +26,7 @@
%= hidden_field 'Highlightpattern' => $log_datas->{highlightpattern}
%= hidden_field 'Operation' => $log_datas->{operation}
% end
</p>
</div>
%end

View File

@@ -1,8 +1,9 @@
% layout 'AdminLTE', title => 'Sme server 2 - IndexT';
% content_for 'module' => begin
<div id="" class="">
<p>Index on line - Welcome page<br>
<div>
<p>Index on line - Welcome page
<br>
</p>
<p>
Cogo diam enim ibidem paulatim pertineo velit. Comis patria pertineo secundum. Aliquip laoreet quibus zelus. Gravis incassum interdico iustum lucidus neo os paratus. Autem causa haero pneum similis sudo vindico. Iusto molior neque oppeto. Ideo minim nibh refoveo veniam vereor virtus. Appellatio pala scisco.
@@ -31,31 +32,33 @@ Abdo abigo aptent commoveo inhibeo molior nibh plaga pneum zelus. Conventio geni
% my %nav = %{SrvMngr::navigation2->getNavigation( $c->languages() )};
<!-- % = dumper %nav -->
<div id="">
<div>
% foreach my $h (sort { ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'})
% <=> ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav) {
<div class="">
%= $h
</div>
% foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav{$h}{'DESCRIPTIONS'}}) {
% my ($target, $classNew) = ( $_->{'FILENAME'} =~ m/^2\// ) ?
% ('_self',' accent') :
% ('main','') ;
<div>
%= $h
% my $href = '/server-manager' . $_->{'FILENAME'};
<div class=""><a class="" target='
%= $target
' onclick=\"swapClasses('sme
%= $c
')\" id="" href='
%= $href
'>
%= $_->{'DESCRIPTION'}
</a></div>
% $c++;
% }
% foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav{$h}{'DESCRIPTIONS'}}) {
% my ($target, $classNew) = ( $_->{'FILENAME'} =~ m/^2\// ) ?
% ('_self',' accent') :
% ('main','') ;
% my $href = '/server-manager' . $_->{'FILENAME'};
<div class=""><a class="" target='
%= $target
' onclick=\"swapClasses('sme
%= $c
')\" id="" href='
%= $href
'>
%= $_->{'DESCRIPTION'}
</a>
</div>
% $c++;
% }
% }

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
<p><br>dev<br> What else !!!
The page you were requesting
"<%= $self->req->url->path || '/' %>"

View File

@@ -1,7 +1,7 @@
% layout 'AdminLTE', title => "Sme server 2 - workgroup";
% content_for 'module' => begin
<div id="" class="">
<div>
%if (config->{debug} == 1) {
<p>
@@ -23,7 +23,8 @@
<br><br>
<span class="">
%=l 'wkg_LABEL_WORKGROUP', class => ""
</span><span class="">
</span>
<span class="">
%= text_field 'Workgroup' => $wkg_datas->{Workgroup}, class => "" , pattern=>".{1,15}", title=>"Limited to 15 characters by the NETBIOS"
</span>
</p>
@@ -32,7 +33,8 @@
<br><br>
<span class="">
%=l 'wkg_LABEL_SERVERNAME', class => ""
</span><span class="">
</span>
<span class="">
%= text_field 'ServerName' => $wkg_datas->{ServerName}, class => ""
</span>
</p>
@@ -41,7 +43,8 @@
<br>
<span class="">
%=l 'wkg_LABEL_PDC', class => ""
</span><span class="">
</span>
<span class="">
% param 'ServerRole' => $wkg_datas->{ServerRole} unless param 'ServerRole';
%= select_field 'ServerRole' => [[ (l 'YES') => 'PDC'], [ (l 'NO') => 'WS']], class => ""
</span>
@@ -51,7 +54,8 @@
<br>
<span class="">
%=l 'wkg_LABEL_ROAM', class => ""
</span><span class="">
</span>
<span class="">
% param 'RoamingProfiles' => $wkg_datas->{RoamingProfiles} unless param 'RoamingProfiles';
%= select_field 'RoamingProfiles' => [[ (l 'YES') => 'yes'], [ (l 'NO') => 'no']], class => ""
</span>

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -13,25 +13,31 @@
<h1><%= $title%></h1>
% if ( $notif ) {
<br><span class="">
<br>
<span class="">
%= $notif
</span>
%}
% if ( $c->is_empty('updates') ) {
<br><div class=""><h2>
<br>
<div class=""><h2>
%=l 'yum_TITLE_UPTODATE'
</h2>
%=l 'yum_DESC_UPTODATE'
</div><br>
</div>
<br>
%}
% if ( $c->non_empty('updates') ) {
<br><div class=""><h2>
<br>
<div class="">
<h2>
%=l 'yum_TITLE_UPDATES_AVAILABLE'
</h2>
%=l 'yum_DESC_UPDATES_AVAILABLE'
</div><br>
</div>
<br>
%= form_for 'yum' => (method => 'POST') => begin
%= hidden_field 'trt' => 'UPDT'
@@ -59,37 +65,52 @@
%= form_for 'yum' => (method => 'POST') => begin
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_STATUS'
</span><span class="">
</span>
<span class="">
%= $c->get_status('status', 'localise')
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS'
</span><span class="">
</span>
<span class="">
%= $c->get_status('PackageFunctions', 'localise')
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_DELTARPMPROCESS'
</span><span class="">
</span>
<span class="">
%= $c->get_status('DeltaRpmProcess', 'localise')
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_DOWNLOADONLY'
</span><span class="">
</span>
<span class="">
%= $c->get_status('DownloadOnly', 'localise')
</span></p>
</span>
</p>
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES'
</span><span class="">
</span>
<span class="">
%= $c->get_status('AutoInstallUpdates', 'localise')
</span></p>
</span>
</p>
%= hidden_field 'trt' => 'CONF'
%= hidden_field 'trt' => 'CONF'
<br>
%= submit_button $c->l('yum_BUTTON_CONFIGURATION'), class => ""

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -13,71 +13,90 @@
<h1><%= $title%></h1>
% if ( $notif ) {
<br><div class="">
<br>
<div class="">
%= $notif
</div>
%}
%= form_for 'yumd' => (method => 'POST') => begin
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_STATUS'
</span><span class="">
</span>
<span class="">
% param 'yum_check4updates' => $c->get_status('check4updates') unless param 'yum_check4updates';
%= select_field 'yum_check4updates' => $c->get_check_freq_opt()
</span></p>
</span>
</p>
<br>
%=l 'yum_DESC_YUM_PACKAGEFUNCTIONS'
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS'
</span><span class="">
</span>
<span class="">
% param 'yum_PackageFunctions' => $c->get_status('PackageFunctions') unless param 'yum_PackageFunctions';
%= select_field 'yum_PackageFunctions' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']]
</span></p>
</span>
</p>
<br>
%=l 'yum_DESC_ENABLED_REPOSITORIES'
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_ENABLED_REPOSITORIES'
</span><span class="">
</span>
<span class="">
% param 'SelectedRepositories' => $c->get_repository_current_options() unless param 'SelectedRepositories';
%= select_field 'SelectedRepositories' => $c->get_repository_options2(), class => "", multiple => '1'
</span></p>
</span>
</p>
<br>
%=l 'yum_DESC_YUM_DELTARPMPROCESS'
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_DELTARPMPROCESS'
</span><span class="">
</span>
<span class="">
% param 'yum_DeltaRpmProcess' => $c->get_status('DeltaRpmProcess') unless param 'yum_DeltaRpmProcess';
%= select_field 'yum_DeltaRpmProcess' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']]
</span></p>
</span>
</p>
<br>
%=l 'yum_DESC_YUM_DOWNLOADONLY'
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_DOWNLOADONLY'
</span><span class="">
</span>
<span class="">
% param 'yum_DownloadOnly' => $c->get_status('DownloadOnly') unless param 'yum_DownloadOnly';
%= select_field 'yum_DownloadOnly' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']]
</span></p>
</span>
</p>
<br>
%=l 'yum_DESC_YUM_AUTOINSTALLUPDATES'
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES'
</span><span class="">
</span>
<span class="">
% param 'yum_AutoInstallUpdates' => $c->get_status('AutoInstallUpdates') unless param 'yum_AutoInstallUpdates';
%= select_field 'yum_AutoInstallUpdates' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']]
</span></p>
</span>
</p>
%= hidden_field 'trt' => 'CONF'
%= hidden_field 'trt' => 'CONF'
<br>
<!--<div class="">-->
%= submit_button $c->l('SAVE'), class => ""

View File

@@ -2,7 +2,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -13,7 +13,8 @@
<h1><%= $title%></h1>
% if ( $notif ) {
<br><div class="">
<br>
<div class="">
%= $notif
</div>
%}
@@ -25,27 +26,33 @@
<br><br>
% if ($c->non_empty('available','group')) {
%=l 'yum_DESC_AVAILABLE_GROUPS'
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_AVAILABLE_GROUPS'
</span><span class="">
</span>
<span class="">
% param 'SelectedGroups' => $c->get_names2('updates','group') unless param 'SelectedGroups';
%= select_field 'SelectedGroups' => $c->get_options2('available', 'group'), class => "", multiple => "1"
</span></p>
</span>
</p>
%}
<br>
% if ($c->non_empty('available','packages')) {
%=l 'yum_DESC_AVAILABLE_PACKAGES'
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_AVAILABLE_PACKAGES'
</span><span class="">
</span>
<span class="">
% param 'SelectedPackages' => $c->get_names2('updates','package') unless param 'SelectedPackages';
%= select_field 'SelectedPackages' => $c->get_options2('available', 'package'), class => "", multiple => "1"
</span></p>
</span>
</p>
%}
<!-- $c->print_skip_header() -->
<!-- $c->print_skip_header() -->
%= hidden_field 'trt' => 'INST'
%= hidden_field 'trt' => 'INST'
<br><br>
<!-- <div class="">-->
%= submit_button $c->l('yum_INSTALL_SOFTWARE'), class => ""

View File

@@ -6,7 +6,7 @@
% content_for 'module' => begin
<div id="" class="">
<div>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
@@ -17,7 +17,8 @@
<h1><%= $title%></h1>
% if ( $notif ) {
<br><div class="">
<br>
<div class="">
%= $notif
</div>
%}
@@ -28,8 +29,9 @@
<%= $c->render_to_string(inline => $c->format_yum_log()) %>
%= hidden_field 'trt' => 'LOGF'
%= hidden_field 'trt' => 'LOGF'
<br>
<!-- div class="">
prc= submit_button $c->l('NEXT'), class => ""
</div -->

View File

@@ -22,13 +22,15 @@
%=l 'yum_DESC_AVAILABLE_UPDATES'
<p><span class="">
<p>
<span class="">
%=l 'yum_LABEL_AVAILABLE_UPDATES'
</span>
<span class="">
% param 'SelectedPackages' => $c->get_names2('updates','package') unless param 'SelectedPackages';
%= select_field 'SelectedPackages' => $c->get_options2('updates', 'package'), class => "", multiple => "1"
</span></p>
</span>
</p>
<!-- $c->print_skip_header() -->

View File

@@ -1,6 +1,6 @@
%define name smeserver-manager-AdminLTE
%define version 11.0.0
%define release 2
%define release 7
Summary: AdminLTE is an html framework for admin consoles - this rpm adds it to smeserver manager2
Name: %{name}
Version: %{version}
@@ -26,6 +26,24 @@ AdminLTE is an html framework for admin consoles
wget https://github.com/ColorlibHQ/AdminLTE/archive/master.zip
%changelog
* Thu Apr 17 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-7.sme
- Clean up review template (but footer in the wrong place)
- Fix typo tabel
* Wed Apr 16 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-6.sme
- Remove old template
- Update breadcrumbs
* Wed Apr 16 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-5.sme
- Fix Remote Access remove network
* Wed Apr 16 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-4.sme
- More template cleaning
- Fix Password syntax errors
* Tue Apr 15 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-3.sme
- Finish template tidy
* Tue Apr 15 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-2.sme
- Start to build templates with AdminLTE
- Split the basic template into sections to make it easier to manage