<? global $user;?>
<div class="form_container" style="max-width: 100%;">
  <div class="block-header">
    <h2>Kategoria: <strong><?= $this -> category['name'];?></strong></h2>
  </div>
  <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>
  </div>
  <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>
