<?php
   /**
    * _category_new
    *
    * @package Wojo Framework
    * @author wojoscripts.com
    * @copyright 2023
    * @version 5.50: _category_new.tpl.php, v1.00 9/19/2023 12:40 PM Gewa Exp $
    */
   if (!defined('_WOJO')) {
      die('Direct access to this location is not allowed.');
   }
?>
<form method="post" id="wojo_form" name="wojo_form">
   <div class="wojo form segment margin-bottom">
      <div class="wojo fields">
         <div class="field five wide">
            <label><?php echo Language::$word->NAME; ?>
               <i class="icon asterisk"></i>
            </label>
            <input type="text" placeholder="<?php echo Language::$word->NAME; ?>" name="name">
         </div>
         <div class="field five wide">
            <label><?php echo Language::$word->_MOD_AM_CSLUG; ?></label>
            <input type="text" placeholder="<?php echo Language::$word->_MOD_AM_CSLUG; ?>" name="slug">
         </div>
      </div>
      <div class="wojo fields">
         <div class="field">
            <label><?php echo Language::$word->METAKEYS; ?></label>
            <textarea class="small" placeholder="<?php echo Language::$word->METAKEYS; ?>" name="keywords"></textarea>
         </div>
         <div class="field">
            <label><?php echo Language::$word->METADESC; ?></label>
            <textarea class="small" placeholder="<?php echo Language::$word->METADESC; ?>" name="description"></textarea>
         </div>
      </div>
   </div>
   <div class="wojo form segment margin-bottom">
      <div class="wojo fields">
         <div class="field">
            <label><?php echo Language::$word->_MOD_AM_PARENT; ?></label>
            <select id="parent_id" name="parent_id">
               <option value="0"><?php echo Language::$word->CT_TOP; ?></option>
               <?php echo $this->droplist; ?>
            </select>
         </div>
         <div class="field">
            <label><?php echo Language::$word->PUBLISHED; ?></label>
            <div class="wojo checkbox toggle fitted inline">
               <input name="active" type="radio" value="1" id="active_1" checked="checked">
               <label for="active_1"><?php echo Language::$word->YES; ?></label>
            </div>
            <div class="wojo checkbox toggle fitted inline">
               <input name="active" type="radio" value="0" id="active_0">
               <label for="active_0"><?php echo Language::$word->NO; ?></label>
            </div>
         </div>
      </div>
      <div class="wojo fields">
         <div class="field">
            <label><?php echo Language::$word->_MOD_AM_IPC; ?></label>
            <input name="perpage" type="range" min="5" max="20" step="1" value="10" hidden data-suffix=" itm">
         </div>
      </div>
      <div id="sortlist" class="nestable">
         <?php if ($this->droplist) : echo $this->sortlist; endif; ?>
      </div>
   </div>
   <div class="center-align">
      <a href="<?php echo Url::url('/admin/blog'); ?>" class="wojo simple button"><?php echo Language::$word->CANCEL; ?></a>
      <button type="button" data-url="blog" data-action="processCategory" name="dosubmit" class="wojo primary button"><?php echo Language::$word->_MOD_AM_NEWCAT; ?></button>
   </div>
</form>
<script src="<?php echo SITEURL; ?>/assets/sortable.js"></script>