<?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->version) ? $this->t('poznamka-k-verzi-f') : $this->t('poznamka-k-revizi-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('dokumenty-f')?></h2>
                        
                        <div class="button_line">
                            <a href="<?=$this->baseUrl()?>/documents/detail/id/<?=$this->id_document?>"><?=$this->t('zpet-AF')?></a>
                        </div>
                        
                        <form action="<?=$this->baseUrl()?>/documents/<?=($this->version) ? 'note-version' : 'note-revision'?>/id/<?=$this->id?>" method="post">

                        	<label><?=($this->version) ? $this->t('poznamka-k-verzi-f') : $this->t('poznamka-k-revizi-f')?>  <?=$this->t('cislo') . ' ' . $this->ver_number . '.' . $this->rev_number?> <?=$this->t('dokumentu') . ' ' . $this->doc_name?>:</label>
			               	<textarea class="medium" rows="10" name="note"><?=$this->note?></textarea>
			                <br />

			                <input type="hidden" name="id" value="<?=$this->id?>" />
			                
							<div class="submit_line">
		                  		<button type="submit" class="inline_button"><?=$this->t('ulozit-f')?></button>
		                  	</div>
			                
                        </form>
                        
                    </div>
    			
    			</div>
			</div>