#if($query.author_id) #set( $author = $db.author.fetch($query.author_id) ) #end #if($author)

Edit author

#else

Add author

#end