<?php
/**
 * The edit view file of caselib module of ZenTaoPMS.
 * @copyright   Copyright 2009-2023 禅道软件（青岛）有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
 * @license     ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
 * @author      Tingting Dai <daitingting@easycorp.ltd>
 * @package     caselib
 * @link        https://www.zentao.net
 */
namespace zin;

formPanel
(
    set::title($lang->caselib->edit),
    set::formClass('border-0'),
    set::submitBtnText($lang->save),
    formGroup
    (
        set::label($lang->caselib->name),
        set::name('name'),
        set::value($lib->name)
    ),
    formGroup
    (
        set::label($lang->caselib->desc),
        set::required(strpos(",{$this->config->caselib->edit->requiredFields},", ",desc,") !== false),
        editor
        (
            set::name('desc'),
            set::rows(10),
            html($lib->desc)
        )
    )
);

render();
