* Finish task #96572.

This commit is contained in:
wangyidong
2023-07-06 19:29:01 +08:00
parent 3b1c63be86
commit d34d305e22
3 changed files with 120 additions and 29 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace zin;
$templateList = array();
foreach($templates as $template) $templateList[] = span(setID("template{$template->id}"), setClass('hidden'), set('data-public', $template->public), set('data-title', $template->title), $template->content);
formGroup
(
set::width('1/2'),
set::label($lang->file->tplTitleAB),
inputGroup
(
select(set::name('template'), set::items($templatePairs), set::value($templateID), set::required(true), on::change('setTemplate(e.target)')),
span
(
setClass('input-group-addon'),
checkbox(setID('showCustomFieldsBox'), set::checked(true), on::change('setExportTPL'), $lang->file->setExportTPL),
)
),
$templateList ? $templateList : null,
);
render();