|
@@ 1494-1498 (lines=5) @@
|
| 1491 |
|
$formAction = FormAction::create('doDataTransfer', 'Create') |
| 1492 |
|
->addExtraClass('btn'); |
| 1493 |
|
|
| 1494 |
|
if ($validEnvs->count() < 1) { |
| 1495 |
|
$envsField->setEmptyString('You need to deploy to an environment before creating a snapshot'); |
| 1496 |
|
$envsField->setDisabled(true); |
| 1497 |
|
$formAction->setDisabled(true); |
| 1498 |
|
} |
| 1499 |
|
|
| 1500 |
|
$form = Form::create( |
| 1501 |
|
$this, |
|
@@ 1706-1710 (lines=5) @@
|
| 1703 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $envs->map()) |
| 1704 |
|
->setEmptyString('Select an environment'); |
| 1705 |
|
$formAction = FormAction::create('doDataTransfer', 'Restore Data')->addExtraClass('btn'); |
| 1706 |
|
if ($validEnvs->count() < 1) { |
| 1707 |
|
$envsField->setEmptyString('You need to deploy to an environment before restoring a snapshot'); |
| 1708 |
|
$envsField->setDisabled(true); |
| 1709 |
|
$formAction->setDisabled(true); |
| 1710 |
|
} |
| 1711 |
|
|
| 1712 |
|
$form = Form::create( |
| 1713 |
|
$this, |