mirror of
				https://github.com/Icinga/icingaweb2-module-director.git
				synced 2025-10-31 19:34:18 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			902 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			902 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Icinga\Module\Director\Forms;
 | |
| 
 | |
| use Icinga\Module\Director\Web\Form\DirectorObjectForm;
 | |
| 
 | |
| class IcingaServiceForm extends DirectorObjectForm
 | |
| {
 | |
|     public function setup()
 | |
|     {
 | |
|         $this->addElement('text', 'object_name', array(
 | |
|             'label'       => $this->translate('Name'),
 | |
|             'required'    => true,
 | |
|             'description' => $this->translate('Name for the Icinga object you are going to create')
 | |
|         ));
 | |
| 
 | |
|         /*
 | |
|         $this->addElement('text', 'groups', array(
 | |
|             'label' => $this->translate('Servicegroups'),
 | |
|             'description' => $this->translate('One or more comma separated servicegroup names')
 | |
|         ));
 | |
|         */
 | |
| 
 | |
|         $this->addImportsElement();
 | |
|         $this->addCheckCommandElements();
 | |
| 
 | |
| 
 | |
|         if ($this->isTemplate()) {
 | |
|             $this->addCheckExecutionElements();
 | |
|         }
 | |
| 
 | |
|         $this->setButtons();
 | |
|     }
 | |
| }
 |