<?php add_category(); ?>
<div class="col-md-12">

    <div class="row"> 

        <h1 class="page-header">
          Kategorije proizvoda
        </h1>

    </div>
    <div class="row"> 
        
    <div class="col-md-4">
        <h3 class="bg-success"><?php display_message(); ?></h3>
        <form action="" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label for="category-title">Naziv</label>
                <input name="cat_title" type="text" class="form-control">
            </div>

            <div class="form-group">
                <input name="add_category" type="submit" class="btn btn-primary" value="Dodaj kategoriju">
            </div>     
        </form>


    </div>

    <div class="col-md-8">

        <table class="table">
        <thead>
            <tr>
                <th>Id</th>
                <th>Naziv</th>
            </tr>
        </thead>

        <tbody>
            <?php echo show_categories_in_admin();  ?>
        </tbody>

        </table>

    </div>

    </div>
    <!-- /.container-fluid -->

</div>    