mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-01-31 17:38:40 +00:00
86 lines
4.4 KiB
PHP
86 lines
4.4 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
*/
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-9">
|
|
<div id="testEditor" class="m-editor">
|
|
<section class="box wf-100">
|
|
<div class="inner">
|
|
<input type="text" name="title" form="docForm">
|
|
</div>
|
|
</section>
|
|
|
|
<section class="box wf-100">
|
|
<div class="inner">
|
|
<?= $this->getData('editor')->render('iNews'); ?>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="box wf-100">
|
|
<?= $this->getData('editor')->getData('text')->render('iNews'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-3">
|
|
<section class="box wf-100">
|
|
<div class="inner">
|
|
<form id="docForm" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/news?{?}&csrf={$CSRF}'); ?>">
|
|
<table class="layout wf-100">
|
|
<tr><td colspan="2"><label for="publish"><?= $this->getHtml('Status'); ?></label>
|
|
<tr><td colspan="2"><select name="status">
|
|
<option value="<?= $this->printHtml(Modules\News\Models\NewsStatus::DRAFT); ?>" selected><?= $this->getHtml('Draft'); ?>
|
|
<option value="<?= $this->printHtml(Modules\News\Models\NewsStatus::VISIBLE); ?>"><?= $this->getHtml('Visible'); ?>
|
|
<tr><td colspan="2"><label for="publish"><?= $this->getHtml('Publish'); ?></label>
|
|
<tr><td colspan="2"><input type="datetime-local" id="publish" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
|
|
<tr><td><input type="submit" value="<?= $this->getHtml('Delete', 0); ?>"><td class="rightText"><input type="submit" value="<?= $this->getHtml('Save', 0); ?>"> <input type="submit" value="<?= $this->getHtml('Publish'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
<section class="box wf-100">
|
|
<div class="inner">
|
|
<table class="layout wf-100">
|
|
<tr><td colspan="2"><label><?= $this->getHtml('Type'); ?></label>
|
|
<tr><td colspan="2"><span class="radio"><input type="radio" name="type" form="docForm" value="<?= $this->printHtml(Modules\News\Models\NewsType::ARTICLE); ?>" id="news" checked><label for="news"><?= $this->getHtml('News'); ?></label></span>
|
|
<tr><td colspan="2"><span class="radio"><input type="radio" name="type" form="docForm" value="<?= $this->printHtml(Modules\News\Models\NewsType::HEADLINE); ?>" id="headline"><label for="headline"><?= $this->getHtml('Headline'); ?></label></span>
|
|
<tr><td colspan="2"><span class="radio"><input type="radio" name="type" form="docForm" value="<?= $this->printHtml(Modules\News\Models\NewsType::LINK); ?>" id="link"><label for="link"><?= $this->getHtml('Link'); ?></label></span>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
<section class="box wf-100">
|
|
<div class="inner">
|
|
<table class="layout wf-100">
|
|
<tr><td><label for="permission"><?= $this->getHtml('Permissions'); ?></label>
|
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" id="permission"><input type="hidden" form="docForm" name="permission"></span>
|
|
<tr><td><button><?= $this->getHtml('Add', 0, 0); ?></button>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
<section class="box wf-100">
|
|
<div class="inner">
|
|
<table class="layout wf-100">
|
|
<tr><td colspan="2"><label for="groups"><?= $this->getHtml('Groups'); ?></label>
|
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" id="groups"><input type="hidden" form="docForm" name="groups"></span>
|
|
<tr><td><button><?= $this->getHtml('Add', 0, 0); ?></button>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|