<div class="step w3-padding w3-text-white w3-margin-right <%=($this->Parent->ActiveStepIndex === 0 ? 'w3-light-green' : 'w3-green')%>">
<div class="w3-left"><i class="fa fa-tasks w3-xxxlarge"></i></div>
<div class="w3-clear"></div>
- <h4><com:TTranslate Text="Type" /></h4>
+ <h4><com:TTranslate Text="General" /></h4>
</div>
</div>
<div class="w3-third w3-padding-16">
</com:TLinkButton>
</div>
</prop:StepNavigationTemplate>
-
<prop:FinishNavigationTemplate>
<div class="w3-center w3-section">
<com:TLinkButton
</div>
</div>
</prop:FinishNavigationTemplate>
- <com:TWizardStep ID="Step1" Title="<%[ Step 1 - select job type ]%>" StepType="Auto">
+ <com:TWizardStep ID="Step1" Title="<%[ Step 1 - basic information about new job ]%>" StepType="Auto">
<div class="w3-container">
- <h2><%[ New job wizard ]%></h2>
- <p><%[ This wizard enables you to create in easy way a new job. ]%></p>
+ <h2><%[ New backup job wizard ]%></h2>
+ <p><%[ This wizard enables you to create in easy way a new backup job. ]%></p>
<!--p><%[ To start please select job type that you wish to create. ]%></p-->
</div>
<div class="w3-container w3-margin-top">
- <com:Application.Web.Portlets.DirectiveComboBox
- ID="Type"
- DirectiveName="Type"
- Label="Job Type"
- Show="true"
+ <com:Application.Web.Portlets.DirectiveTextBox
+ ID="Name"
+ DirectiveName="Name"
+ Label="Job Name"
ValidationGroup="NewJobDirective"
Required="true"
+ Show="true"
/>
</div>
<div class="w3-container w3-margin-top">
<com:Application.Web.Portlets.DirectiveTextBox
- ID="Name"
- DirectiveName="Name"
- Label="Job Name"
+ ID="Description"
+ DirectiveName="Description"
+ Label="Description"
ValidationGroup="NewJobDirective"
- Required="true"
+ Required="false"
Show="true"
/>
</div>
<com:TWizardStep ID="Step6" Title="<%[ Step 6 - summary ]%>" StepType="Finish">
<fieldset>
<legend><%[ General ]%></legend>
- <div class="w3-container">
- <div class="w3-quarter">Job Type</div>
- <div class="w3-threequarter bold"><%=$this->Type->getDirectiveValue()%></div>
- </div>
<div class="w3-container">
<div class="w3-quarter">Job Name</div>
<div class="w3-threequarter bold"><%=$this->Name->getDirectiveValue()%></div>
</div>
+ <div class="w3-container">
+ <div class="w3-quarter">Description</div>
+ <div class="w3-threequarter bold"><%=$this->Description->getDirectiveValue() ?: '-'%></div>
+ </div>
<div class="w3-container">
<div class="w3-quarter">JobDefs</div>
<div class="w3-threequarter bold"><%=$this->JobDefs->getDirectiveValue() ?: '-'%></div>
* Bacula(R) - The Network Backup Solution
* Baculum - Bacula web interface
*
- * Copyright (C) 2013-2020 Kern Sibbald
+ * Copyright (C) 2013-2021 Kern Sibbald
*
* The main author of Baculum is Marcin Haba.
* The original author of Bacula is Kern Sibbald, with contributions
Prado::using('System.Web.UI.WebControls.TWizard');
/**
- * New job wizard page.
+ * New backup job wizard page.
*
* @author Marcin Haba <marcin.haba@bacula.pl>
* @category Page
* @package Baculum Web
*/
-class NewJobWizard extends BaculumWebPage {
+class NewBackupJobWizard extends BaculumWebPage {
const PREV_STEP = 'PrevStep';
const JOBDEFS = 'JobDefs';
}
switch ($step_index) {
case 0: {
- $this->loadJobTypes();
$this->loadJobDefs();
break;
}
public function wizardNext($sender, $param) {
}
- /**
- * Load Job Types (step 1).
- *
- * @return none
- */
- public function loadJobTypes() {
- //$jobtype_list = array('Backup', 'Restore', 'Copy', 'Verify', 'Migrate', 'Admin');
- $jobtype_list = array('Backup');
- asort($jobtype_list);
- $this->Type->setData($jobtype_list);
- $this->Type->setDirectiveValue($jobtype_list[0]);
- $this->Type->onLoad(null);
- }
/**
* Load JobDefs (step 1).
$jobdefs = $this->getJobDefs();
$job = array(
'Name' => $this->Name->getDirectiveValue(),
- 'Type' => $this->Type->getDirectiveValue(),
+ 'Type' => 'Backup',
);
$jd = $this->JobDefs->getDirectiveValue();
- $directives = array('Client', 'Fileset', 'Storage', 'SpoolData', 'SpoolAttributes',
+ $directives = array('Description', 'Client', 'Fileset', 'Storage', 'SpoolData', 'SpoolAttributes',
'SpoolSize', 'Pool', 'FullBackupPool', 'IncrementalBackupPool', 'DifferentialBackupPool',
'Level', 'Accurate', 'MaximumConcurrentJobs', 'Priority', 'ReRunFailedLevels', 'Schedule',
'RescheduleOnError', 'RescheduleIncompleteJobs', 'RescheduleInterval', 'RescheduleTimes',