mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-01-25 22:58:40 +00:00
114 lines
5.4 KiB
PHP
114 lines
5.4 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
/**
|
|
* @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', 'plain', 'docForm'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-3">
|
|
<section class="box wf-100">
|
|
<div class="inner">
|
|
<form id="docForm" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/news?{?}&csrf={$CSRF}'); ?>">
|
|
<table class="layout wf-100">
|
|
<tr><td colspan="2"><label for="iStatus"><?= $this->getHtml('Status'); ?></label>
|
|
<tr><td colspan="2"><select name="status" id="iStatus">
|
|
<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="iPublish"><?= $this->getHtml('Publish'); ?></label>
|
|
<tr>
|
|
<td colspan="2">
|
|
<input type="datetime-local" name="publish" id="iPublish" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
|
|
<tr>
|
|
<td>
|
|
<input type="submit" name="deleteButton" id="iDeleteButton" value="<?= $this->getHtml('Delete', 0); ?>">
|
|
<td class="rightText">
|
|
<input type="submit" name="saveButton" id="iSaveButton" value="<?= $this->getHtml('Save', 0); ?>">
|
|
<input type="submit" name="publishButton" id="iPublishButton" 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 for="iNewsType"><?= $this->getHtml('Type'); ?></label>
|
|
<tr><td colspan="2">
|
|
<span class="radio">
|
|
<input type="radio" name="type" id="iNewsType" 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>
|