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

$this->headTitle($this->projectName);
$this->placeholder('title')->set($this->t('dokumenty-f'));
?>
<h1 class="page_title"><?=$this->t('dokumenty-f')?></h1>
        <h1 class="group_title"><?=$this->t('pridat-verzi-f')?></h1>
            <div class="main_inner2">
    			<div class="main_inner">
    			
    				 <div class="left_column">
    	                <div class="left_column_item">
    	                    <?=$this->action('documents-menu', 'layout', 'default', array('leftmenu' => $this->leftmenu)); ?>
    	                </div>
    	            </div>
    	            
    				<div class="main_text_right">
    				    
                         <h2 class="section_heading"><?=$this->t('dokument-f')?> "<?=$this->item->doc_name?>" - <?=$this->t('nova-verze')?></h2>
                        
                        <div class="button_line">
                            <a href="<?=$this->baseUrl()?>/documents/detail/id/<?=$this->item->id_document?>"><?=$this->t('zpet-AF')?></a>
                        </div>
                        
                        <div class="form_errors">
                        	<?php if (isset($this->errors)) : ?>
                        		<?php foreach ($this->errors as $k => $v) : ?>
                        		 		<?=$this->t('polozka-f')?> "<?=$this->t($k)?>": <?=$this->t($v)?>.<br />
                        		<?php endforeach; ?>
                        	<?php endif; ?>
                        </div>
                        
                        <form action="<?=$this->baseUrl()?>/documents/add-version/id/<?=$this->item->id_document?>" method="post" enctype="multipart/form-data">
                        
			                <label><?=$this->t('soubor-f')?>:</label>
							<input type="file" name="ver_file" />		                
			                <br />
			                <br />
			                
		
		                	<input type="hidden" name="id_document" value="<?=$this->item->id_document?>" />
			                <div class="submit_line">
		                  		<button class="inline_button"><?=$this->t('ulozit-f')?></button>
                        	</div>
                        </form>
                        
                    </div>
    			
    			</div>
			</div>