{title help='WebHelp' url='tiki-create_webhelp.php'}{tr}Create WebHelp{/tr}{/title}
{if $generated eq 'y'}
	<div class="t_navbar">
		<span class="button">
			<a class="link" href="whelp/{$dir}/index.html">{tr}View generated WebHelp.{/tr}</a>
		</span>
	</div>
{/if}
{if $output ne ''}
	<div class="panel panel-default"><div class="panel-body">
		{$output}
	</div></div>
{/if}
<form method="post" action="tiki-create_webhelp.php">
	<table class="formcolor">
		<tr>
			<td>{tr}Structure{/tr}</td>
			<td>{$struct_info.pageName|default:"{tr}No structure{/tr}."}</td>
		</tr>
		<input type="hidden" name="name" value="{$struct_info.pageName}">
		<input type="hidden" name="struct" value="{$struct_info.page_ref_id}">
		<tr>
			<td><label for="id">{tr}Directory{/tr}</label></td>
			<td><input type="text" id="dir" name="dir" value="{$struct_info.pageName}"></td>
		</tr>
		<tr>
			<td><label for="top">{tr}Top page{/tr}</label></td>
			<td><input type="text" id="top" name="top" value="{$struct_info.pageName}"></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input type="submit" class="btn btn-default btn-sm" {if !$struct_info.pageName}disabled=disabled" {/if}name="create" value="{tr}Create{/tr}"></td>
		</tr>
	</table>
</form>
