<% use ui::cmn; my ($opts) = @_;  
my $str_use_cd_usb_zip =  ' '.  __('Apply this optimization if you put your Prototype onto CD, USB or as .ZIP.');
my $dirs_moved = __('As many directories from the root directory will be moved to the subdirectory named "data" to reduce clutter.');
%>

<% $forge->include('wgt-load-semanticui') %>

<div class="main ui container">
 <div class="ui segment">
    <% $forge->include('wgt-semui-header', __('Optimizing directory structure') ) %>
    <form class="ui form"   id=mainform>
        <input type=hidden name=havevals value=1>
	<div class=fields>
	    <div class=field>
		<div class="ui checkbox">
    		    <input class="hidden" tabindex="0" type="checkbox" id=reverse name=reverse>
    			<label><%= __('Reverse already applied optimization') %></label>
		</div>
	    </div>
	</div>

	<div class="ui accordion container">

	    <div class="title"><i class="dropdown icon"></i><%= __('Advanced: type of optimization') %></div>
	    <div class="content">

<dl>
<dt><input type=radio id=osx name=type value=osx checked><label for=osx>
    <%= __('Prototype that supports macOS') %></label></dt>
<dd>
<%= __('This type of optimization applies to a Prototype that supports macOS (and possibly Windows and/or Linux). A Mac Application Bundle will be created out of Prototype, most files and folders will be moved into Contents/Resources/data folder inside app bundle.') %>
 <%= __('Apply this optimization if you put your Prototype onto CD, USB or as .ZIP or .DMG.') %>

<div class=warning><%$ __('Do not forget to <a class=menuref href=pack.sign_osx>sign your Mac app</a>, otherwise it may not start on Mac!') %>
    </div>
</dd>



<dt><input id=win type=radio name=type value=no_osx><label for=win>
    <%= __('Prototype that does NOT support macOS') %></label></dt>
<dd>
<%= __('This type of optimization applies to a Prototype that supports only Windows, only Linux, or only Windows and Linux - i.e. when Prototype does NOT support macOS.') . " $dirs_moved" %>
<%= $str_use_cd_usb_zip %>
</dd>
</dl>

	    </div>
	</div>


	<div class=fields>
	    <div class=field>
                <button class="ui fluid primary wide button"><i class="ui icon refresh"></i>
                 <%=   __('Execute')  %>  </button>
	    </div>
	</div>
    </form>
  </div>



<style type=text/css>
dd { font-size: 80%; padding-top: 0.5em; padding-bottom: 1em; }
dd span.normal-block * { font-size:130%;  }
</style>



<div class="ui accordion container">

    <div class="title"><i class="dropdown icon"></i><%= __('Why use this?') %></div>
    <div class="content">
	<p/>
	<%$ __('Optimizing directory structure results in less directories being visible in the top folder of your disc or USB drive. Also, if your product supports macOS, you have to optimize directory structure and then <a class=menuref href=pack.sign_osx>codesign it</a>, otherwise your product will not work on macOS due to default security settings of macOS.') %>
	<p/>
	<%$ __('Once your Prototype is optimized, you can use any of <i>Create ..</i> menu items <a class=menuref href=menu.pack>Optimize &amp; Pack Prototype</a> menu.') %>

    </div>
</div>


</div>
