oms-Script/Theme/Backend/script-template-create.tpl.php
Dennis Eichhorn bbc4468cb1
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
crash backup
2025-03-21 02:48:20 +00:00

66 lines
2.7 KiB
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Script
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
/** @var \phpOMS\Views\View $this */
echo $this->data['nav']->render(); ?>
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="portlet">
<form id="helper-template-create" action="<?= \phpOMS\Uri\UriFactory::build('{/api}script/report/template?csrf={$CSRF}'); ?>" method="post">
<div class="portlet-head"><?= $this->getHtml('Template'); ?></div>
<div class="portlet-body">
<div class="form-group">
<label for="iTitle"><?= $this->getHtml('Title'); ?></label>
<input id="iTitle" name="name" type="text" required>
</div>
<div class="form-group">
<label for="iDescription"><?= $this->getHtml('Description'); ?></label>
<?= $this->data['editor']->render('report-editor'); ?>
</div>
<div class="form-group">
<?= $this->data['editor']->data['text']->render('report-editor', 'description', 'helper-template-create'); ?>
</div>
<div class="form-group">
<label class="checkbox" for="iStandalone">
<input type="checkbox" name="standalone" id="iStandalone" value="1" checked>
<span class="checkmark"></span>
<?= $this->getHtml('Standalone'); ?>
</label>
</div>
<div class="form-group">
<label for="iExpected"><?= $this->getHtml('Expected'); ?></label>
<div class="ipt-wrap">
<div class="ipt-first"><input id="iExpected" type="text"><input name="expected" type="hidden"></div>
<div class="ipt-second"><button><?= $this->getHtml('Add', '0', '0'); ?></button></div>
</div>
</div>
<div class="form-group">
<label for="iFiles"><?= $this->getHtml('Files'); ?></label>
<input type="file" id="iFiles" name="files">
</div>
</div>
<div class="portlet-foot">
<input type="submit" id="iReportTemplateCreateButton" name="reportTemplateCreateButton" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</div>
</form>
</section>
</div>
</div>