<?php

namespace ModulesGarden\HostingQuotaNotifications\App\UI\TicketTemplates\Modals;

use \ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\Modals\BaseEditModal;
use \ModulesGarden\HostingQuotaNotifications\Core\UI\Interfaces\AdminArea;
use \ModulesGarden\HostingQuotaNotifications\App\UI\TicketTemplates\Forms\DeleteTicketTemplateForm;
use ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\Modals\BaseModal;


/**
 * Description of DeleteTicketTemplateModal
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class DeleteTicketTemplateModal extends BaseModal implements AdminArea
{
    protected $id    = 'deleteTicketTemplateForm';
    protected $name  = 'deleteTicketTemplateForm';
    protected $title = 'deleteTicketTemplateForm';
    protected $modalType = 'danger';

    public function initContent()
    {
        $this->replaceSubmitButtonClesses(['btn btn--danger submitForm']);
        $this->addForm(new DeleteTicketTemplateForm());
    }    
}
