💄 (admin): improve the categories page
This commit is contained in:
parent
ee78d8e53a
commit
ef6dc0bd30
1 changed files with 11 additions and 4 deletions
|
@ -1,17 +1,23 @@
|
||||||
<?php defined('KOBLOG') or die('Koblog CMS.');
|
<?php defined('KOBLOG') or die('Koblog CMS.');
|
||||||
|
|
||||||
|
echo "<div class='d-flex justify-content-between align-content-center'>";
|
||||||
|
|
||||||
echo Bootstrap::pageTitle(array('title'=>$L->g('Categories'), 'icon'=>'tags'));
|
echo Bootstrap::pageTitle(array('title'=>$L->g('Categories'), 'icon'=>'tags'));
|
||||||
|
|
||||||
|
echo "<div>";
|
||||||
echo Bootstrap::link(array(
|
echo Bootstrap::link(array(
|
||||||
'title'=>$L->g('Add a new category'),
|
'title'=>$L->g('Add a new category'),
|
||||||
'href'=>HTML_PATH_ADMIN_ROOT.'new-category',
|
'href'=>HTML_PATH_ADMIN_ROOT.'new-category',
|
||||||
'icon'=>'plus'
|
'icon'=>'plus',
|
||||||
|
'class'=>'btn btn-outline-success'
|
||||||
));
|
));
|
||||||
|
echo "</div></div>";
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<table class="table table-striped mt-3">
|
<div class="card mt-3">
|
||||||
|
<table class="table m-0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="card-header">
|
||||||
<th class="border-bottom-0" scope="col">'.$L->g('Name').'</th>
|
<th class="border-bottom-0" scope="col">'.$L->g('Name').'</th>
|
||||||
<th class="border-bottom-0" scope="col">'.$L->g('URL').'</th>
|
<th class="border-bottom-0" scope="col">'.$L->g('URL').'</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -21,7 +27,7 @@ echo '
|
||||||
|
|
||||||
foreach ($categories->keys() as $key) {
|
foreach ($categories->keys() as $key) {
|
||||||
$category = new Category($key);
|
$category = new Category($key);
|
||||||
echo '<tr>';
|
echo '<tr class="card-tablebody">';
|
||||||
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'edit-category/'.$key.'">'.$category->name().'</a></td>';
|
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'edit-category/'.$key.'">'.$category->name().'</a></td>';
|
||||||
echo '<td><a href="'.$category->permalink().'">'.$url->filters('category', false).$key.'</a></td>';
|
echo '<td><a href="'.$category->permalink().'">'.$url->filters('category', false).$key.'</a></td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
@ -30,4 +36,5 @@ foreach ($categories->keys() as $key) {
|
||||||
echo '
|
echo '
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
';
|
';
|
||||||
|
|
Loading…
Reference in a new issue