<% use ui::cmn; my ($prj,$cfgref) = @_;  
%>

<% $forge->include('wgt-load-semanticui') %>
<% $forge->include('wgt-init-filesysbrowser',$cfgref) %>
<% $forge->include('wgt-page-prjoptions-pickdirjs') %>


<div class="main ui container">
 <div class="ui segment">
    <% $forge->include('wgt-semui-header',  __('Creating ZIP file') ) %>
    <form class="ui form"   id=mainform>
	<input type=hidden name=havevals value=1>
	<input type=hidden name=indir value="<%= $prj->{indir} %>" id=indir>



	<% $forge->include('wgt-browseoutfn-semui', $prj, 'createzip', 'proto.zip', qw(width_of_fn six   width_of_dir six)) %>

    	    <div class="four wide fluid field">
		<label>&nbsp;</label>
                <button class="ui fluid primary wide button"><i class="ui icon zip"></i>
                 <%=   __('Create ZIP')  %>  </button>
    	    </div>
	</div> <!-- of .fields started by wgt-browseoutfn-semui -->
    </form>
 </div>
</div>






<div class="ui accordion container">

    <div class="title"><i class="dropdown icon"></i><%= __('Why use this?') %></div>
    <div class="content">
	<%= __('If you are running CDBuilder on Windows, using this page is the only way to create a ZIP file that will be correctly unpacked on Mac OS X and Linux (file permissions will be done right). When running CDBuilder on other platforms, you can simply zip all files in your Project Output Directory using any tools you like.') %>
    </div>

    <div class="title"><i class="dropdown icon"></i><%= __('How to use output file?') %></div>
    <div class="content">
	<%= __('Just upload a resultant ZIP file to your site. After downloading, user will have to unpack it (double-click on it in Explorer on Windows or in Finder on Mac). Then drag extracted folder(s) to Applications or Desktop folder (on Mac or Windows). Then go to that directory and click on "runcd" on Windows or "Run CD on MacOS X" on Mac. You can rename "runcd" and "Run CD on MacOS X" to contain your product and company name before packing Prototype to ZIP.') %>
    </div>

</div>
