<?php
/**
 * @author Lukas Havlicek
 * @version 1.0
 */

$this->headTitle($this->projectName);
$this->placeholder('title')->set($this->t('kategorie-f'));
?>

<h1 class="page_title"><?=$this->t('kategorie-f')?></h1>
        <h1 class="group_title"><?=$this->t('pridat-prava-pro-kategorii-f')?> <?=$this->item->category_name?></h1>
            <div class="main_inner2">
    			<div class="main_inner">
    			
    				 <div class="left_column">
    	                <div class="left_column_item">
    	                    <?=$this->action('left-menu', 'layout', 'admin', array('leftmenu' => $this->leftmenu)); ?>
    	                </div>
    	            </div>
    	            
    				<div class="main_text_right">
    				    
                        <h2 class="section_heading"><?=$this->t('pridat-prava-pro-kategorii-f')?> - <?=$this->item->category_name?></h2>
                        
                        <div class="button_line">
                            <a href="<?=$this->baseUrl()?>/admin/groups/edit/id/<?=$this->item->id_category?>"><?=$this->t('zpet-AF')?></a>
                        </div>
                        
                        
                        <form action="<?=$this->baseUrl()?>/admin/categoryies/add-rights-group/id/<?=$this->item->id_category?>" method="post">
			                
			                <label><?=$this->t('skupina-f')?>:</label>
			                <select class="short" name="id_group">
			                	<?=$this->selVal($this->form, 'id_group')?>
			                </select>
			        
			                <br />
			                
							<input type="hidden" name="id_category" value="<?=$this->item->id_category?>" />
			             
			                <div class="submit_line">
		                  		<button class="inline_button"><?=$this->t('ulozit-f')?></button>
                        	</div>
                        </form>
                        
                        <h2 class="section_heading"><?=$this->t('stavajici-skupiny-s-nastavenim-prav-pro-kategorii-f')?> - <?=$this->item->category_name?></h2>
                        
                        <?php echo $this->render('categoryies/part_rights.phtml'); ?>
                        
                        <div class="button_line">
                            <a href="<?=$this->baseUrl()?>/admin/groups/edit/id/<?=$this->item->id_category?>"><?=$this->t('zpet-AF')?></a>
                        </div>
                        
                    </div>
    			
    			</div>
			</div>