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

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

<h1 class="page_title"><?=$this->t('skupiny-f')?></h1>
        <h1 class="group_title"><?=$this->t('nastaveni-prav-skupiny-f')?> <?=$this->item->group_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-skupinu-f')?> - <?=$this->item->group_name?></h2>
                        
                        <div class="button_line">
                            <a href="<?=$this->baseUrl()?>/admin/groups/edit/id/<?=$this->item->id_group?>"><?=$this->t('zpet-AF')?></a>
                        </div>
                        
                        <div class="info_box"><?=$this->t('pridanim-kategorie-se-automaticky-priradi-vsechny-jeji-podkategorie-f')?>.</div>
                        
                        <form action="<?=$this->baseUrl()?>/admin/groups/add-rights-category/id/<?=$this->item->id_group?>" method="post">
			                
			                <label><?=$this->t('kategorie-f')?>:</label>
			                <select class="short" name="id_category">
			                	<?=$this->selVal($this->form, 'id_category')?>
			                </select>
			        
			                <br />
			                
							<input type="hidden" name="id_group" value="<?=$this->item->id_group?>" />
			             
			                <div class="submit_line">
		                  		<button class="inline_button"><?=$this->t('ulozit-f')?></button>
                        	</div>
                        </form>
                        
                        <h2 class="section_heading"><?=$this->t('stavajici-kategorie-s-nastavenim-prav-pro-skupinu-f')?> - <?=$this->item->group_name?></h2>
                        
                        <?php echo $this->render('groups/part_rights.phtml'); ?>
                        
                        <div class="button_line">
                            <a href="<?=$this->baseUrl()?>/admin/groups/edit/id/<?=$this->item->id_group?>"><?=$this->t('zpet-AF')?></a>
                        </div>
                        
                    </div>
    			
    			</div>
			</div>