<%
    use obfui::cmn;
    my ($html,$cfgref) = @_;
%>
<script language=javascript src=/stunnix-websrv-utils/browse-files/select-file-or-folder.js
></script><script language=javascript><!--
fsbrowser_button_title='...';
if (!<%= $ENV{SERVER_SOFTWARE} =~ /apache/i ? ($cfgref->{product}->{webmode} ? 0: 1)  : 0 %>)
    _fsb_os_supported = 0;
-->
</script>

<div class=stretchformfields>
<form>
<input type=hidden name=havevals value=1>
<table class=WASwidth-of-select>
<tr><td><%$ hstr('prj.title',__("Project title:")) %></td><td class=width-of-select>
    <input required class=text type=text name=title></td>
<tr><td><%$ hstr('prj.indir',__("Input directory name:")) %></td><td class=width-of-select>
    <input required class=text type=text name=indir id=indir></td><td><script language=javascript>
	<!--
	    fsb_add_dir_browser(document.getElementById('indir'),'');
	-->
	</script>
</td>
<tr><td><%$ hstr('prj.outdir',__("Output directory name:")) %></td><td class=width-of-select>
    <input required class=text type=text name=outdir id=outdir></td><td><script language=javascript>
	<!--
	    fsb_add_dir_browser(document.getElementById('outdir'),'');
	-->
	</script>
</td>
<tr><td><%$ hstr('prj.stdir',__("State directory name:")) %></td><td class=width-of-select>
    <input required class=text type=text name=stdir id=stdir></td><td><script language=javascript>
	<!--
	    fsb_add_dir_browser(document.getElementById('stdir'),'');
	-->
	</script>
</td>
<% if (length($html)) { %>
<tr><td><%$ hstr('prj.codetype',__("Code type (optional):")) %></td><td class=width-of-select
	><%$ $html %></td>
<% } %>
</table>



<% $forge->include('wgt-optional-start','prjopts') %>
<table>
<tr><td><%$ hstr('prj.testcmd',
	__("Commandline to run for testing (optional):")) %></td><td class=width-of-select>
    <input class=text type=text name=testcmdline></td>
<tr><td><%$ hstr('prj.precmdline',
	__("Commandline to run BEFORE building project:")) %></td><td class=width-of-select>
    <input class=text type=text name=precmdline></td>
<tr><td><%$ hstr('prj.postcmdline',
	__("Commandline to run AFTER building project:")) %></td><td class=width-of-select>
    <input class=text type=text name=postcmdline></td>

</table>
<% $forge->include('wgt-optional-end','prjopts') %>
<p>




<% $forge->include('wgt-submitbtn', __('OK')) %>
</form>
</div>