* Finish task #96572.
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user