mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-01-25 16:08:41 +00:00
68 lines
2.9 KiB
PHP
Executable File
68 lines
2.9 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package Modules\Marketing
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
$promotion = $this->getData('promotion');
|
|
$tasks = $promotion->getTasks();
|
|
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="box wf-100">
|
|
<header><h1><?= $this->printHtml($promotion->getName()); ?></h1></header>
|
|
<div class="inner">
|
|
<form id="fProject" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}marketing/promotion?{?}&csrf={$CSRF}'); ?>">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr><td colspan="2"><label for="iName"><?= $this->getHtml('Name'); ?></label>
|
|
<tr><td colspan="2"><input type="text" id="iName" name="name" placeholder=" Name" value="<?= $this->printHtml($promotion->getName()); ?>" required>
|
|
<tr><td><label for="iStart"><?= $this->getHtml('Start'); ?></label>
|
|
<td><label for="iEnd"><?= $this->getHtml('End'); ?></label>
|
|
<tr><td><input type="datetime-local" id="iStart" name="start" value="<?= $this->printHtml($promotion->getStart()->format('Y-m-d\TH:i:s')); ?>">
|
|
<td><input type="datetime-local" id="iEnd" name="end" value="<?= $this->printHtml($promotion->getEnd()->format('Y-m-d\TH:i:s')); ?>">
|
|
<tr><td colspan="2"><label for="iDescription"><?= $this->getHtml('Description'); ?></label>
|
|
<tr><td colspan="2"><textarea id="iDescription" name="desc"><?= $this->printHtml($promotion->getDescription()); ?></textarea>
|
|
<tr><td><label for="iBudget"><?= $this->getHtml('Budget'); ?></label><td><label for="iActual"><?= $this->getHtml('Actual'); ?></label>
|
|
<tr><td><input type="text" id="iBudget" name="budget" placeholder=""><td><input type="text" id="iActual" name="actual">
|
|
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
<div class="box wf-100">
|
|
<?= $this->getData('tasklist')->render($promotion->getTasks()); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<?= $this->getData('calendar')->render($promotion->getCalendar()); ?>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
<?= $this->getData('medialist')->render($promotion->getMedia()); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="box wf-100">
|
|
<header><h1>Finances</h1></header>
|
|
</section>
|
|
</div>
|
|
</div>
|