<% 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 ISO 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, 'createiso', 'cd.zip', qw(width_of_fn four   width_of_dir four)) %>

    	    <div class=" four wide field required">
		<label><i class="ui NOicon file outline"></i>
		    <%$ __("Volume ID") . tooltip('makeiso_volumeid')  %></label>
		<div class="ui input">
		    <input required name="volumeid"   value="<%= $prj->{opts}->{"makeiso_volid"} || "_DVD_" %>"  type="text">
		</div>
	    </div>

    	    <div class="four wide fluid field">
		<label>&nbsp;</label>
                <button class="ui fluid primary wide button"><i class="ui icon selected radio"></i>
                 <%=   __('Create ISO')  %>  </button>
    	    </div>

	</div> <!-- of .fields started by wgt-browseoutfn-semui -->






<div class="ui accordion container">

    <div class="title"><i class="dropdown icon"></i><%= __('Advanced settings') %></div>
    <div class="content">

    	    <div class="field">
		<label>
		    <%$ __('Optional - additional backend commandline <a href=https://linux.die.net/man/8/mkisofs>options</a> <small>(for mkisofs utility)</small>:') %>
		</label>
		<div class="ui input">
		    <input  name="cmdlineopts"   value="<%=  $prj->{opts}->{createiso_previous_options} %>"  type="text">
		</div>
    	    </div>
	
    </div>
</div> <!-- accordeon -->

<% if (!$prj->{opts}->{create_compressed_cache}) { %>

    <div class="ui visible warning message">
	<div class="header"><%= __('Warning!') %></div>
	<%$ __('You did not enable  <a href=http://stunnix.com/a/compressed-web-runtime.shtml>generate Compressed Web Runtime</a> option! It is greatly recommended to enable it to make startup from CD/DVD 3 times faster! Go to <tt><a href=project.showprops class=menuref>Project &rArr; Site settings &rArr; General</a></tt> and enable it.') %>
    </div>
    <p>
<% } %>


    </form>
 </div>
</div>









<div class="ui accordion container">

    <div class="title"><i class="dropdown icon"></i><%= __('Why use this?') %></div>
    <div class="content">
	<%= __('An ISO image is an archive file (also known as a disc image) of an optical disc in a format defined by the International Organization for Standardization (ISO). This format is supported by many software vendors.') %>

	<%= __('To produce a DVD or CD for your project, the recommended way is to create ISO image using this screen, and then burn it using your favorite disk burning software. This guarantees that disk will work on all platforms correctly.') %>
    </div>
</div>


