mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-06 20:18:40 +00:00
Fix uri parameter
This commit is contained in:
parent
9d75c1af95
commit
5c1496a774
|
|
@ -26,7 +26,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<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('/{/lang}/api/news?{?}csrf={$CSRF}'); ?>">
|
||||
<form id="docForm" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/news?{?}&csrf={$CSRF}'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tr><td colspan="2"><label for="publish"><?= $this->getText('Status') ?></label>
|
||||
<tr><td colspan="2"><select name="status">
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><?= $this->getText('Date'); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($newsList as $key => $news) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/news/article?{?}id=' . $news->getId());
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/news/article?{?}&id=' . $news->getId());
|
||||
$color = 'darkred';
|
||||
if($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
|
||||
elseif($news->getType() === \Modules\News\Models\NewsType::HEADLINE) { $color = 'purple'; }
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><?= $this->getText('Date'); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($newsList as $key => $news) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/news/article?{?}id=' . $news->getId());
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/news/article?{?}&id=' . $news->getId());
|
||||
$color = 'darkred';
|
||||
if($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
|
||||
elseif($news->getType() === \Modules\News\Models\NewsType::HEADLINE) { $color = 'purple'; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user