Edit template for controller - Refine params copy and bring DB opens up to spec with UTF8
This commit is contained in:
81
output/Backup/default/back_tape_configure.html.new.ep
Normal file
81
output/Backup/default/back_tape_configure.html.new.ep
Normal file
@@ -0,0 +1,81 @@
|
||||
% layout "default", title => "Sme server 2 - backup";
|
||||
|
||||
% content_for "module" => begin
|
||||
|
||||
<div id="module" class="module back_tape_configure-panel">
|
||||
% if (config->{debug} == 1) {
|
||||
<p>
|
||||
%= dumper $c->current_route
|
||||
%= dumper $bac_datas
|
||||
</p>
|
||||
% }
|
||||
|
||||
% if ( stash "error" ) {
|
||||
<br><div class=sme-error>
|
||||
%= $c->render_to_string(inline => stash "error")
|
||||
</div>
|
||||
%}
|
||||
|
||||
<h1><%= $title%></h1>
|
||||
|
||||
<h2>
|
||||
%=l "bac_ENABLE_DISABLE_TAPE"
|
||||
</h2><br>
|
||||
|
||||
%= $c->render_to_string(inline => (l "bac_TAPE_CONFIG_DESC"))
|
||||
|
||||
%= form_for "/backupd" => (method => "POST") => begin
|
||||
|
||||
<p>
|
||||
<span class=label>
|
||||
%=l "bac_ENABLE_TAPE_BACKUP"
|
||||
</span><span class=data>
|
||||
% if ( $bac_datas->{status} eq "checked" ) {
|
||||
<input type="checkbox" name="Tapebackup" checked >
|
||||
%} else {
|
||||
%= check_box "Tapebackup"
|
||||
%}
|
||||
</span>
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
<span class=label>
|
||||
%=l "bac_TAPE_BACKUP_TIME"
|
||||
</span><span class=data>
|
||||
% param "BackupHour" => $bac_datas->{backupHour} unless param "BackupHour";
|
||||
%= text_field "BackupHour", size => "2"
|
||||
% param "BackupMin" => $bac_datas->{backupMin} unless param "BackupMin";
|
||||
%= text_field "BackupMin", size => "2"
|
||||
</span>
|
||||
<!--span class=label-->
|
||||
%=l "AM/PM:"
|
||||
<!--/span--><span class=data>
|
||||
% param "BackupAMPM" => $bac_datas->{backupAMPM} unless param "BackupAMPM";
|
||||
%= select_field "BackupAMPM" => ["AM", "PM"], class => "input"
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class=label>
|
||||
%=l "bac_LOAD_TAPE_REMINDER_TIME"
|
||||
</span><span class=data>
|
||||
% param "ReminderHour" => $bac_datas->{reminderHour} unless param "ReminderHour";
|
||||
%= text_field "ReminderHour", size => "2"
|
||||
% param "ReminderMin" => $bac_datas->{reminderMin} unless param "ReminderMin";
|
||||
%= text_field "ReminderMin", size => "2"
|
||||
</span>
|
||||
<!--span class=label-->
|
||||
%=l "AM/PM:"
|
||||
<!--/span--><span class=data>
|
||||
% param "ReminderAMPM" => $bac_datas->{reminderAMPM} unless param "ReminderAMPM";
|
||||
%= select_field "ReminderAMPM" => ["AM", "PM"], class => "input"
|
||||
</span>
|
||||
</p><br>
|
||||
|
||||
%= hidden_field "Function" => $bac_datas->{"function"}
|
||||
%= submit_button $c->l("Update"), class => "action"
|
||||
|
||||
% end
|
||||
</div>
|
||||
% end
|
Reference in New Issue
Block a user