Skip to content
Snippets Groups Projects
library-book.tpl 800 B
Newer Older
  • Learn to ignore specific revisions
  • 
    <div class="box">
    	<div class="boxhead"><h2>{$book.title}</h2></div>
    	<div class="boxcontent">
    
    {if $editable == true}
    	<form action="" method="POST">
    		<input type="text" name="title" value="{$book.title}" />
    		<input type="text" name="author" value="{$book.author}" />
    		<input type="text" name="publisher" value="{$book.publisher}" />
    		<textarea name="description" value="{$book.description}" /> 
    	</form> 
    {/if}
    		<strong>{if $book.onloan}On loan{else}Book Available{/if}</strong>
    		{if $book.image_url != ""}<img class="emblem" src="{$book.image_url|escape}" alt="{$book.title|escape}" />{/if}
    		<p>Author: {$book.author}</p>
    	{if isset($book.description)}
    		<div>{$book.description}</div>
    	{/if}
    	<div class="clear"></div>
    	</div>
    	<div class="hollowfoot"><div><div></div></div></div>
    </div>