Refactor category edit and preview templates for improved layout and consistency
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
<? global $user;?>
|
||||
<div class="row block-header">
|
||||
<div class="col-12">
|
||||
<div class="form_container" style="max-width: 100%;">
|
||||
<div class="block-header">
|
||||
<h2>Kategoria: <strong><?= $this -> category['name'];?></strong></h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu-buttons">
|
||||
<? if ( $user['id'] == 1 or $user['id'] == 3 ):?>
|
||||
<a href="/wiki/category_edit/id=<?= $this -> category['id'];?>" class="btn btn-success btn-sm" title="Edytuj kategorię">
|
||||
<i class="fa fa-edit"></i>Edytuj kategorię
|
||||
<div class="action_menu" id="g-menu">
|
||||
<? if ( $user['id'] == 1 ):?>
|
||||
<a href="/wiki/category_edit/id=<?= $this -> category['id'];?>" class="btn btn-success btn-sm" title="Edytuj kategorię">
|
||||
<i class="fa fa-edit"></i>Edytuj kategorię
|
||||
</a>
|
||||
<? endif;?>
|
||||
<a href="/wiki/main_view/" class="btn btn-dark btn-sm" title="Wstecz">
|
||||
<i class="fa fa-reply"></i>Wstecz
|
||||
</a>
|
||||
<? endif;?>
|
||||
<a href="/wiki/main_view/" class="btn btn-dark btn-sm" title="Wstecz">
|
||||
<i class="fa fa-reply"></i>Wstecz
|
||||
</a>
|
||||
</div>
|
||||
<div class="text-container">
|
||||
<?= $this -> category['text'];?>
|
||||
</div>
|
||||
<? if ( $user['id'] == 1 or $user['id'] == 3 ):?>
|
||||
<br>
|
||||
<div class="text-container">
|
||||
<?= $this -> category['text_admin'];?>
|
||||
</div>
|
||||
<? endif;?>
|
||||
<div id="g-form-container">
|
||||
<?= $this -> category['text'];?>
|
||||
<? if ( $user['id'] == 1 or $user['id'] == 3 ):?>
|
||||
<br>
|
||||
<div class="text-container">
|
||||
<?= $this -> category['text_admin'];?>
|
||||
</div>
|
||||
<? endif;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user