Rename EditResourceForm to ResourceForm

refs #6011
This commit is contained in:
Johannes Meyer 2014-04-16 12:58:45 +02:00
parent 656e6bd0fd
commit 3d44c45eb8
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ use \Icinga\Form\Config\GeneralForm;
use \Icinga\Form\Config\Authentication\ReorderForm;
use \Icinga\Form\Config\Authentication\LdapBackendForm;
use \Icinga\Form\Config\Authentication\DbBackendForm;
use \Icinga\Form\Config\Resource\EditResourceForm;
use \Icinga\Form\Config\Resource\ResourceForm;
use \Icinga\Form\Config\LoggingForm;
use \Icinga\Form\Config\ConfirmRemovalForm;
use \Icinga\Config\PreservingIniWriter;
@ -396,7 +396,7 @@ class ConfigController extends BaseConfigController
{
$this->view->resourceTypes = $this->resourceTypes;
$resources = IcingaConfig::app('resources', true);
$form = new EditResourceForm();
$form = new ResourceForm();
$form->setRequest($this->_request);
if ($form->isSubmittedAndValid()) {
$name = $form->getName();
@ -428,7 +428,7 @@ class ConfigController extends BaseConfigController
$this->render('resource/modify');
return;
}
$form = new EditResourceForm();
$form = new ResourceForm();
if ($this->_request->isPost() === false) {
$form->setOldName($name);
$form->setName($name);

View File

@ -38,7 +38,7 @@ use Icinga\Data\ResourceFactory;
/**
* Form for modifying a monitoring backend
*/
class EditResourceForm extends Form
class ResourceForm extends Form
{
/**
* The currently edited resource.